| Newsgroups |
gmane.linux.lfs.support |
| Message-ID |
<[email protected]> |
El 2025-02-04 05:15, Xi Ruoyao escribió:
> On Tue, 2025-02-04 at 04:56 +0100, lumaro wrote:
>
>> Hi all,
>>
>> I have tried many configurations, even following the lfs guidelines to
>> compile and install the updated toolchain.
>
> If you are rebuilding/upgrading GCC for an existing LFS system instead
> of building a new LFS system, you should follow the BLFS GCC page
> (maybe
> with some languages removed from --enable-languages= if you don't need
> them).
>
>> The problem comes when I have glibc 2.41 installed and I try to
>> recompile gcc, it gives the following error.
>> I have tried gcc in both the latest release and the latest snapshot,
>> with the same result. Has this happened to anyone else? Any ideas?
>
> Can you tell exactly what you've done? At least, what's your previous
> glibc and gcc versions? How did you configure the old GCC (i.e. the
> output of "gcc -v")? How did you configure the new GCC?
Hi,
It is not really an LFS, it is a distribution, although I always have
the LFS project as a reference. Currently the configurations of gcc
14.2.0 and glibc 2.40 are these, if you need any more information just
tell me. As on previous occasions, I am updating and rebuilding the
toolchain following this order:
linux-api-headers, glibc, binutils, gcc, glibc, binutils, gcc...
As I mentioned, I have also tried to recompile gcc with the current
version of glibc 2.40 and then rebuild again with the batch of glibc
2.41 and gcc 14.2.0, I have also tried with the latest snapshot, with
the same result. I never had a problem, except with this update.
----------------
glibc 2.40:
--prefix=/usr \
--libexecdir=/usr/lib \
--with-headers=/usr/include \
--disable-nscd \
--disable-profile \
--disable-werror \
--enable-bind-now \
--enable-kernel=4.14 \
--enable-stack-protector=strong \
--enable-multi-arch \
libc_cv_slibdir=/lib \
libc_cv_include_x86_isa_level=no"
GCC 14.2.0:
../configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--disable-bootstrap \
--disable-libmpx \
--disable-libssp \
--disable-libstdcxx-pch \
--disable-nls \
--disable-werror \
--enable-__cxa_atexit \
--enable-clocale=gnu \
--enable-default-pie \
--enable-default-ssp \
--enable-languages=c,c++,objc,obj-c++,lto \
--enable-lto \
--enable-plugin \
--enable-shared \
--enable-multilib \
--enable-threads=posix \
--with-pkgversion="Venom Linux $version-$release" \
--with-system-zlib \
--with-x=no \
--without-zstd
----------------
As I mentioned before, configuring gcc and glibc following the lfs, I
get the same error. I tried to first recompile GCC with the LFS
configuration and then do the steps again for the complete toolchain,
that is, linux-api-headers, glibc, binutils, gcc, and again GCC gives
the same error. I hope I explained it well. Thank you.
--
http://lists.linuxfromscratch.org/sympa/info/lfs-support
Unsubscribe: See the above information page