* [ Porting Guile on Android 4.4 ]
[not found] <134615905.19718584.1497627856676.ref@mail.yahoo.com>
@ 2017-06-16 15:44 ` Robert Dazi
2017-06-17 15:33 ` Christopher Allan Webber
2017-06-17 15:59 ` Nala Ginrut
0 siblings, 2 replies; 3+ messages in thread
From: Robert Dazi @ 2017-06-16 15:44 UTC (permalink / raw)
To: guile-devel@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1088 bytes --]
Hello, I tried to port Guile 2.2.1 on Android 4.4. As you might know, Android is not GNU/Linux and many functions (and even types such as localeconv) are missing or not acting as expected (either because the Linux headers have been ripped off or because Bionic lacks those features).That means the libraries needed some rewriting, and Guile too. Here some issues : - the 'configure' script generated by autoconf uses the PREFIX variable to find libltdl, whereas it is better to ask the user for that path. - Bionic doesn't implement well locales (and won't), setlocale is an empty function returning NULL - Because the encoding format is unknown, init_random raises an error, but init_random is called before init_throw so since the static variable for throwing is set to an unknown state (on my device it is set to 0), it leads to a segfault. (By the way, setting LC_ALL to UTF-8 fixes the encoding issue if init_throw called before init_random).
Eventually, I've got a (seemingly working) rpl by commenting out the 'setlocale' line within top-repl.scm.
Thanksfully,
[-- Attachment #2: Type: text/html, Size: 1890 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ Porting Guile on Android 4.4 ]
2017-06-16 15:44 ` [ Porting Guile on Android 4.4 ] Robert Dazi
@ 2017-06-17 15:33 ` Christopher Allan Webber
2017-06-17 15:59 ` Nala Ginrut
1 sibling, 0 replies; 3+ messages in thread
From: Christopher Allan Webber @ 2017-06-17 15:33 UTC (permalink / raw)
To: Robert Dazi; +Cc: guile-devel@gnu.org
Robert Dazi writes:
> Hello,I tried to port Guile 2.2.1 on Android 4.4.
Wow nice!
> As you might know, Android is not GNU/Linux and many functions (and
> even types such as localeconv) are missing or not acting as expected
I can't comment to the rest of it, but getting Guile ported to Android
seems desirable if possible.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ Porting Guile on Android 4.4 ]
2017-06-16 15:44 ` [ Porting Guile on Android 4.4 ] Robert Dazi
2017-06-17 15:33 ` Christopher Allan Webber
@ 2017-06-17 15:59 ` Nala Ginrut
1 sibling, 0 replies; 3+ messages in thread
From: Nala Ginrut @ 2017-06-17 15:59 UTC (permalink / raw)
To: Robert Dazi; +Cc: guile-devel
[-- Attachment #1: Type: text/plain, Size: 1360 bytes --]
I'm not familiar with this porting work, so can't help more. But it's great
if I could use Guile on my phone!
Thanks for the work!
2017年6月16日 下午11:48,"Robert Dazi" <robert.dazi@yahoo.fr>写道:
> Hello,
> I tried to port Guile 2.2.1 on Android 4.4. As you might know, Android is
> not GNU/Linux and many functions (and even types such as localeconv) are
> missing or not acting as expected (either because the Linux headers have
> been ripped off or because Bionic lacks those features).
> That means the libraries needed some rewriting, and Guile too. Here some
> issues :
> - the 'configure' script generated by autoconf uses the PREFIX variable
> to find libltdl, whereas it is better to ask the user for that path.
> - Bionic doesn't implement well locales (and won't), setlocale is an
> empty function returning NULL
> - Because the encoding format is unknown, init_random raises an error,
> but init_random is called before init_throw so since the static variable
> for throwing is set to an unknown state (on my device it is set to 0), it
> leads to a segfault. (By the way, setting LC_ALL to UTF-8 fixes the
> encoding issue if init_throw called before init_random).
>
> Eventually, I've got a (seemingly working) rpl by commenting out the
> 'setlocale' line within top-repl.scm.
>
> Thanksfully,
>
[-- Attachment #2: Type: text/html, Size: 2659 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-17 15:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <134615905.19718584.1497627856676.ref@mail.yahoo.com>
2017-06-16 15:44 ` [ Porting Guile on Android 4.4 ] Robert Dazi
2017-06-17 15:33 ` Christopher Allan Webber
2017-06-17 15:59 ` Nala Ginrut
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).