$ haxelibSegmentation fault
$ gdb haxelibGNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu<snip>This GDB was configured as "i686-linux-gnu".<snip>Reading symbols from /usr/bin/haxelib...warning: the debug information found in "/usr/bin/neko" does not match "/usr/bin/haxelib" (CRC mismatch).(no debugging symbols found)...done.(gdb) runStarting program: /usr/bin/haxelib[Thread debugging using libthread_db enabled]Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".Program received signal SIGSEGV, Segmentation fault.0xb7f9b852 in neko_buffer_append_sub () from /usr/lib/libneko.so.0(gdb) backtrace#0 0xb7f9b852 in neko_buffer_append_sub () from /usr/lib/libneko.so.0#1 0xb7f9c52f in ?? () from /usr/lib/libneko.so.0#2 0xb7fc91c4 in ?? ()Backtrace stopped: previous frame inner to this frame (corrupt stack?)(gdb)
$ haxe build-cpp.hxml -vClasspath : ;/;./haxe/std/cpp/_std/;/usr/share/haxe/std/cpp/_std/;./haxe/std/;/usr/share/haxe/std/Parsed /usr/share/haxe/std/StdTypes.hxParsed /usr/share/haxe/std/String.hxParsed /usr/share/haxe/std/Array.hxParsed /usr/share/haxe/std/cpp/_std/Std.hxParsed App.hxParsed MyClass.hxTyping App.mainParsed /usr/share/haxe/std/haxe/Log.hxParsed /usr/share/haxe/std/haxe/PosInfos.hxTyping haxe.Log.traceTyping MyClass.newTyping Std.isTyping Std.stringTyping Std.intTyping Std.parseIntTyping Std.parseFloatTyping Std.randomParsed /usr/share/haxe/std/StdTypes.hxParsed /usr/share/haxe/std/String.hxParsed /usr/share/haxe/std/Array.hxParsed /usr/share/haxe/std/Std.hxTyping haxe.Log.clearGenerating Cpp in : cppSegmentation faultEnd_of_file
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
--- You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/groups/opt_out.
--
noccy@christopher-desktop:/tmp/haxe$ ./haxe*** longjmp causes uninitialized stack frame ***: ./haxe terminated======= Backtrace: =========/lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x63)[0xb7672bc3]/lib/i386-linux-gnu/libc.so.6(+0x106a6a)[0xb7672a6a]/lib/i386-linux-gnu/libc.so.6(__longjmp_chk+0x4b)[0xb76729db]/usr/lib/libneko.so(+0xf8d2)[0xb732b8d2]/usr/lib/libneko.so(neko_val_callEx+0x34f)[0xb7323e8f]/usr/lib/libneko.so(neko_val_callN+0x3b)[0xb732424b]./haxe[0x827e1f4]./haxe[0x809935e]
linux-gate.so.1 => (0xb76e4000)libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb7699000)libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7656000)libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7650000)libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb749d000)/lib/ld-linux.so.2 (0xb76e5000)
I tried that as well, but neither homebuilt or ubuntu repository version changed the outcome.Seems dpkg-buildpackage doesn't work either, also related to the standard library. Grabbed the source for this with apt-get source:<snip>Installing std.cmiInstalling std.cmx<snip>Installing extLib.aDone.> ocamlfind ocamlc -I .. -I ../ extc_stubs.c> ocamlfind ocamlopt -a -I .. -o extc.cmxa -cclib ../ocaml/extc/extc_stubs.o -cclib -lz extc.ml> ocamlfind ocamlopt -a -o swflib.cmxa -I .. -I ../extc as3.mli as3hl.mli as3code.ml as3parse.ml as3hlparse.ml swf.ml actionScript.ml swfParser.ml> ocamllex lexer.mll127 states, 1206 transitions, table size 5586 bytes> ocamlfind ocamlopt -c -cclib -fno-stack-protector -I ../ocaml -I ../ocaml/swflib -I /usr/lib/ocaml/xml-light -I ../ocaml/extc -I ../neko/libs/include/ocaml -linkpkg -package xml-light -pp camlp4o ast.ml lexer.ml type.ml common.ml parser.ml typecore.ml genxml.ml typeload.ml codegen.ml optimizer.ml ../neko/libs/include/ocaml/nast.ml ../neko/libs/include/ocaml/binast.ml ../neko/libs/include/ocaml/nxml.ml genneko.ml genas3.ml genjs.ml genswf8.ml genswf9.ml genswf.ml genphp.ml gencpp.ml interp.ml typer.ml main.ml> ocamlfind ocamlopt -o ../bin/haxe -linkpkg -package xml-light ../ocaml/extLib.cmxa ../ocaml/extc/extc.cmxa ../ocaml/swflib/swflib.cmxa /usr/lib/ocaml/xml-light/xml-light.cmxa unix.cmxa str.cmxa ast.cmx lexer.cmx type.cmx common.cmx parser.cmx typecore.cmx genxml.cmx typeload.cmx codegen.cmx optimizer.cmx ../neko/libs/include/ocaml/nast.cmx ../neko/libs/include/ocaml/binast.cmx ../neko/libs/include/ocaml/nxml.cmx genneko.cmx genas3.cmx genjs.cmx genswf8.cmx genswf9.cmx genswf.cmx genphp.cmx gencpp.cmx interp.cmx typer.cmx main.cmx/tmp/haxe-2.7+20110131/bin/haxe /tmp/haxe-2.7+20110131/haxe/std/tools/haxedoc/haxedoc.hxmlStandard library not foundmake: *** [build-stamp] Error 1dpkg-buildpackage: error: debian/rules build gave error exit status 2
On Thursday, July 18, 2013 9:07:10 PM UTC+2, Cauê Waneck wrote:Did you build the neko binary yourself? There's still an open issue ( https://code.google.com/p/nekovm/issues/detail?id=31 ) on neko about building with newer gcc versions on linux 32-bit.@ncannasse, the problem seems to be at https://github.com/HaxeFoundation/neko/blob/master/vm/jit_x86.c#L803 . Does anything look odd there?
--
haxelib run hxcpp Build.xml haxe -Ddebug -Dhaxe3="1" -Dhaxe_svn="1" -Dhaxe_ver="3.1"Creating hxcpp.h.gch...g++ -Iinclude -c -fvisibility=hidden -g -fpic -fPIC -DHX_LINUX -DHXCPP_DEBUG -m32 -I/usr/lib/haxe/lib/hxcpp/2,10//include -frtti -o hxcpp.h.gch /usr/lib/haxe/lib/hxcpp/2,10//include/hxcpp.hg++ -I. -Iinclude -c -fvisibility=hidden -g -fpic -fPIC -DHX_LINUX -DHXCPP_DEBUG -m32 -I/usr/lib/haxe/lib/hxcpp/2,10//include -x c++ -frtti ./src/haxe/Log.cpp -oobj/linux-debug//src/haxe/Log.oIn file included from ./src/haxe/Log.cpp:4:0:include/Std.h:11:39: error: expected initializer before ‘:’ tokenCalled from ? line 1Called from BuildTool.hx line 1265Called from BuildTool.hx line 554Called from BuildTool.hx line 591Called from BuildTool.hx line 710Called from BuildTool.hx line 744Called from BuildTool.hx line 200Uncaught exception - Error : 1 - build cancelledError: Build failed
Hi!Sorry, I forgot to answer your topic before.So, avoid using apt-get as its very outdated. Also, I recommend very much that you use the standard /usr/lib/haxe and /usr/lib/neko locations for haxe and neko. Using non-default installation directories will make you configure a lot of environment variables by hand.
Here's the complete TODO: <snip>
- "cvs" --> haXe 1.x ... cheat ! what is "cvs" ?
- "svn" --> haXe 2.x ... f..k ! what is "svn" ?
- "github" --> Haxe 3.x ... oh my ! where is ( my ) haxelib and what is "git" ?