[Gc] compiling gc-7.2alpha2 or a4
hans.boehm at hp.com
Fri Dec 4 13:51:58 PST 2009
I know almost nothing about Android, but it looks to me like the absence of link.h
is a real issue. The garbage collector normally walks the dynamic loader's data structures with dl_iterate_phdr. That interface is normally declared in link.h.
If it doesn't exist (try a grep in /usr/include), the other options are
- link statically, and don't define DYNAMIC_LOADING
- define USE_PROC_FOR_LIBRARIES and find roots using /proc. That may be suboptimal, and I'm not sure that interface is supported either.
> -----Original Message-----
> From: gc-bounces at napali.hpl.hp.com
> [mailto:gc-bounces at napali.hpl.hp.com] On Behalf Of
> Marcos_David.Dione at sophia.inria.fr
> Sent: Friday, December 04, 2009 8:14 AM
> To: gc at napali.hpl.hp.com
> Subject: [Gc] compiling gc-7.2alpha2 or a4
> we use gc in bigloo, a scheme implementation which I
> have to port natively to android. I found that downloading
> android's source code/toolchain and using a nice
> wrapper I can compile things that run natively in the
> android sdk/emulator.
> now, I know gc-7.2alpha2 and alpha4 have this
> ANDROID_PLATFORM define recognize the platform, so I:
> $ export CFLAGS="-DLINUX -DPLATFORM_ANDROID"
> $ ./configure --host=arm-linux-gnulibc
> $ make
> libtool: compile: /usr/local/bin/droid-gcc -DHAVE_CONFIG_H
> -I./include -I./include -fexceptions -DLINUX
> -DPLATFORM_ANDROID -MT dyn_load.lo -MD -MP -MF
> .deps/dyn_load.Tpo -c dyn_load.c -fPIC -DPIC -o .libs/dyn_load.o
> dyn_load.c:92:19: error: link.h: No such file or directory
> which is true: link.h is not in the toolchain at all (not
> in the sdk [which is java only], the ndk or android's source
> code/toolchain). so, how is this define supposed to be used?
> just to clarify again: I'm not using the NDK, I need a
> complete native port. has anyone tried this? or in any case,
> how does it work under the NDK?
>  http://www-sop.inria.fr/mimosa/fp/Bigloo/
>  http://source.android.com/download#TOC-Installing-Repo
>  http://github.com/tmurakam/droid-wrapper/
>  http://developer.android.com/sdk/index.html
> Lic. Marcos Dione
> Engineer Expert - Hop Project
> INRIA Sophia Antipolis - Méditerranée
> Phone: +33 (0)4 92 38 79 67
> Gc mailing list
> Gc at linux.hpl.hp.com
More information about the Gc