[Clfs-support] Build Error for GCC-4.8.1 (chpt 6.9 )

Charlie Brown stieizc.33 at gmail.com
Wed Jun 12 03:05:06 PDT 2013


>The problem is that it isn't using the cross compiler. It's using the
>compiler from the host. Thus it is trying to use host headers and host
>libs.

What is really interesting is that even during my successful build of
gcc-4.8.1 (host without libmpfr-dev libmpc-dev, debian jessie/sid) in
chapter 6.9 (following the book), the host g++ was called:

g++ -c   -g -O2 -DIN_GCC   -fno-exceptions -fno-rtti -fasynchronous-unwind-tab
les -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attri
bute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -
DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.8.1/gcc
-I../../gcc-4.8.1/gcc/build -I../../gcc-4.8.1/gcc/../include
-I../../gcc-4.8.1/gcc/../libc
pp/include  -I../../gcc-4.8.1/gcc/../libdecnumber -I../../gcc-4.8.1/gcc/../lib
decnumber/bid -I../libdecnumber -I../../gcc-4.8.1/gcc/../libbacktrace -DCLOOG_
INT_GMP    \
                -o build/genconstants.o ../../gcc-4.8.1/gcc/genconstants.c

I installed the lib*-devs and successfully built again, and got the
same thing. I don't know if that's really a host problem. g++ is in
the Makefile:
CXX_FOR_BUILD = g++
Actually, the *_FOR_BUILD guys are all host programs. So I guess
that's a test or something, or a bug. And of course I could be totally
wrong.

>> Just a guess, check that if you add --enable-libstdcxx-time to
>> ./configure in 5.17. Cross GCC-4.8.1 - Final. It seems that the
>> cross-tools can't find c++ library in /tools/include.
>It's already there in our book: http://cross-lfs.org/view/svn/ppc64/cross-tools/gcc-final.html
I was justing suggesting Daniel to "double check". Sorry for not being clear. :)


Sincerely,
王文鑫
Charlie



More information about the Clfs-support mailing list