[lfs-book] [LFS Trac] #3585: library path problem while building libstdc++ (chapter 5.8. Libstdc++-4.8.2)

LFS Trac trac at linuxfromscratch.org
Sun May 18 21:34:36 PDT 2014


#3585: library path problem while building libstdc++ (chapter 5.8.
Libstdc++-4.8.2)
--------------------+-------------------------
 Reporter:  miland  |       Owner:  lfs-book@…
     Type:  task    |      Status:  new
 Priority:  normal  |   Milestone:  7.6
Component:  Book    |     Version:  SVN
 Severity:  normal  |  Resolution:
 Keywords:          |
--------------------+-------------------------

Comment (by miland):

 just to throw a bit more light into what's happening, I tried compiling a
 test file, to simulate what configure script was trying to do, with -v
 flag on, just to expose where it was looking for stuff:


 mk7 at mk7i-durovicm:~> /usr/share/mk7i-toolchain/tools/bin/i686-alx-linux-
 gnu-gcc -v -I/usr/share/mk7i-toolchain/tools/include test.c
 Using built-in specs.
 COLLECT_GCC=/usr/share/mk7i-toolchain/tools/bin/i686-alx-linux-gnu-gcc
 COLLECT_LTO_WRAPPER=/usr/share/mk7i-toolchain/tools/libexec/gcc/i686-alx-
 linux-gnu/4.8.2/lto-wrapper
 Target: i686-alx-linux-gnu
 Configured with: ../gcc-4.8.2/configure --target=i686-alx-linux-gnu
 --prefix=/usr/share/mk7i-toolchain/tools --with-sysroot=/usr/share/mk7i-
 toolchain --with-newlib --without-headers --with-local-prefix=/usr/share
 /mk7i-toolchain/tools --with-native-system-header-dir=/usr/share/mk7i-
 toolchain/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++
 Thread model: single
 gcc version 4.8.2 (GCC)
 COLLECT_GCC_OPTIONS='-v' '-I' '/usr/share/mk7i-toolchain/tools/include'
 '-mtune=generic' '-march=pentiumpro'
  /usr/share/mk7i-toolchain/tools/libexec/gcc/i686-alx-linux-gnu/4.8.2/cc1
 -quiet -v -I /usr/share/mk7i-toolchain/tools/include test.c -quiet
 -dumpbase test.c -mtune=generic -march=pentiumpro -auxbase test -version
 -o /tmp/ccS95aKe.s
 GNU C (GCC) version 4.8.2 (i686-alx-linux-gnu)
         compiled by GNU C version 4.1.2 20061115 (prerelease) (SUSE
 Linux), GMP version 5.1.3, MPFR version 3.1.2, MPC version 1.0.2
 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
 ignoring nonexistent directory "/usr/share/mk7i-toolchain/usr/share/mk7i-
 toolchain/tools/include"
 ignoring nonexistent directory "/usr/share/mk7i-
 toolchain/tools/lib/gcc/i686-alx-linux-gnu/4.8.2/../../../../i686-alx-
 linux-gnu/include"
 ignoring nonexistent directory "/usr/share/mk7i-toolchain/usr/share/mk7i-
 toolchain/tools/include"
 #include "..." search starts here:
 #include <...> search starts here:
  /usr/share/mk7i-toolchain/tools/include
  /usr/share/mk7i-toolchain/tools/lib/gcc/i686-alx-linux-gnu/4.8.2/include
  /usr/share/mk7i-toolchain/tools/lib/gcc/i686-alx-linux-gnu/4.8.2/include-
 fixed
 End of search list.
 GNU C (GCC) version 4.8.2 (i686-alx-linux-gnu)
         compiled by GNU C version 4.1.2 20061115 (prerelease) (SUSE
 Linux), GMP version 5.1.3, MPFR version 3.1.2, MPC version 1.0.2
 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
 Compiler executable checksum: d4ab0d4090ea5fd2277f9bf8e110997e
 COLLECT_GCC_OPTIONS='-v' '-I' '/usr/share/mk7i-toolchain/tools/include'
 '-mtune=generic' '-march=pentiumpro'
  /usr/share/mk7i-toolchain/tools/lib/gcc/i686-alx-linux-
 gnu/4.8.2/../../../../i686-alx-linux-gnu/bin/as -v -I /usr/share/mk7i-
 toolchain/tools/include --32 -o /tmp/ccUFxk7k.o /tmp/ccS95aKe.s
 GNU assembler version 2.24 (i686-alx-linux-gnu) using BFD version (GNU
 Binutils) 2.24
 COMPILER_PATH=/usr/share/mk7i-toolchain/tools/libexec/gcc/i686-alx-linux-
 gnu/4.8.2/:/usr/share/mk7i-toolchain/tools/libexec/gcc/i686-alx-linux-
 gnu/4.8.2/:/usr/share/mk7i-toolchain/tools/libexec/gcc/i686-alx-linux-
 gnu/:/usr/share/mk7i-toolchain/tools/lib/gcc/i686-alx-linux-
 gnu/4.8.2/:/usr/share/mk7i-toolchain/tools/lib/gcc/i686-alx-linux-
 gnu/:/usr/share/mk7i-toolchain/tools/lib/gcc/i686-alx-linux-
 gnu/4.8.2/../../../../i686-alx-linux-gnu/bin/
 LIBRARY_PATH=/usr/share/mk7i-toolchain/tools/lib/gcc/i686-alx-linux-
 gnu/4.8.2/:/usr/share/mk7i-toolchain/tools/lib/gcc/i686-alx-linux-
 gnu/4.8.2/../../../../i686-alx-linux-gnu/lib/
 COLLECT_GCC_OPTIONS='-v' '-I' '/usr/share/mk7i-toolchain/tools/include'
 '-mtune=generic' '-march=pentiumpro'
  /usr/share/mk7i-toolchain/tools/libexec/gcc/i686-alx-linux-
 gnu/4.8.2/collect2 --sysroot=/usr/share/mk7i-toolchain --eh-frame-hdr -m
 elf_i386 -dynamic-linker /usr/share/mk7i-toolchain/tools/lib/ld-linux.so.2
 crt1.o crti.o /usr/share/mk7i-toolchain/tools/lib/gcc/i686-alx-linux-
 gnu/4.8.2/crtbegin.o -L/usr/share/mk7i-toolchain/tools/lib/gcc/i686-alx-
 linux-gnu/4.8.2 -L/usr/share/mk7i-toolchain/tools/lib/gcc/i686-alx-linux-
 gnu/4.8.2/../../../../i686-alx-linux-gnu/lib /tmp/ccUFxk7k.o -lgcc -lc
 -lgcc /usr/share/mk7i-toolchain/tools/lib/gcc/i686-alx-linux-
 gnu/4.8.2/crtend.o crtn.o
 /usr/share/mk7i-toolchain/tools/lib/gcc/i686-alx-linux-
 gnu/4.8.2/../../../../i686-alx-linux-gnu/bin/ld: cannot find crt1.o: No
 such file or directory
 /usr/share/mk7i-toolchain/tools/lib/gcc/i686-alx-linux-
 gnu/4.8.2/../../../../i686-alx-linux-gnu/bin/ld: cannot find crti.o: No
 such file or directory
 /usr/share/mk7i-toolchain/tools/lib/gcc/i686-alx-linux-
 gnu/4.8.2/../../../../i686-alx-linux-gnu/bin/ld: cannot find /usr/share
 /mk7i-toolchain/tools/lib/libc.so.6 inside /usr/share/mk7i-toolchain
 /usr/share/mk7i-toolchain/tools/lib/gcc/i686-alx-linux-
 gnu/4.8.2/../../../../i686-alx-linux-gnu/bin/ld: cannot find /usr/share
 /mk7i-toolchain/tools/lib/libc_nonshared.a inside /usr/share/mk7i-
 toolchain
 /usr/share/mk7i-toolchain/tools/lib/gcc/i686-alx-linux-
 gnu/4.8.2/../../../../i686-alx-linux-gnu/bin/ld: cannot find /usr/share
 /mk7i-toolchain/tools/lib/ld-linux.so.2 inside /usr/share/mk7i-toolchain
 collect2: error: ld returned 1 exit status
 mk7 at mk7i-durovicm:~>

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/3585#comment:1>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.


More information about the lfs-book mailing list