Nicolas FRANCOIS wrote:

> Le Thu, 5 May 2005 21:23:05 +0600 "Alexander E. Patrakov"
> <[EMAIL PROTECTED]> a ?crit :
> 
>> Matthias B. wrote:
>> > It's worse than that. The C++ components of gcc 2.95 don't compile
> with
>> > recent glibcs.
>> 
>> That's just FUD.
>> 
>>
> http://www.diy-linux.org/pipermail/diy-linux-dev/2005-January/000285.html
> 
> I followed your link. I still get the same error message. I follow the the
> LFS-BOOK-SVN-20050412 for glibc compilation :
> 
>   ../glibc-2.3.4/configure --prefix=/tools     --disable-profile
> --enable-add-ons=linuxthreads --without-__thread --enable-kernel=2.6.0
> --with-binutils=/tools/bin     --without-gd --with-headers=/tools/include
>    --without-selinux
> make -k install_root=/tmp/foo install-headers

Strange. My instructions:

tar xf /sources/glibc-2.3.4.tar.bz2
cd glibc-2.3.4
tar xf /sources/glibc-linuxthreads-2.3.4.tar.bz2
mkdir ../glibc-build
cd ../glibc-build
../glibc-2.3.4/configure --prefix=/usr --disable-profile \ 
 --enable-add-ons=linuxthreads --libexecdir=/usr/lib/glibc \
 --without-__thread
make -k install_root=/tmp/foo install-headers  # Ignore errors
cd ..
tar xf /sources/gcc-core-2.95.3.tar.gz
tar xf /sources/gcc-g++-2.95.3.tar.gz
cd gcc-2.95.3
sed -i.bak '/MTSAFE/s,$, -I/tmp/foo/usr/include,' \
 libio/config/mtsafe.mt libstdc++/config/linux.mt
sed -i.bak '/hypot.*const/d' libstdc++/std/complext.h
patch -Np1 -i /sources/gcc-2.95.3-2.patch
patch -Np1 -i /sources/gcc-2.95.3-no-fixinc.patch
patch -Np1 -i /sources/gcc-2.95.3-returntype-fix.patch
mkdir ../gcc-build
cd ../gcc-build
../gcc-2.95.3/configure --prefix=/opt/gcc-2.95.3 --enable-shared \ 
 --enable-languages=c,c++ --enable-threads=posix
make bootstrap
find . -name "*libstdc++*.so" -type f

The output of the last command is:

./i686-pc-linux-gnu/libstdc++/libstdc++-3-libc6.3-2-2.10.0.so

BTW I don't need the --host=i686-pc-linux-gnu parameter.

If that matters, the rest of the system is built exactly by the instructions 
in the "unionfs" branch of the "livecd" repository.

-- 
Alexander E. Patrakov
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to