List Info

Thread: Re: Problem: linux 64 bit




Re: Problem: linux 64 bit
country flaguser name
France
2008-09-08 11:19:58
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 <laurentlogiquefloue.org> 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
<siegmund.gorrgmail.com>
>>> 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)

Re: Problem: linux 64 bit
country flaguser name
France
2008-09-08 14:00:18
laurent a écrit :
> 
> 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:

Looks like you libgc does not include it. You'll have to
recompile libgc 
with appropriate pthreads support.

I think you can also disable threads in Neko by adding
NEKO_NO_THREADS 
to the Makefile CFLAGS

Nicolas

-- 
Neko : One VM to run them all
(http://nekovm.org)

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )