Hi,
I am sure I did everything right up to GCC-4.9.2 - Pass 2 but on running make I get :
Code:
/bin/sh ./libtool --tag=CXX --mode=link x86_64-lfs-linux-gnu-g++ -W -Wall -fvisibility=hidden -g -O2 -module -export-symbols ../../gcc-5.2.0/libcc1/libcc1.sym -Xcompiler '-static-libstdc++' -Xcompiler '-static-libgcc' -o libcc1.la -rpath /tools/lib/../lib64 findcomp.lo libcc1.lo names.lo callbacks.lo connection.lo marshall.lo -Wc,../libiberty/pic/libiberty.a
libtool: link: x86_64-lfs-linux-gnu-g++ -fPIC -DPIC -shared -nostdlib /mnt/lfs/tools/lib/../lib64/crti.o /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/5.2.0/crtbeginS.o .libs/findcomp.o .libs/libcc1.o .libs/names.o .libs/callbacks.o .libs/connection.o .libs/marshall.o -L/mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/5.2.0 -L/mnt/lfs/tools/bin/../lib/gcc -L/mnt/lfs/tools/lib/../lib64 -L/mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/5.2.0/../../../../x86_64-lfs-linux-gnu/lib -L/mnt/lfs/tools/lib /tools/lib/../lib64/libstdc++.a -lm -lc -lgcc /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/5.2.0/crtendS.o /mnt/lfs/tools/lib/../lib64/crtn.o -static-libstdc++ -static-libgcc ../libiberty/pic/libiberty.a -Wl,-soname -Wl,libcc1.so.0 -Wl,-retain-symbols-file -Wl,../../gcc-5.2.0/libcc1/libcc1.sym -o .libs/libcc1.so.0.0.0
/mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/5.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: /tools/lib/../lib64/libstdc++.a(new_op.o): relocation R_X86_64_32 against `_ZTVSt9exception' can not be used when making a shared object; recompile with -fPIC
/tools/lib/../lib64/libstdc++.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:409: recipe for target 'libcc1.la' failed
make[3]: *** [libcc1.la] Error 1
make[3]: Leaving directory '/mnt/lfs/sources/gcc-build/libcc1'
Makefile:291: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/mnt/lfs/sources/gcc-build/libcc1'
Makefile:10639: recipe for target 'all-libcc1' failed
make[1]: *** [all-libcc1] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-build'
Makefile:880: recipe for target 'all' failed
make: *** [all] Error 2
Again I am sure I did everything right up to this point.
Would anyone have any input on this. Thanks!
Or where do I put "recompile with -fPIC"
Thanks!
Julian