LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-30-2015, 03:11 PM   #1
JulianD
LQ Newbie
 
Registered: Nov 2012
Posts: 25

Rep: Reputation: Disabled
lfs 7.7 gcc build pass 2 fail on make


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
 
Old 07-30-2015, 03:40 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

What gcc do you have can you check and what book are you using?
Just that the 1st line "/bin/sh ./libtool has "../../gcc-5.2.0" maybe that is correct not sure.
 
Old 07-31-2015, 01:13 AM   #3
JulianD
LQ Newbie
 
Registered: Nov 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
ok - different gcc

Hi,

ok it should be 4.1.2 or not greater than 4.9.2 (vii. Host System Requirements )

Is it possible I could try with "this recompile with -fPIC"

Do you or anyone know where I could put it. It was at least 3/4 way through completion. If not nearly done.


Thanks,


Julian
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LFS 7.5 build issue in section 5.5(GCC-4.8.2 pass 1) sauravkp Linux - General 11 10-27-2014 01:18 PM
[SOLVED] LFS: Error during GCC-4.7.1-Pass 1 (LFS 7.2, Section 5.5) erkant Linux From Scratch 7 11-28-2012 06:03 AM
Error in Make of GCC-4.7.1 - Pass 2 of LFS 7.2 Lakhan Kumar Linux From Scratch 15 11-19-2012 04:39 AM
[SOLVED] LFS 7.0 GCC pass 2 fail liltux Linux From Scratch 6 12-27-2011 02:34 AM
LFS 6.6 - Chapter 5.5 - make[2]: *** [buildgetconstants.o] Error 1 - GCC Pass 1 malikcpp Linux From Scratch 3 06-29-2010 08:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration