I am attempting to build haiku for ppc on an amd64 machine and am having some problems building the cross compiler for Haiku: Environment: Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.2-1ubuntu11' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11) *************************** building compiler environment with the following on AMD64: ./configure --build-cross-tools-gcc4 ppc ../buildtools/ *************************** Problem: binutils fails with errors in bucomm.c: haiku/buildtools/binutils/binutils/bucomm.c:433: error: ignoring return value of ‘mktemp’, declared with attribute warn_unused_result Fix: wrap mktemp with assert function as listed here: http://osdir.com/ml/lfs.hardened/2006-10/msg00032.html caused by recent addition of -D_FORTIFY_SOURCE? Problem: binutils fails with errors in ar.c: haiku/buildtools/binutils/binutils/ar.c:810: error: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result ... haiku/buildtools/binutils/binutils/ar.c:893: error: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result Fix: assert function will not cover this error, maybe disable this warn_unused_result? Has anyone seen this before or know where warn_unused_result is defined? -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.