[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling for Android
From: |
Ludovic Courtès |
Subject: |
Re: Compiling for Android |
Date: |
Mon, 23 Jun 2014 09:59:24 +0200 |
User-agent: |
Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux) |
address@hidden skribis:
> On Sat, Jun 21, 2014 at 11:34:18PM +0200, Ludovic Courtès wrote:
>> address@hidden skribis:
>> > 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
>>
>> It looks like a libunistring issue no? Namely, libunistring assumed
>> frexp to be available in libc, and it isn’t.
>>
>> Does Bionic provide that function in libm or something?
[...]
> You're right that it's an issue in libunistring, and I'm surprised it
> doesn't show up in GNU/Linux.
Because in glibc frexp is part of libc.so, not libm.so.
>> >> > Which version of libgc do you recommend?
>> >>
>> >> 7.4.0 should be good.
>> >
>> > Hmmm, the one that requires yet another dependency (libatomic)? T-T
>>
>> It’s just a part of libgc that has been separated.
>
> Yeah but deps are painful when you manually recompile them one by one ;)
> Anyway, I bit the bullet and installed v2.4.2 which compiles fine!
>
>
> Another issue: ./configure went well but I wasn't told iconv.h was
> required:
> ../../libguile/print.c:27:19: fatal error: iconv.h: No such file or directory
Hmm, could you run “grep -i 'iconv.h' config.log”? There is a check for
that, and normally Gnulib provides a replacement if needed.
Apparently lib/iconv.h doesn’t exist here, right?
> There's also an issue in libffi.pc where a '(libdir)' is copied
> verbatim in LIBS, causing bash error at link time, which I hand-fixed
> for now.
What does libffi.pc look like?
> In the end, I got a classical Android issue:
> CCLD guile
>
> /usr/src/ndk-standalone-12-arm/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
> ./.libs/libguile-2.0.a(libguile_2.0_la-threads.o): in function
> scm_cancel_thread:../../libguile/threads.c:1175: error: undefined reference
> to 'pthread_cancel'
>
> ... classical because Bionic intentionally doesn't implement this function.
You could either comment out the related code in libguile, or build
Guile --without-threads.
Is the rest of pthreads implemented? If yes, then we should add a test
for pthread_cancel and arrange for that.
Thanks,
Ludo’.
- Compiling for Android, beuc, 2014/06/18
- Re: Compiling for Android, Ludovic Courtès, 2014/06/20
- Re: Compiling for Android, beuc, 2014/06/21
- Re: Compiling for Android, Ludovic Courtès, 2014/06/21
- Re: Compiling for Android, beuc, 2014/06/22
- Re: Compiling for Android,
Ludovic Courtès <=
- Re: Compiling for Android, beuc, 2014/06/23
- Re: Compiling for Android, Ludovic Courtès, 2014/06/24
- Re: Compiling for Android, beuc, 2014/06/25
- Re: Compiling for Android, Ludovic Courtès, 2014/06/25
- Re: Compiling for Android, Mark H Weaver, 2014/06/24
- Re: libunistring test, beuc, 2014/06/22
- Re: libunistring test, Ludovic Courtès, 2014/06/23
- Re: libunistring test, beuc, 2014/06/23