Isaac
2013-07-01 02:54:59 UTC
Hello,
I'm attempting to build ast-base for the sake of ksh93 on a new Linux libc,
musl[1]; I am using musl 0.9.11.
The attempt was made on a minimal system with musl as the native libc,
but it's quite simple to install it in parallel with libc6 and use
the musl-gcc wrapper as CC (see option 1 in [2] for details).
I grabbed the latest releases today from the main download page
for INIT and ast-base.
After extracting in ~/ast/, I typed this:
bin/package make CFLAGS="-D_ALL_SOURCE -Os" 2>&1 |tee ast-pkg-make.log
The attempt to compile appears to stop pretty quick; I'm attaching the
build log (bz2 compressed since it's nearly 19 megabytes, for some reason.)
I notice that a great number of iffe tests are giving false negatives;
I don't know why this is.
musl implements C99 and most of SUS4/POSIX2008 (-D_XOPEN_SOURCE=700),
as well as many GNU extensions (available with -D_GNU_SOURCE) and several BSD
extensions (-D_BSD_SOURCE); -D_ALL_SOURCE makes all of them available.
However, it does have much less of the nested header inclusions than
libc6.
Defining __USE_GNU is not going to do anything for musl; musl uses the
documented feature test macros exclusively.
Any ideas what's wrong?
Thanks,
Isaac Dunham
[1] http://www.musl-libc.org/
[2] http://git.musl-libc.org/cgit/musl/tree/INSTALL
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ast-pkg-make.log.bz2
Type: application/octet-stream
Size: 239595 bytes
Desc: not available
URL: <http://lists.research.att.com/pipermail/ast-developers/attachments/20130630/cc9def20/attachment-0001.obj>
I'm attempting to build ast-base for the sake of ksh93 on a new Linux libc,
musl[1]; I am using musl 0.9.11.
The attempt was made on a minimal system with musl as the native libc,
but it's quite simple to install it in parallel with libc6 and use
the musl-gcc wrapper as CC (see option 1 in [2] for details).
I grabbed the latest releases today from the main download page
for INIT and ast-base.
After extracting in ~/ast/, I typed this:
bin/package make CFLAGS="-D_ALL_SOURCE -Os" 2>&1 |tee ast-pkg-make.log
The attempt to compile appears to stop pretty quick; I'm attaching the
build log (bz2 compressed since it's nearly 19 megabytes, for some reason.)
I notice that a great number of iffe tests are giving false negatives;
I don't know why this is.
musl implements C99 and most of SUS4/POSIX2008 (-D_XOPEN_SOURCE=700),
as well as many GNU extensions (available with -D_GNU_SOURCE) and several BSD
extensions (-D_BSD_SOURCE); -D_ALL_SOURCE makes all of them available.
However, it does have much less of the nested header inclusions than
libc6.
Defining __USE_GNU is not going to do anything for musl; musl uses the
documented feature test macros exclusively.
Any ideas what's wrong?
Thanks,
Isaac Dunham
[1] http://www.musl-libc.org/
[2] http://git.musl-libc.org/cgit/musl/tree/INSTALL
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ast-pkg-make.log.bz2
Type: application/octet-stream
Size: 239595 bytes
Desc: not available
URL: <http://lists.research.att.com/pipermail/ast-developers/attachments/20130630/cc9def20/attachment-0001.obj>