From: ludo@gnu.org (Ludovic Courtès)
To: beuc@beuc.net
Cc: guile-user@gnu.org
Subject: Re: Compiling for Android
Date: Mon, 23 Jun 2014 09:59:24 +0200 [thread overview]
Message-ID: <87bntkoy3n.fsf@gnu.org> (raw)
In-Reply-To: <20140622140829.GA745@mail.beuc.net> (beuc@beuc.net's message of "Sun, 22 Jun 2014 16:08:29 +0200")
beuc@beuc.net skribis:
> On Sat, Jun 21, 2014 at 11:34:18PM +0200, Ludovic Courtès wrote:
>> beuc@beuc.net 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’.
next prev parent reply other threads:[~2014-06-23 7:59 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-18 21:54 Compiling for Android beuc
2014-06-20 10:16 ` Ludovic Courtès
2014-06-21 20:06 ` beuc
2014-06-21 21:34 ` Ludovic Courtès
2014-06-22 14:08 ` beuc
2014-06-23 7:59 ` Ludovic Courtès [this message]
2014-06-23 18:59 ` beuc
2014-06-24 7:56 ` Ludovic Courtès
2014-06-25 21:23 ` beuc
2014-06-25 22:04 ` Ludovic Courtès
2014-06-24 14:04 ` Mark H Weaver
2014-07-04 14:00 ` Ludovic Courtès
2014-07-04 14:01 ` Ludovic Courtès
2014-06-22 15:42 ` libunistring test beuc
2014-06-23 8:04 ` Ludovic Courtès
2014-06-23 16:48 ` beuc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bntkoy3n.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=beuc@beuc.net \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).