guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling for Android


From: beuc
Subject: Re: Compiling for Android
Date: Sat, 21 Jun 2014 22:06:25 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Hi!

On Fri, Jun 20, 2014 at 12:16:41PM +0200, Ludovic Courtès wrote:
> address@hidden skribis:
> 
> > Is there anybody working on compiling Guile for Android?
> 
> Not that I know of.
> 
> > Here are some notes when trying to compile stable-2.0.
> >
> > First important note: I had to move "AC_CHECK_LIB(m, cos)" (which btw
> > could be rewritten at LT_LIB_M()) before gl_INIT in configure.ac,
> > otherwise libunistring would fail to be detected.
> 
> Could you send the config.log of the failing thing?

Selected bits:

  configure:14688: checking for libunistring
  configure:14710: arm-linux-androideabi-gcc -o conftest -g -O2 
-I/usr/src/ndk-standalone-12/sysroot/usr/include  conftest.c 
/usr/src/ndk-standalone-12/sysroot/usr/lib/libunistring.so -Wl,-rpath 
-Wl,/usr/src/ndk-standalone-12/sysroot/usr/lib  >&5
  
/usr/src/ndk-standalone-12/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
 /usr/src/ndk-standalone-12/sysroot/usr/lib/libunistring.so: error: undefined 
reference to 'frexp'
  collect2: ld returned 1 exit status

I'll send you the complete log separately due to size.


> I wasn’t aware of LT_LIB_M, thanks for the tip.
> 
> > The compilation fails when libgc tries to use pthread features not
> > implemented under Android (btw ./configure was happy to start
> > compiling even if libgc wasn't present).  Not sure where to go from
> > here, maybe other projects use libgc and already faced the issue?
> 
> Does it work if libgc is configure with --disable-threads?

Not in 7.2 :/

libtool: compile:  arm-linux-androideabi-gcc -DHAVE_CONFIG_H -I./include 
-I../include -I./libatomic_ops/src -I../libatomic_ops/src -fexceptions -g -O2 
-fno-strict-aliasing -MT alloc.lo -MD -MP -MF .deps/alloc.Tpo -c ../alloc.c -o 
alloc.o
../alloc.c: In function 'GC_collect_a_little_inner':
../alloc.c:507:5: error: 'PTHREAD_CANCEL_DISABLE' undeclared (first use in this 
function)
../alloc.c:507:5: note: each undeclared identifier is reported only once for 
each function it appears in
../alloc.c: In function 'GC_try_to_collect_general':
../alloc.c:971:5: error: 'PTHREAD_CANCEL_DISABLE' undeclared (first use in this 
function)
../alloc.c: In function 'GC_collect_or_expand':
../alloc.c:1247:5: error: 'PTHREAD_CANCEL_DISABLE' undeclared (first use in 
this function)
Makefile:1377: recipe for target 'alloc.lo' failed
make[1]: *** [alloc.lo] Error 1


> > Which version of libgc do you recommend?
> 
> 7.4.0 should be good.

Hmmm, the one that requires yet another dependency (libatomic)? T-T
I'll have a look.


P.S.: I managed to cross-compile GNU FreeDink for Android today :D

-- 
Sylvain



reply via email to

[Prev in Thread] Current Thread [Next in Thread]