Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 431686

Summary: sys-devel/gnuconfig: config.sub should be made aware of musl as a possible libc in the tuple
Product: Gentoo Linux Reporter: Anthony Basile <blueness>
Component: [OLD] DevelopmentAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: Add musl support to config.sub

Description Anthony Basile gentoo-dev 2012-08-16 22:12:15 UTC
When building a musl based system, where the tuple is of the form CHOST="x86_64-gentoo-linux-musl", gnuconfig's config.sub fails to recognize the "machine".  Eg.

CFLAGS="-D_GNU_SOURCE -D_BSD_SOURCE" CBUILD="x86_64-gentoo-linux-gnu" CC=musl-gcc ROOT=rootfs PORTAGE_CONFIGROOT=rootfs emerge ncurses

>>> Unpacking source...
>>> Unpacking ncurses-5.9.tar.gz to /var/tmp/portage/sys-libs/ncurses-5.9-r2/work
 * Applying ncurses-5.8-gfbsd.patch ...                                                                               [ ok ]
 * Applying ncurses-5.7-nongnu.patch ...                                                                              [ ok ]
 * Applying ncurses-5.9-rxvt-unicode-9.15.patch ...                                                                   [ ok ]
 * Applying ncurses-5.9-fix-clang-build.patch ...                                                                     [ ok ]
>>> Source unpacked in /var/tmp/portage/sys-libs/ncurses-5.9-r2/work
>>> Compiling source in /var/tmp/portage/sys-libs/ncurses-5.9-r2/work/ncurses-5.9 ...
 * econf: updating ncurses-5.9/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating ncurses-5.9/config.guess with /usr/share/gnuconfig/config.guess
/var/tmp/portage/sys-libs/ncurses-5.9-r2/work/ncurses-5.9/configure --prefix=/usr --build=x86_64-gentoo-linux-gnu --host=x86_64-gentoo-linux-musl --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-terminfo-dirs=/etc/terminfo:/usr/share/terminfo --with-shared --without-hashed-db --without-ada --with-cxx --with-cxx-binding --without-debug --without-profile --without-gpm --disable-termcap --enable-symlinks --with-rcs-ids --with-manpage-format=normal --enable-const --enable-colorfgbg --enable-echo --enable-pc-files --enable-warnings --without-assertions --disable-leaks --without-expanded --with-macros --without-trace --with-chtype=long --with-mmask-t=long --disable-ext-colors --disable-ext-mouse --without-pthread --without-reentrant
checking for egrep... grep -E
Configuring NCURSES 5.9 ABI 5 (Thu Aug 16 22:05:47 Local time zone must be set--see zic manual page 2012)
checking build system type... x86_64-gentoo-linux-gnu
checking host system type... Invalid configuration `x86_64-gentoo-linux-musl': machine `x86_64-gentoo-linux' not recognized
configure: error: /bin/sh /var/tmp/portage/sys-libs/ncurses-5.9-r2/work/ncurses-5.9/config.sub x86_64-gentoo-linux-musl failed



Reproducible: Always
Comment 1 Anthony Basile gentoo-dev 2012-08-16 22:19:14 UTC
Created attachment 321522 [details, diff]
Add musl support to config.sub
Comment 2 SpanKY gentoo-dev 2012-08-17 03:30:07 UTC
`git send-email --to config-patches@gnu.org ...`
Comment 4 SpanKY gentoo-dev 2012-08-18 15:26:26 UTC
should be all set now in the tree; thanks for the report!

Commit message: Update gnuconfig snapshot
http://sources.gentoo.org/sys-devel/gnuconfig/gnuconfig-20120818.ebuild?rev=1.1