[lfs-support] compile error with libstdc++

Ken Moffat zarniwhoop at ntlworld.com
Sat Oct 26 16:28:15 PDT 2013


On Sun, Oct 27, 2013 at 01:01:17AM +0200, Hans P. wrote:
> Hello,
> 
> I'm try to compile the libstdc++. I'm read carefully the section "5.8.1.
> Installation of Target Libstdc++", but when i try to "make install" I
> get an error:
> "../libtool: line 1132: i686-lfs-linux-gnu-ranlib: command not found"
> 
> and after that, some line further the program stop.
> 
> Can someone help me?
> 

 Just to be clear - did you remove the gcc-4.8.1/ directory after
pass 1 of gcc ?  You need fresh source and build directories each
time.  I'm mentioning that because I don't remember seeing this
problem before.  If you re-used the previous source, please use
fresh source and try again.

> Thanks a lot
> 
> best regards
>     rado
> 
> 
> I execute the following command:
> ../gcc-4.8.1/libstdc++-v3/configure --host=i686-lfs-linux-gnu
> --prefix=/tools --disable-multilib --disable-shared --disable-nls
> --disable-libstdcxx-threads --disable-libstdcxx-pch
> --with-gxx-include-dir=/tools/i686-lfs-linux-gnu/include/c++/4.8.1
> 
> Result:
> ...
> make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/include'
> Making install in libsupc++
> make[1]: Entering directory `/mnt/lfs/sources/gcc-build/libsupc++'
> make[2]: Entering directory `/mnt/lfs/sources/gcc-build/libsupc++'
> test -z "/tools/lib" || /bin/mkdir -p "/tools/lib"
>  /bin/sh ../libtool   --mode=install /usr/bin/install -c   libsupc++.la
> '/tools/lib'
> libtool: install: /usr/bin/install -c .libs/libsupc++.lai
> /tools/lib/libsupc++.la
> libtool: install: /usr/bin/install -c .libs/libsupc++.a
> /tools/lib/libsupc++.a
> libtool: install: chmod 644 /tools/lib/libsupc++.a
> libtool: install: i686-lfs-linux-gnu-ranlib /tools/lib/libsupc++.a
> ../libtool: line 1132: i686-lfs-linux-gnu-ranlib: command not found

 i686-lfs-linux-gnu-ranlib should have been installed by binutils
pass 1.  You presumably have *some* of the binutils programs,
otherwise gcc pass 1 could not have built for $LFS_TGT.

 My i686 log shows the following programs were installed.  Please
check if they are present on your build:

/tools/bin/i686-lfs-linux-gnu-addr2line
/tools/bin/i686-lfs-linux-gnu-ar
/tools/bin/i686-lfs-linux-gnu-as
/tools/bin/i686-lfs-linux-gnu-c++filt
/tools/bin/i686-lfs-linux-gnu-elfedit
/tools/bin/i686-lfs-linux-gnu-gprof
/tools/bin/i686-lfs-linux-gnu-ld
/tools/bin/i686-lfs-linux-gnu-ld.bfd
/tools/bin/i686-lfs-linux-gnu-nm
/tools/bin/i686-lfs-linux-gnu-objcopy
/tools/bin/i686-lfs-linux-gnu-objdump
/tools/bin/i686-lfs-linux-gnu-ranlib
/tools/bin/i686-lfs-linux-gnu-readelf
/tools/bin/i686-lfs-linux-gnu-size
/tools/bin/i686-lfs-linux-gnu-strings
/tools/bin/i686-lfs-linux-gnu-strip

 and also some of them were in /tools/i686-lfs-linux-gnu/bin/ :

/tools/i686-lfs-linux-gnu/bin/ar
/tools/i686-lfs-linux-gnu/bin/as
/tools/i686-lfs-linux-gnu/bin/ld
/tools/i686-lfs-linux-gnu/bin/ld.bfd
/tools/i686-lfs-linux-gnu/bin/nm
/tools/i686-lfs-linux-gnu/bin/objcopy
/tools/i686-lfs-linux-gnu/bin/objdump
/tools/i686-lfs-linux-gnu/bin/ranlib
/tools/i686-lfs-linux-gnu/bin/strip

[ ISTR these are hardlinked to the first set ].

 Are all these files present ?  If not, which are missing ?

 Another thing to consider - did you interrupt the build and exit it,
then later come back ?  Perhaps the environment for user lfs didn't
get restored ?

ĸen
-- 
das eine Mal als Tragödie, dieses Mal als Farce



More information about the lfs-support mailing list