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
Created attachment 321522 [details, diff] Add musl support to config.sub
`git send-email --to config-patches@gnu.org ...`
Accepted upstream. http://git.savannah.gnu.org/gitweb/?p=config.git;a=commit;h=062587eaa891396c936555ae51f7e77eeb71a5fe
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