I still have a GC_pthread_create exception on compiling.
GC_pthread_create() is not defined, I changed the /usr/include/gc.h and
/usr/include/gc_pthreads_redirects.h, avoiding if statement to have the
methods declare.
But it's not solving the problem, GC_thread_create is not defined:
neko # make
mkdir bin 2>/dev/null
make: [createbin] Erreur 1 (ignorée)
cc -Wall -O3 -fPIC -fomit-frame-pointer -I vm -D_GNU_SOURCE -D_64BITS
-pthread -o vm/alloc.o -c vm/alloc.c
cc -Wall -O3 -fPIC -fomit-frame-pointer -I vm -D_GNU_SOURCE -D_64BITS
-pthread -o vm/builtins.o -c vm/builtins.c
cc -Wall -O3 -fPIC -fomit-frame-pointer -I vm -D_GNU_SOURCE -D_64BITS
-pthread -o vm/callback.o -c vm/callback.c
cc -Wall -O3 -fPIC -fomit-frame-pointer -I vm -D_GNU_SOURCE -D_64BITS
-pthread -o vm/interp.o -c vm/interp.c
cc -Wall -O3 -fPIC -fomit-frame-pointer -I vm -D_GNU_SOURCE -D_64BITS
-pthread -o vm/load.o -c vm/load.c
vm/load.c:31: attention : déréférencement du pointeur type-punned
brisera les strictes d'aliases
cc -Wall -O3 -fPIC -fomit-frame-pointer -I vm -D_GNU_SOURCE -D_64BITS
-pthread -o vm/objtable.o -c vm/objtable.c
cc -Wall -O3 -fPIC -fomit-frame-pointer -I vm -D_GNU_SOURCE -D_64BITS
-pthread -o vm/others.o -c vm/others.c
vm/others.c:25: attention : déréférencement du pointeur type-punned
brisera les strictes d'aliases
vm/others.c:26: attention : déréférencement du pointeur type-punned
brisera les strictes d'aliases
cc -Wall -O3 -fPIC -fomit-frame-pointer -I vm -D_GNU_SOURCE -D_64BITS
-pthread -o vm/hash.o -c vm/hash.c
cc -Wall -O3 -fPIC -fomit-frame-pointer -I vm -D_GNU_SOURCE -D_64BITS
-pthread -o vm/module.o -c vm/module.c
vm/module.c:26: attention : déréférencement du pointeur type-punned
brisera les strictes d'aliases
cc -Wall -O3 -fPIC -fomit-frame-pointer -I vm -D_GNU_SOURCE -D_64BITS
-pthread -o vm/jit_x86.o -c vm/jit_x86.c
cc -Wall -O3 -fPIC -fomit-frame-pointer -I vm -D_GNU_SOURCE -D_64BITS
-pthread -o vm/threads.o -c vm/threads.c
cc -shared -WBsymbolic -pthread -o bin/libneko.so vm/alloc.o
vm/builtins.o vm/callback.o vm/interp.o vm/load.o vm/objtable.o
vm/others.o vm/hash.o vm/module.o vm/jit_x86.o vm/threads.o -ldl -lgc -lm
cc -Wall -O3 -fPIC -fomit-frame-pointer -I vm -D_GNU_SOURCE -D_64BITS
-pthread -o vm/stats.o -c vm/stats.c
cc -Wall -O3 -fPIC -fomit-frame-pointer -I vm -D_GNU_SOURCE -D_64BITS
-pthread -o vm/main.o -c vm/main.c
cc -Wall -O3 -fPIC -fomit-frame-pointer -I vm -D_GNU_SOURCE -D_64BITS
-pthread -o bin/neko vm/stats.o vm/main.o -Lbin -lneko
bin/libneko.so: undefined reference to `GC_pthread_create'
collect2: ld a retourné 1 code d'état d'exécution
make: *** [bin/neko] Erreur 1
thx
L
Siegmund Gorr a écrit :
Hi,
thanks for the previous hints. After going through them I could verify
that my build system correctly produced X86_64 libs,
but they were not used.
So that is the solution which works for me:
1st: only modification to Makefile is enabling the 64-Bit switch
CFLAGS += -D_64BITS
2nd: clean previous installed libs of neko in /usr/lib/
After cleaning the system with previously installed libs from Haxe it
works fine.
On Sun, Sep 7, 2008 at 6:20 PM, laurent <[EMAIL PROTECTED]> wrote:
Hi,
I got same problem and when compiling I got a GC_pthread error.
Would you have binaries compiled for 64bit ?
thx
Laurent
Kacper Gutowski a écrit :
On Thu, Sep 4, 2008 at 1:02 PM, Siegmund Gorr <[EMAIL PROTECTED]>
wrote:
This is the error message:
Uncaught exception - load.c(223) : Failed to load library :
/usr/lib/neko/std.ndll (/usr/lib/neko/std.ndll: wrong ELF class:
ELFCLASS32)
This error means that you have neko binary compiled for 64bits but
your ndll libraries are compiled for 32bits. This won't link. Recompile
your ndlls and it should work.
Has anybody else configured the compile script sucessfully for this
environment?
You should probably uncomment CFLAGS += -D_64BITS
in Makefile, but it seems to work fine without it.
--
Neko : One VM to run them all
(http://nekovm.org)
--
Neko : One VM to run them all
(http://nekovm.org)