All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Sune Brian <briansune@gmail.com>
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	"Yuslaimi, Alif Zakuan" <alif.zakuan.yuslaimi@altera.com>,
	Marek Vasut <marek.vasut@mailbox.org>,
	u-boot@lists.denx.de,
	Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>,
	Tien Fong Chee <tien.fong.chee@altera.com>,
	Peng Fan <peng.fan@nxp.com>,
	Jaehoon Chung <jh80.chung@samsung.com>,
	Jan Kiszka <jan.kiszka@siemens.com>,
	Tien Fong Chee <tien.fong.chee@intel.com>
Subject: Re: [PATCH v1 2/8] arm: Fix "file truncated" linker errors from empty built-in.a in SPL/TPL/VPL builds
Date: Mon, 1 Dec 2025 12:38:37 -0600	[thread overview]
Message-ID: <20251201183837.GR303283@bill-the-cat> (raw)
In-Reply-To: <CAN7C2SB6SbdFgBh9FaM0EWCO-WYNgfmNjYZE+_nMp40WQfz0pw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 6118 bytes --]

On Tue, Dec 02, 2025 at 02:37:42AM +0800, Sune Brian wrote:
> Tom Rini <trini@konsulko.com> 於 2025年12月2日週二 上午2:27寫道:
> >
> > On Tue, Dec 02, 2025 at 01:59:53AM +0800, Sune Brian wrote:
> > > Tom Rini <trini@konsulko.com> 於 2025年12月2日週二 上午1:09寫道:
> > >
> > > >
> > > > On Tue, Dec 02, 2025 at 01:07:00AM +0800, Sune Brian wrote:
> > > > > Tom Rini <trini@konsulko.com> 於 2025年12月2日週二 上午12:54寫道:
> > > > > >
> > > > > > On Tue, Dec 02, 2025 at 12:52:06AM +0800, Sune Brian wrote:
> > > > > > > Tom Rini <trini@konsulko.com> 於 2025年12月2日週二 上午12:44寫道:
> > > > > > > >
> > > > > > > > On Sat, Nov 29, 2025 at 08:46:14AM +0800, Sune Brian wrote:
> > > > > > > > > Tom Rini <trini@konsulko.com> 於 2025年11月29日週六 上午12:50寫道:
> > > > > > > > > >
> > > > > > > > > > On Fri, Nov 28, 2025 at 06:44:12PM +0200, Ilias Apalodimas wrote:
> > > > > > > > > > > On Fri, 28 Nov 2025 at 17:31, Tom Rini <trini@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).
> > > > > > > > >
> > > > > > > > > Hi Tom,
> > > > > > > > >
> > > > > > > > > Actually I am not sure u-boot itself have minimum requirement on each tag
> > > > > > > > > or branch listed?
> > > > > > > >
> > > > > > > > We do not currently have a test for anything other than "newer than
> > > > > > > > gcc-6" for ARM, but should have the same minimum requirements as the
> > > > > > > > linux kernel, but are lacking enforcement checks (but I also think the
> > > > > > > > kernel is?).
> > > > > > > >
> > > > > > > > --
> > > > > > > > Tom
> > > > > > >
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > Oops, missing the kernel version. Add it back for better debug.
> > > > > >
> > > > > > Sorry, what I meant was that it's a kbuild related issue as to what
> > > > > > version of gcc can be used. We don't have a check, and should, but also
> > > > > > the versions in question here should be expected to work. There's just
> > > > > > some change we're missing.
> > > > > >
> > > > > > --
> > > > > > Tom
> > > > >
> > > > > So long story short this patch itself should not introduce from beginning.
> > > > > It is a GCC version depended issue.
> > > > > But how to pin-point down to which version is a bit hard.
> > > > > Distro link with GCC version and not all gcc version can easily checked.
> > > > >
> > > > > Any idea how to easily check this?
> > > >
> > > > We can use the check we have today in arch/arm/config.mk under
> > > > "checkgcc6" to check for something much newer. But! It's a problem of a
> > > > missing kbuild change I think, based on when this problem was first
> > > > reported.
> > > >
> > > > --
> > > > Tom
> > >
> > > Tom,
> > >
> > > For GCC version sub-version do not matters?
> > > For example 6.x.x 7.x.x 8.x.x
> > > Or 9.3 9.4 etc also matters?
> > > So to determine the supported version it just need to pin-point to
> > > the major GCC version?
> > > Then the possible version break only <=10 or <10?
> > > Based on the previous build success case.
> > > 9.2.0 fails 11.4.0 passed.
> >
> > Looking through logs now, I see the kernel says 8.1 or newer:
> > https://www.kernel.org/doc/html/latest/process/changes.html which is why
> > I have been saying there's an underlying kbuild problem (missing
> > change(s)) that needs to be resolved. I don't know if 10.x works or
> > fails, but that's still beside the point to me as 9.2.0 should work.
> >
> > --
> > Tom
> 
> Do this apply to arm-linux-gnueabihf-gcc ?
> Or the 8.1 is apply to base gcc not cross-compile?
> Just want to confirm.

