Re: building linux from scratch for the raspberry pi model 5b 8 gig version

"Pocket" ([email protected] via lfs-support Mailing List) <[email protected]> Fri, 16 May 2025 17:43:10 -0400
Newsgroups gmane.linux.lfs.support
Message-ID <[email protected]>

On 5/16/25 5:16 PM, William Harrington ([email protected] via 
lfs-support Mailing List) wrote:
> On Fri, 16 May 2025 17:09:30 -0400
> "Pocket" ([email protected] via lfs-support Mailing List) <[email protected]> wrote:
> 
>>
>>
>> On 5/16/25 4:36 PM, William Harrington ([email protected] via
>> lfs-support Mailing List) wrote:
>>> On Fri, 16 May 2025 09:45:39 +0200
>>> "Pierre Labastie" ([email protected] via lfs-support Mailing List) <[email protected]> wrote:
>>>
>>>> Le jeudi 15 mai 2025 à 21:12 -0500, Nick Gawronski a écrit :
>>>>>
>>>>> On 5/15/2025 5:46 PM, Pocket ([email protected] via lfs-support
>>>>> Mailing List) wrote:
>>>>>>
>>>>>>
>>>>>> On 5/15/25 2:54 PM, Nick Gawronski ([email protected] via
>>>>>> lfs-support Mailing List) wrote:
>>>>>>> Hi, I was just wondering if anyone has built linux from scratch
>>>>>>> on
>>>>>>> the raspberry pi model 5b computer as I have the 8 gig of ram
>>>>>>> version
>>>>>>> and was wondering if I could natively build this on there? Yes I
>>>>>>> can
>>>>>>> build it on the x64 system I have or a virtual private server but
>>>>>>> was
>>>>>>> just wondering if doing this on a smaller system would get me any
>>>>>>> advantages other then not having everything else that the other
>>>>>>> systems come with? Nick Gawronski
>>>>>>>
>>>>>>
>>>>>> I have built it and rpm since RPI3 (natively  RPI 3), I now use
>>>>>> Archlinuxarm.  I still have all my rpm spec files as well as the
>>>>>> binaries built on a RPI 4.
>>>>>>
>>>>>> I am currently using a RPI 5 16GB as my main desktop machine.
>>>>>> I have no AMD64/Intel machines.
>>>>>>
>>>>>>
>>>>>>
>>>>>> When you build the first part of the book as it is not on a x64
>>>>>> system
>>>>>> what should I use for the cross builds of gcc and binutils for the
>>>>>> target name then?  Nick Gawronski
>>>>>>
>>>>
>>>> One of the editors of the lfs/blfs books maintains a fork of the book
>>>> for arm:
>>>> https://www.linuxfromscratch.org/~xry111/lfs/view/arm64-systemd/
>>>>
>>>> There is nothing as official for blfs, but several lfs-ers build it,
>>>> and I think you can get support on the mailing lists when you encounter
>>>> a problem.
>>>>
>>>> Pierre
>>>
>>> Greetings Nick,
>>>
>>> I'm doing a current LFS/BLFS systemd build with the Rpi 5 16GB.
>>>
>>> Yes, building natively is no problem. With 8GB, you should be fine and not use much swap. I'm using the official raspberry pi power supply and haven't had any undervolt issues when building with all cores.
>>>
>>> Main issues to make note for aarch64,
>>>
>>> Make sure to apply this patch for GCC, otherwise you will run into issues in BLFS with libaom and maybe some other packages.
>>>
>>> https://www.reddit.com/r/linuxfromscratch/comments/1h2ug7j/lfs_on_aarch64_gcc_patch_needed/
>>>
>>> Sincerely,
>>>
>>> William Harrington
>>>
>>>
>>
>> Building version 11.x I have not needed to patch gcc as recommended by
>> others.
>>
>> Is this for 12.x?
>>
>> -- 
>> Hindi madali ang maging ako
>>
> 
> Greetings,
> 
> This is for GCC 14.2
> 
> Sincerely,
> 
> William Harrington
> 
> 

Well Well, I am on gcc-15, I wonder if it will be an issue.
I am draging out my rpm SPEC files and maybe I will try build 12.3?
I was gonna convert to using Archlinux pacman but it needs a few extra 
packages for package signing which I don't need.  I suppose I could drag 
out my version of pacman-static.

gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-unknown-linux-gnu/15.1.1/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with: /build/gcc/src/gcc/configure 
--enable-languages=c,c++,d,fortran,go,lto,m2,objc,obj-c++,rust,cobol 
--enable-bootstrap --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib 
--mandir=/usr/share/man --infodir=/usr/share/info 
--with-bugurl=https://github.com/archlinuxarm/PKGBUILDs/issues 
--with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit 
--enable-checking=release --enable-clocale=gnu --enable-default-pie 
--enable-default-ssp --enable-gnu-indirect-function 
--enable-gnu-unique-object --enable-libstdcxx-backtrace 
--enable-linker-build-id --enable-lto --enable-plugin --enable-shared 
--enable-threads=posix --disable-libssp --disable-libstdcxx-pch 
--disable-multilib --disable-werror --host=aarch64-unknown-linux-gnu 
--build=aarch64-unknown-linux-gnu --with-arch=armv8-a 
--enable-fix-cortex-a53-835769 --enable-fix-cortex-a53-843419
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.1.1 20250425 (GCC)

-- 
Hindi madali ang maging ako

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-support
Unsubscribe: See the above information page