[PATCH v1 2/8] arm: Fix "file truncated" linker errors from empty built-in.a in SPL/TPL/VPL builds
Sune Brian
briansune at gmail.com
Tue Dec 2 09:02:52 CET 2025
Ilias Apalodimas <ilias.apalodimas at linaro.org> 於 2025年12月2日週二 下午3:56寫道:
>
> Hi Tom,
>
> On Fri, 28 Nov 2025 at 18:50, Tom Rini <trini at konsulko.com> wrote:
> >
> > On Fri, Nov 28, 2025 at 06:44:12PM +0200, Ilias Apalodimas wrote:
> > > On Fri, 28 Nov 2025 at 17:31, Tom Rini <trini at konsulko.com> wrote:
> > > >
> > > > On Fri, Nov 28, 2025 at 10:11:53AM +0800, Yuslaimi, Alif Zakuan wrote:
> > > > >
> > > > >
> > > > > On 27/11/2025 11:09 pm, Marek Vasut wrote:
> > > > > > [CAUTION: This email is from outside your organization. Unless you trust
> > > > > > the sender, do not click on links or open attachments as it may be a
> > > > > > fraudulent email attempting to steal your information and/or compromise
> > > > > > your computer.]
> > > > > >
> > > > > > On 11/27/25 3:12 AM, Yuslaimi, Alif Zakuan wrote:
> > > > > >
> > > > > > Hello everyone,
> > > > > >
> > > > > > > I already have the referenced commit in my test branch, and I can
> > > > > > > confirm that the same compilation error still appears on CycloneV when
> > > > > > > certain directories produce no SPL objects.
> > > > > > >
> > > > > > > The existing fix ensures that built-in.o is always present, but it does
> > > > > > > not prevent ar from generating empty built-in.a archives, which older
> > > > > > > ARM 32-bit linkers (such as CycloneV toolchains) reject as “file
> > > > > > > truncated”.
> > > > > >
> > > > > > Which toolchain is this ?
> > > > > >
> > > > >
> > > > > I am using Linaro arm-linux-gnueabihf GCC 7.5.0 to compile our SoC32 devices
> > > > > - CycloneV and Arria10
> > > >
> > > > Ilias, do you recall the solution to this problem from when it came up
> > > > on IRC a few weeks ago?
> > >
> > > Nop unfortunately not.
> > > Was this caused by the Kbuild bump? I remember the logic around
> > > builtin changing significantly.
> >
> > Yes, and I kinda thought we narrowed it down to something being missing
> > from the update, since the kernel does support this old of a toolchain
> > (or at least the 10.x? someone else this on).
>
> Ok, let me go through my irc logs in case I find it.
> Reading the email thread we should compile with anything > 8.1 right?
>
> Cheers
> /Ilias
> >
> > --
> > Tom
Hi llias and Tom,
I have a question might be wrong or not even exist.
Tom mentioned GCC 8.1 kbuild but u-boot is considered as
kernel build or it does not always be that case?
At least so fat there are nothing can build properly below 10.0.1
Using ARM official cross compile binaries.
Thanks,
Brian
More information about the U-Boot
mailing list