List Info

Thread: Building neko mingw problems




Building neko mingw problems
country flaguser name
United States
2007-12-28 02:01:46
Hello,

I'm having problems linking to the gc lib. I've copied
libgc.a to bin
directory but no idea what to try next - how to debug this.

I'd appreciate a pointer!

Thanks
Michael

gcc -O -shared  -o bin/neko.dll vm/alloc.o vm/builtins.o
vm/callback.o
vm/context.o vm/interp.o vm/load.o vm/objtable.o vm/others.o
vm/hash.o
vm/module.o vm/jit_x86.o -Lbin -lgc
vm/alloc.o: In function `neko_free_root':
h:/projects/neko-1.6.0/vm/alloc.c:374: undefined reference
to `_imp__GC_free'
vm/alloc.o: In function `neko_alloc_root':
h:/projects/neko-1.6.0/vm/alloc.c:370: undefined reference
to
`_imp__GC_malloc_uncollectable'
vm/alloc.o: In function `neko_alloc_abstract':
h:/projects/neko-1.6.0/vm/alloc.c:229: undefined reference
to `_imp__GC_malloc'
vm/alloc.o: In function `neko_alloc':
h:/projects/neko-1.6.0/vm/alloc.c:185: undefined reference
to `_imp__GC_malloc'
vm/alloc.o: In function `neko_alloc_float':
h:/projects/neko-1.6.0/vm/alloc.c:211: undefined reference
to
`_imp__GC_malloc_atomic'
vm/alloc.o: In function `neko_alloc_private':
h:/projects/neko-1.6.0/vm/alloc.c:189: undefined reference
to
`_imp__GC_malloc_atomic'
vm/alloc.o: In function `neko_thread_create':
h:/projects/neko-1.6.0/vm/alloc.c:158: undefined reference
to
`_imp__GC_CreateThread24'
vm/alloc.o: In function `neko_gc_stats':
h:/projects/neko-1.6.0/vm/alloc.c:115: undefined reference
to
`_imp__GC_get_heap_size'
h:/projects/neko-1.6.0/vm/alloc.c:116: undefined reference
to
`_imp__GC_get_free_bytes'
vm/alloc.o: In function `neko_gc_major':
h:/projects/neko-1.6.0/vm/alloc.c:111: undefined reference
to
`_imp__GC_gcollect'
vm/alloc.o: In function `neko_gc_loop':

This e-mail and any attachments may be confidential and/or
legally privileged. If you have received this e-mail and you
are not a named addressee, please inform Evolving Systems
TIS at tisevolving.com and then delete the e-mail from your
system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this e-mail. To
ensure regulatory compliance and for the protection of our
clients and business, Evolving Systems may monitor and read
e-mails sent to and from its servers. Although Evolving
Systems routinely screens for viruses, addressees should
scan this e-mail and any attachments for viruses. Evolving
Systems makes no representation or warranty as to the
absence of viruses in this e-mail or any attachments.

Registered Office: One Angel Square, Torrens Street, bond.
EC1V 1PL. Registered number 2325854

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

Re: Building neko mingw problems
country flaguser name
France
2007-12-28 08:46:34
Chun Tse wrote:
> Hello,
> 
> I'm having problems linking to the gc lib. I've copied
libgc.a to bin
> directory but no idea what to try next - how to debug
this.

Since the dynamic function of libgc is used, you actually
need the 
libgc.so to be available on your system.

Best,
Nicolas

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

RE: Building neko mingw problems
country flaguser name
United States
2007-12-28 18:42:30
Thanks for your reply. When I compile gc I get .a files. 
 
-rw-r--r--    1 ctse     Administ      660 Dec 28 15:22
libgc.la
-rw-r--r--    1 ctse     Administ 11848800 Dec 28 15:22
libgc.a

Does this mean I need to build the gc as a dll and also
Neko?
 
I'm working on Windows XP with mingw environment. The
compiler is 
 
$ gcc -v
Using built-in specs.
Target: mingw32
Configured with: ../gcc-4.2.2/configure --prefix=/mingw
--with-local-prefix=/mingw --build=i686-pc-linux-gnu
--host=mingw32 --target=mingw32
--enable-languages=c,c++,fortran,objc,obj-c++,treelang
--disable-nls --disable-werror --disable-win32-registry
--enable-sjlj-exceptions --enable-threads=win32
--disable-libstdcxx-pch --enable-fully-dynamic-string
--enable-libgomp --with-gmp=/extra/crossgcc/win-gmp-install
--with-mpfr=/extra/crossgcc/win-mpfr-install
--with-libiconv-prefix=/extra/crossgcc/win-iconv-install
--with-tune=generic
Thread model: win32
gcc version 4.2.2 (TDM-1)
 
Michael

________________________________

From: neko-bounceslists.motion-twin.com on behalf of Nicolas
Cannasse
Sent: Fri 28/12/2007 14:46
To: Neko intermediate language mailing list
Subject: Re: [Neko] Building neko mingw problems



Chun Tse wrote:
> Hello,
>
> I'm having problems linking to the gc lib. I've copied
libgc.a to bin
> directory but no idea what to try next - how to debug
this.

Since the dynamic function of libgc is used, you actually
need the
libgc.so to be available on your system.

Best,
Nicolas

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


This e-mail and any attachments may be confidential and/or
legally privileged. If you have received this e-mail and you
are not a named addressee, please inform Evolving Systems
TIS at tisevolving.com and then delete the e-mail from your
system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this e-mail. To
ensure regulatory compliance and for the protection of our
clients and business, Evolving Systems may monitor and read
e-mails sent to and from its servers. Although Evolving
Systems routinely screens for viruses, addressees should
scan this e-mail and any attachments for viruses. Evolving
Systems makes no representation or warranty as to the
absence of viruses in this e-mail or any attachments.

Registered Office: One Angel Square, Torrens Street, bond.
EC1V 1PL. Registered number 2325854

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

[1-3]

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