[Clfs-dev] Cross gcc-4.4.0 - Final Error

John Frankish j-frankish at slb.com
Wed Jul 8 09:30:05 PDT 2009


More details at the bottom

From: clfs-dev-bounces at lists.cross-lfs.org [mailto:clfs-dev-bounces at lists.cross-lfs.org] On Behalf Of Jim Gifford
Sent: 04 July, 2009 23:14
To: CLFS development discussion
Subject: Re: [Clfs-dev] Cross gcc-4.4.0 - Final Error


[snip]


>I just did a commit that should fix this error for you.


Thanks, for my own interest, what was the problem?

>The problem you had was the it was looking in cloog was probably built with the wrong ABI, what happens now is the Cloog uses the same ABI as gmp.

Ah - so the change you made was in "5.10 CLooG-PPL-0.15.3", not in "5.14 Cross GCC-4.4.0 - Final" - that would explain why I didn't spot it...

_______________________________________________
After your modifications, "5.14 Cross GCC-4.4.0 - Final" compiles without error.

However - alone out of the apps in chapter 5, gcc builds 64bit libs (cflags and cxxflags are unset) on my ps3.

Moving to chapter 6, I can see from the ./configure output that gmp is going to build 64bit libs too.

I guess I need to set cflags=cxxflags=-m32 before building "5.14 Cross GCC-4.4.0 - Final" to avoid getting a 64bit system?

-------------
Using Version SVN-20090706-PowerPC64-Multilib, I get the same error as above (exception not handled) in 5.16. Cross GCC-4.4.0 - Final

Does this need a different modification to the one made in powerpc32?
_______________________________________________
$ AR=ar LDFLAGS="-Wl,-rpath,/cross-tools/lib" ../gcc-4.4.0/configure --prefix=/cross-tools --build=${CLFS_HOST} --target=${CLFS_TARGET} --host=${CLFS_HOST} --with-sysroot=${CLFS} --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c,c++ --enable-__cxa_atexit --with-mpfr=/cross-tools --with-gmp=/cross-tools --enable-c99 --with-ppl=/cross-tools --with-cloog=/cross-tools --enable-long-long --enable-threads=posix

$ make AS_FOR_TARGET="${CLFS_TARGET}-as" LD_FOR_TARGET="${CLFS_TARGET}-ld"

checking whether the  /mnt/clfs/sources/gcc-build/./gcc/xgcc -shared-libgcc -B/mnt/clfs/sources/gcc-build/./gcc -nostdinc++ -L/mnt/clfs/sources/gcc-build/powerpc64-unknown-linux-gnu/libstdc++-v3/src -L/mnt/clfs/sources/gcc-build/powerpc64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/cross-tools/powerpc64-unknown-linux-gnu/bin/ -B/cross-tools/powerpc64-unknown-linux-gnu/lib/ -isystem /cross-tools/powerpc64-unknown-linux-gnu/include -isystem /cross-tools/powerpc64-unknown-linux-gnu/sys-include linker (/mnt/clfs/sources/gcc-build/./gcc/collect-ld -m elf64ppc) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for exception model to use... configure: error: unable to detect exception model
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/mnt/clfs/sources/gcc-build'
make: *** [all] Error 2



More information about the Clfs-dev mailing list