B
B
BloodySucker2014-03-04 18:28:39
linux
BloodySucker, 2014-03-04 18:28:39

How to fix GCC 4.8.2 compilation problem?

In general, I began to study LFS (Linux from scratch) and a problem arose. After compilation, the $LFS_TGT/include/c++/4.8.2 folder did not appear.
And without the includes inside it, it is impossible to adequately compile GCC at the next stage and Libstdc++ .
Actually, the config:
../gcc/configure
--target=$LFS_TGT
--prefix=/tools
--with-sysroot=$LFS
--with-newlib
--without-headers
--with-local-prefix=/tools
--with-native-system-header-dir=/tools/include
--disable-nls
--disable-shared
--disable-multilib
--disable-decimal-float
--disable-threads
--disable-libatomic
-- disable-libgomp
--disable-libitm
--disable-libmudflap
--disable-libquadmath
--disable-libsanitizer
--disable-libssp
--disable-libstdc -v3
--enable-languages=c,c
--with-mpfr-include=$(pwd)/. ./gcc/mpfr/src
--with-mpfr-lib=$(pwd)/mpfr/src/.libs

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
EXL, 2014-03-04
@EXL

Not sure, but maybe this page will help you.

J
jcmvbkbc, 2014-03-04
@jcmvbkbc

After compilation, the $LFS_TGT/include/c++/4.8.2 folder did not appear

It will appear not after compilation, but after installation (make all-gcc or something like that).

X
xandox, 2014-03-05
@xandox

In my opinion, you have a problem in these two parameters
--target=$LFS_TGT
--prefix=/tools
Target is the architecture for which to build (x86, x86_64, arm)
and the prefix is ​​just where to install

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question