On Tue, Apr 18, 2017 at 02:04:06PM -0400, Nicholas Miller wrote:
> 
> I am having dificulties in step 5.8
> (http://www.linuxfromscratch.org/lfs/view/development/chapter05/gcc-libstdc++.html)
> 
> 
> I am capable of configuring and building the libc++-v3 package as it
> indicates, but when when I go to install it I get the following error:
> 
> 
> ../libtool: line 1132: i686-pc-linux-gnu-ranlib: command not found
> make[2]: *** [install-toolexeclibLTLIBRARIES] Error 127
> make[1]: *** [install-am] Error 2
> make: *** [install-recursive] Error 1
> 
> 
> Which is odd, when i686-pc-linux-gnu-ranlib exists in $PREFIX/bin, and
> this directory is the first element in my PATH variable. Heck, I can
> type i686-pc-linux-gnu-ranlib at the same prompt I'm receiving this
> error from and get ranlibs' help output. Any idea's as to what to try
> would be appreciated, since everything I know indicates that it should
> be able to find i686-pc-linux-gnu-ranlib.
> 

Just to be sure, you are doing ALL of that as the lfs user ?

Can you also please try, as that user,

type -pa i686-pc-linux-gnu-ranlib

and then run ldd on it, in case there is a linkage problem (seems
unlikely when it gives you help output, but best to confirm that).
> I've configured binutils with:
> ../configure --prefix=$PREFIX \
>              --with-sysroot=$PREFIX \
>              --with-lib-path=$PREFIX/lib \
>              --build=$BUILD \
>              --host=$HOST \
>              --target=$TARGET > ../../binutils.log \
>              CFLAGS="-m32" \
>              CXXFLAGS="-m32"
> 
> And glibc++ with the following (from a clean gcc directory):
>   ../libstdc++-v3/configure \
>                             --host=$TARGET \
>                             --build=$BUILD \
>                             --prefix=$PREFIX \
>                             --disable-multilib \
>                             --disable-nls \
>                             --disable-libstdcxx-threads \
>                             --disable-libstdcxx-pch \
> 
 I assume that blank line was added when you pasted
> --with-gxx-include-dir=$PREFIX/$TARGET/include/c++/6.3.0  \
>                             CFLAGS="-m32" \
>                             CXXFLAGS="-m32" > ../../libstc++_phase_1.log

Usually, obscure learning experiences (aka problems) arise when
people move away from what is in the book.  In your case, for some
reason you are adding -m32.  To me, that suggests that you are
building on a 64-bit system, probably multilib, but trying to build
32-bit.

ĸen
-- 
`I shall take my mountains', said Lu-Tze. `The climate will be good
for them.'     -- Small Gods
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to