[Buildroot] ARCH=ppc vs powerpc

Peter Korsgaard jacmet at uclibc.org
Fri Apr 4 09:37:21 UTC 2008


>>>>> "Guillaume" == Guillaume Dargaud <dargaud at lpsc.in2p3.fr> writes:

 Guillaume> Hello Peter and thanks for the support.
 >> Just do make menuconfig and select powerpc/405/softfloat and off you
 >> go.

 Guillaume> Did exactly that from a clean svn. Incidentaly I notice
 Guillaume> that there are now far fewer activated defaults (no IPV6,
 Guillaume> CXX, locale, kernel compilation,

Exactly - The .defconfig was quite screwed up :/

 Guillaume> checking how to run the C preprocessor... /usr/bin/cpp
 Guillaume> configure: error: C preprocessor "/usr/bin/cpp " fails sanity check
 Guillaume> See `config.log' for more details.
 Guillaume> make: *** 
 Guillaume> [/home/guinevere/buildroot/toolchain_build_powerpc/gmp-4.2.2-host/.configured] 
 Guillaume> Error 1

What Linux distribution and what version of gcc/cpp are you using?

I'm using:
% gcc -v                                                     ~
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --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.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release x86_64-linux-gnu
Thread model: posix
gcc version 4.1.3 20070831 (prerelease) (Debian 4.1.2-16)

 Guillaume> It also tries to compile gmp without the BR2_SOFT_FLOAT
 Guillaume> option. And same error with your .config.

 Guillaume> Now gmp is a dependency of uclibc, right ? So I disable
 Guillaume> the FPU in there...  same thing.

It's afaik a dependency of gcc.

 Guillaume> There's something wrong with the cross compiler, right ?!?

 Guillaume> 2 $ egrep -v "^#|^$" .config
 Guillaume> BR2_HAVE_DOT_CONFIG=y
 Guillaume> BR2_VERSION="0.10.0-svn"
 Guillaume> BR2_powerpc=y
 Guillaume> BR2_powerpc_405=y
 Guillaume> BR2_ARCH="powerpc"
 Guillaume> BR2_ENDIAN="BIG"
 Guillaume> BR2_GCC_TARGET_TUNE="405"
 Guillaume> BR2_PROJECT="uclibc"
 Guillaume> BR2_HOSTNAME="uclibc"
 Guillaume> BR2_BANNER="Welcome to the Erik's uClibc development environment."
 Guillaume> BR2_BOARD_NAME="arm"
 Guillaume> BR2_BOARD_PATH="target/device/ARM"
 Guillaume> ### What is this doing here ?!?

Don't worry, this is OK. (Ulf did this, and indeed - you could argue
about it's validity).

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list