[Clfs-support] build error because gcc configure option is misplaced
Sela Selah
selah at outlook.com
Wed Jan 22 04:47:38 PST 2014
I follow the development 2.x version to do my CLFS on mips64el.
This bug maybe also appear in the stable 2.1 version (even in others port).
In chapter 5.16. Cross GCC-4.8.2 - Static
The configure option code:
AR=ar LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
../gcc-4.8.2/configure --prefix=/cross-tools \
--build=${CLFS_HOST} --host=${CLFS_HOST} --target=${CLFS_TARGET} \
--with-sysroot=${CLFS} --with-local-prefix=/tools \
--with-native-system-header-dir=/tools/include --disable-nls \
--enable-shared --disable-static --enable-languages=c,c++ \
--enable-__cxa_atexit --enable-c99 --enable-long-long
--enable-threads=posix \
--disable-multilib --with-mpc=/cross-tools --with-mpfr=/cross-tools \
--with-gmp=/cross-tools --with-cloog=/cross-tools
--enable-cloog-backend=isl \
--with-isl=/cross-tools --disable-isl-version-check --with-system-zlib \
--enable-checking=release --enable-libstdcxx-time --with-abi=64
Should place into the chapter "5.18. Cross GCC-4.8.2 - Final", and vice
versa.
If follow the wrong configure, the build of gcc will not create newlib but
try to use the header of eglibc, results error like this:
Some/path/i/forgot/tsystem.h: fatal error: stdio.h no such file or
directory.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20140122/1d9bcc1e/attachment.html>
More information about the Clfs-support
mailing list