Re: Interesting error while building gcc pass 1

Pocket ([email protected] via lfs-support Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.support
Message-ID <[email protected]>

On 8/11/26 13:55, Bruce Dubbs ([email protected] via lfs-support 
Mailing List) wrote:
> On 8/11/26 12:44 PM, Pocket ([email protected] via lfs-support 
> Mailing List) wrote:
>> Linux From Scratch - Version r13.0-systemd
>> 5.3. GCC-15.2.0 - Pass 1
> 
> [snip]
> 
>> This is on a system that currently has gcc (GCC) 16.1.1 20260430.
>> Is this because of trying to build gcc-15 on a system that has gcc-16?
>>
>>  From the duck:
>> Libcody is a C++11 library implementing a communication protocol 
>> between compilers and build systems, used notably for GCC LTO 
>> jobserver integration with GNU Make.
> 
> This is a problem we've seen before. You might want to manually add 
> gcc-6.2.0 from the development book.
> 
>    -- Bruce
> 

I used systemd-nspawn a debian trixie image that had gcc-14 on it then 
ran the build procedure for gcc pass 1 and it successfully built.

I does appear that those errors are related to a newer version of gcc 
trying to build an older version. So the information that the duck had 
seems to be correct.

I found on the duck that if you have autoconf-2.69 you can do an 
autoreconf -fi before the configure statement and it should work.
I have not tested that as I don't have autoconf 2.69 availiable to me.

I am going to build all of chapter 5 in the nspawn container then I will 
switch back to the "standard way" and continue with chapter 6.  That 
should work as it should then be using gcc-15 at that point.

I am building in btrfs subvolumes and it gives me some advantages over 
building as stated in the book. At the completion of building a version 
of LFS I just rsync the btrfs subvolume to a USB drive, patch up the 
bootloader and fstab and then boot to check it out.


I decided to build version-13 so I had a stable point from which to 
build the development versions.


-- 
Hindi madali ang maging ako

-- 
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.