libxenon (Linux on Xbox 360) project is using newlib and GCC 4.6.1. http://libxenon.org/ Their guide (offensively Ubuntu-ish): http://free60.org/Compiling_the_Toolchain#Building_the_Toolchain Basically, binutils-2.21.1, gcc-4.6.1 and newlib. Just like crossdev they build GCC in 2 stages. While their ./configure uses the tuple powerpc64-unknown-linux-gnu, they end up using newlib anyway (seems hackish). They also use: -enable-languages="c" --without-headers --disable-shared --with-newlib --disable-libmudflap --disable-libssp --disable-nls --without-headers --disable-decimal-float --enable-altivec (I know crossdev disables this) --with-gmp=/opt/local --with-mpfr=/opt/local --with-cpu=cell In this sense, it's similar to the PPU target. On second stage for them: --with-cpu=cell --with-gmp=/opt/local --with-mpfr=/opt/local --disable-decimal-float --disable-libquadmath --enable-languages=c,c++ --disable-libssp --with-newlib --enable-cxx-flags="-G0" --disable-libmudflap --disable-nls --disable-shared --disable-linux-futex --enable-altivec --disable-threads --disable-libgomp See attached build-xenon-toolchain script for more information. Reproducible: Always Steps to Reproduce: crossdev --gcc 4.6.1 -t powerpc64-unknown-linux-newlib Actual Results: Fails to build: /var/tmp/portage/cross-powerpc64-unknown-linux-newlib/gcc-4.6.0/work/gcc-4.6.0/libgcc/../libdecnumber/decContext.c:33:43: fatal error: string.h: No such file or directory Expected Results: Should compile. I'm willing to add libxenon (own ebuild) manually after that. If a special target like xenon could be added that would apply any patches necessary and get the libxenon library could be added that would be great. If I make this happen, I will post a patch.
Created attachment 286235 [details] Build log
Created attachment 286237 [details] free60's build toolchain script
Created attachment 286239 [details] gcc diff
Created attachment 286241 [details] gcc 4.6.1 diff
Created attachment 286243 [details] GCC stage 1 Info
use -elf, not -newlib in your tuple