Yes, it's gcc 8.1 regardless of if it's a cross compiler or not.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2025-12-01 18:38 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-25  8:13 [PATCH v1 0/8]SoCFPGA: Update Boot Support for CycloneV in U-Boot alif.zakuan.yuslaimi
2025-11-25  8:13 ` [PATCH v1 1/8] configs: cyclone5: Disable mkeficapsule tool build alif.zakuan.yuslaimi
2025-12-01  3:06   ` Chee, Tien Fong
2025-11-25  8:13 ` [PATCH v1 2/8] arm: Fix "file truncated" linker errors from empty built-in.a in SPL/TPL/VPL builds alif.zakuan.yuslaimi
2025-11-25 12:23   ` Marek Vasut
2025-11-27  2:12     ` Yuslaimi, Alif Zakuan
2025-11-27 15:09       ` Marek Vasut
2025-11-28  2:11         ` Yuslaimi, Alif Zakuan
2025-11-28 15:31           ` Tom Rini
2025-11-28 16:20             ` Sune Brian
2025-11-28 16:44             ` Ilias Apalodimas
2025-11-28 16:49               ` Tom Rini
2025-11-29  0:46                 ` Sune Brian
2025-12-01 16:44                   ` Tom Rini
2025-12-01 16:52                     ` Sune Brian
2025-12-01 16:54                       ` Tom Rini
2025-12-01 17:07                         ` Sune Brian
2025-12-01 17:09                           ` Tom Rini
2025-12-01 17:59                             ` Sune Brian
2025-12-01 18:27                               ` Tom Rini
2025-12-01 18:37                                 ` Sune Brian
2025-12-01 18:38                                   ` Tom Rini [this message]
2025-12-01 18:48                                     ` Sune Brian
2025-12-01 19:10                                     ` Sune Brian
2025-12-02  7:55                 ` Ilias Apalodimas
2025-12-02  8:02                   ` Sune Brian
2025-12-02  8:53                     ` Ilias Apalodimas
2025-12-02  8:59                       ` Sune Brian
2025-12-03  6:46                         ` Yuslaimi, Alif Zakuan
2025-12-03  6:54                           ` Sune Brian
2025-11-25  8:13 ` [PATCH v1 3/8] configs: cyclone5: Enable random MAC address alif.zakuan.yuslaimi
2025-11-25 12:23   ` Marek Vasut
2025-11-27  2:14     ` Yuslaimi, Alif Zakuan
2025-11-25  8:13 ` [PATCH v1 4/8] mmc: socfpga_dw_mmc: Restore legacy clkmgr address retrieval alif.zakuan.yuslaimi
2025-11-25 12:24   ` Marek Vasut
2025-11-27  2:21     ` Yuslaimi, Alif Zakuan
2025-12-01  3:07   ` Chee, Tien Fong
2025-11-25  8:13 ` [PATCH v1 5/8] spl: Remove ARCH_SOCFPGA from MMC raw mode enablement alif.zakuan.yuslaimi
2025-12-01  3:08   ` Chee, Tien Fong
2025-11-25  8:13 ` [PATCH v1 6/8] configs: cyclone5: Enable SPL FAT support alif.zakuan.yuslaimi
2025-11-25  9:41   ` Jan Kiszka
2025-11-25  9:44     ` Jan Kiszka
2025-11-27  4:34       ` Chee, Tien Fong
2025-11-27  4:32     ` Chee, Tien Fong
2025-11-27  6:37       ` Jan Kiszka
2025-11-27  6:48         ` Sune Brian
2025-11-27  7:05           ` Jan Kiszka
2025-11-27  7:20             ` Sune Brian
2025-11-27  7:29               ` Jan Kiszka
2025-11-27  7:39                 ` Sune Brian
2025-11-27  7:50                   ` Jan Kiszka
2025-11-27  7:56                     ` Sune Brian
2025-11-27  8:22                       ` Jan Kiszka
2025-11-27  9:42                         ` Sune Brian
2025-11-27 17:42                           ` Jan Kiszka
2025-11-27 17:48                             ` Sune Brian
2025-12-01  3:08   ` Chee, Tien Fong
2025-11-25  8:13 ` [PATCH v1 7/8] configs: cyclone5: Update boot command for CycloneV alif.zakuan.yuslaimi
2025-12-01  3:10   ` Chee, Tien Fong
2025-11-25  8:13 ` [PATCH v1 8/8] configs: cyclone5: Disable SPI in SPL alif.zakuan.yuslaimi
2025-12-01  3:10   ` Chee, Tien Fong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251201183837.GR303283@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=alif.zakuan.yuslaimi@altera.com \
    --cc=briansune@gmail.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=jan.kiszka@siemens.com \
    --cc=jh80.chung@samsung.com \
    --cc=marek.vasut@mailbox.org \
    --cc=peng.fan@nxp.com \
    --cc=simon.k.r.goldschmidt@gmail.com \
    --cc=tien.fong.chee@altera.com \
    --cc=tien.fong.chee@intel.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.