Re: Problem rebuilding toolchain with glibc 2.41

"Xi Ruoyao" ([email protected] via lfs-support Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.support
Message-ID <[email protected]>
On Tue, 2025-02-04 at 08:45 +0100, lumaro wrote:
> 
> 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.

So it's not something we are likely able to help.  But let me make some
random guess...

The problem is __gthread_cond_t has somehow become "unsigned int"
instead of pthread_cond_t.  The typedef should be in
/usr/include/c++/14.2.0/x86_64-pc-linux-gnu/bits/gthr-default.h.  Can
you check it?

Also maybe a previous error has caused GCC fail to find pthread_cond_t
and guess it was an "unsigned int."  So if the error message isn't the
very first one you've got, find the very first error message and paste
it.

It's noticeable that your GCC configuration lacks "--disable-
fixincludes", and it's recently revealed you must remove the copy of
headers "fixed" (actually, on the contrary, I'd call it "broken") by GCC
if you've not disabled it and you've upgraded glibc (actually, any
package in general, see the "Caution"
in https://www.linuxfromscratch.org/blfs/view/10.0/general/gcc.html). 
Also see
https://lists.linuxfromscratch.org/sympa/arc/lfs-support/2025-02/msg00009.html
and
https://lists.linuxfromscratch.org/sympa/arc/lfs-book/2025-02/msg00031.html.

-- 
Xi Ruoyao <[email protected]>
School of Aerospace Science and Technology, Xidian University

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-support
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.