Re: gc 7.4.0 on Android
Ivan Maidanski <ivmai-JGs/[email protected]>
| Newsgroups | gmane.comp.programming.garbage-collection.boehmgc |
|---|---|
| Message-ID | <[email protected]> |
Hi Manuel, 1. please check you NDK, it should have link.h file. 2. dynamic register is not working on Android (looks like the condition "tag == DT_DEBUG" is never satisfied on bionic), so you just skip the code by -D IGNORE_DYNAMIC_LOADING. I use a workaround (works only on ARM platform) - insert GC_INIT() call into initialization code of each dynamicakky loaded library. Regards, Ivan Wed, 4 Dec 2013, 8:51 +01:00 from [email protected]: >Hi everyone, > >I have tried to compile the GC version 7.4.0 on Android but it has failed with >the following error message. I'm using the NDK version r8e and the eclair >version of bionic. > >-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|----- >libtool: compile: /users/serrano/android/bigloo4.1a/arch/android/droid-gcc -DHAVE_CONFIG_H -I./include -I./include -I./libatomic_ops/src -I./libatomic_ops/src -fexceptions -O3 -fdata-sections -ffunction-sections -DBGL_ANDROID -DPLATFORM_ANDROID -DFINALIZE_ON_DEMAND -I/users/serrano/android/bigloo4.1a/lib/4.1a -fPIC -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:111:21: error: link.h: No such file or directory >dyn_load.c:432: warning: 'struct dl_phdr_info' declared inside parameter list >... >Makefile-gc-7.4.0:13: recipe for target 'boot-gc' failed >make[1]: *** [boot-gc] Error 2 >Makefile:165: recipe for target 'boot' failed >make: *** [boot] Error 2 >-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|----- > >Line 112 of dyn_load.c there is this guard > ># if !defined(GC_DONT_DEFINE_LINK_MAP) > >but I don't see any piece of code that could potentially defines >GC_DONT_DEFINE_LINK_MAP. Hence I'm not sure about what to do. I will be glad >to help. Just tell me what you would like me to try. > >Thanks in advance for your help. > >Cheers, > >-- >Manuel > > >ps: For your information, I have never been able to have an operational GC >on Android that supports dynamic loading and multithreading. Using only >multithreading works like a charm but multithreading+dynamic loading crashes >for me all the time. _______________________________________________ Gc mailing list Gc-V9/[email protected] http://www.hpl.hp.com/hosted/linux/mail-archives/gc/