[gambit-list] trying to make Blackhole work with Android

Álvaro Castro-Castilla alvaro.castro.castilla at gmail.com
Sun Jan 8 11:38:18 EST 2012


Hi!

I'm trying (again) to make Blackhole work with Android. For that purpose I
need to make it compile to C, instead of its normal *.o files. BH needs to
compile 5 files for each module:
- a compile-time file
- a real-time file
- a visit-time file
- a module metadata file
- the link file

Based on https://github.com/seoushi/gambit-android-example but using the
newer "Native Activity" I'm trying to compile an example. First, I'm trying
to compile an example with just one file, importing no modules.

I'm getting:
     [exec] ./jni/ext/libgambc.a(_gambc.o):(.data+0x4854c): multiple
definition of `___G_list'
     [exec]
./obj/local/armeabi/objs/native-activity/main.o1.o:(.data+0x3c): first
defined here
     [exec] ./jni/ext/libgambc.a(_gambc.o):(.data.rel+0x13708): multiple
definition of `___S_list'
     [exec]
./obj/local/armeabi/objs/native-activity/main.o1.o:(.data.rel+0xb0): first
defined here
     [exec] ./jni/ext/libgambc.a(_gambc.o):(.data+0x5ae40): multiple
definition of `___G_void'
     [exec]
./obj/local/armeabi/objs/native-activity/main.o1.o:(.data+0x54): first
defined here
     [exec] ./jni/ext/libgambc.a(_gambc.o):(.data.rel+0x19138): multiple
definition of `___S_void'
     [exec]
./obj/local/armeabi/objs/native-activity/main.o1.o:(.data.rel+0xe0): first
defined here

I would like to know if any of you had similar experiences, and why I'm
getting this multiple definitions? The link file (called main.o1.c) seems
to redefine these symbols, but they are also defined in libgambc.a (which
is compiled for ARM architecture)
Why could this be happening?

I'd appreciate any pointers. Thanks a lot for your help,

Álvaro Castro-Castilla
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20120108/fb247942/attachment.htm>


More information about the Gambit-list mailing list