Hi, Is anyone able to compile gcc-4.8 with musl? I try to prepare patch based on the work of Gregor Richards... but without success. I wonder if the error isn't in gcc. patch gcc-4.8-musl.diff and several fixes from sabotage distro: libibertyfix libiberty # Prevent libffi from being installed sed -i -e 's/\(install.*:\) install-.*recursive/\1/' "${S}"/libffi/Makefile.in sed -i -e 's/\(install-data-am:\).*/\1/' "${S}"/libffi/include/Makefile.in configure: CHOST="x86_64-pc-linux-musl" PREFIX="/usr" BINPATH="${PREFIX}/lib/gcc/$version/bin" LIBPATH="${PREFIX}/lib/gcc/$version/lib" DATAPATH="${PREFIX}/share/gcc/$version/" STDCXX_INCDIR="${PREFIX}/include/c++/$version" GCC_LANG="c,c++" ./configure \ --host="${CHOST}" \ --build="${CHOST}" \ --target="${CHOST}" \ --prefix="${PREFIX}" \ --exec-prefix="${PREFIX}" \ --bindir="${BINPATH}" \ --libdir="${LIBPATH}" \ --with-slib=/lib \ --includedir=/usr/lib/gcc/$version/include \ --with-gxx-include-dir="${STDCXX_INCDIR}" \ --datadir="${DATAPATH}" \ --mandir="${DATAPATH}"/man \ --infodir="${DATAPATH}"/info \ --with-python-dir=/usr/share/gcc/$version/python \ --with-newlib \ --with-headers=no \ --disable-altivec \ --disable-fixed-point \ --without-ppl \ --without-cloog \ --enable-lto \ --disable-nls \ --with-system-zlib \ --enable-obsolete \ --disable-werror \ --enable-secureplt \ --disable-multilib \ --with-multilib-list=m64 \ --disable-libmudflap \ --disable-libssp \ --enable-esp \ --enable-libgomp \ --enable-checking=release \ --disable-libgcj \ --enable-languages="${GCC_LANG}" \ --enable-shared \ --enable-threads=posix \ --enable-tls \ --enable-__cxa_atexit \ --enable-clocale=generic error: make[3]: Entering directory `/var/tmp/ports/gcc/work/gcc-4.8-20130321/x86_64-pc-linux-musl/libstdc++-v3/include' echo timestamp > stamp-pb make[3]: *** No rule to make target `/var/tmp/ports/gcc/work/gcc-4.8-20130321/libstdc++-v3/config//ctype_base.h', needed by `stamp-host'. Stop. This header file is located in (ls) /var/tmp/ports/gcc/work/gcc-4.8-20130321/libstdc++-v3/config/os/generic/ ctype_base.h ctype_configure_char.cc ctype_inline.h error_constants.h os_defines.h and a little strange that gcc does not see it. Any thoughts? Daniel