diff mbox series

[1/1] configs/acmesystems_acqua_a5_*: bump at91bootstrap3 version

Message ID 6c91caa7-cd14-38e0-2c0c-f84a534b62a8@grenoble.cnrs.fr
State Accepted
Headers show
Series [1/1] configs/acmesystems_acqua_a5_*: bump at91bootstrap3 version | expand

Commit Message

Edgar Bonet Aug. 6, 2021, 1:14 p.m. UTC
AT91Bootstrap 3.10.2 has a bug in its Makefile:[1] it gives the
-nostartfiles flag to the ld command, although this is a gcc flag, not
an ld flag. The bug happens to be harmless when using binutils 2.35.
However, the ld shipped with binutils 2.36 is more strict in its option
parsing, and fails with the following error:

    .../output/host/bin/arm-buildroot-linux-uclibcgnueabihf-ld:
    Error: unable to disambiguate: -nostartfiles
    (did you mean --nostartfiles ?)

The bug was fixed upstream in commit 3207586a.[2] However, since there
has been no tagged 3.x release since then, we just upgrade to the
current head of the branch at91bootstrap-3.x.

[1] https://github.com/linux4sam/at91bootstrap/issues/127
[2] https://github.com/linux4sam/at91bootstrap/commit/3207586a79aba527bbf20560930089b800f191ac

Signed-off-by: Edgar Bonet <bonet@grenoble.cnrs.fr>
---
 configs/acmesystems_acqua_a5_256mb_defconfig | 2 +-
 configs/acmesystems_acqua_a5_512mb_defconfig | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Note: I only updated the defconfigs matching the board I have. I seems,
however, that many defconfigs use a version of AT91Bootstrap affected by
this bug (it is there since the upstream's initial commit), and none of
these defconfigs requests a version of binutils older than 2.36.

Comments

Edgar Bonet Aug. 6, 2021, 9:56 p.m. UTC | #1
Hello!

About bug #127 of AT91Bootstrap,[1] which is revealed by binutils 2.36,
I wrote:
> I seems, however, that many defconfigs use a version of AT91Bootstrap
> affected by this bug (it is there since the upstream's initial
> commit), and none of these defconfigs requests a version of binutils
> older than 2.36.

There are 32 defconfigs using AT91Bootstrap. I just randomly sampled a
few of them:

- acmesystems_aria_g25_256mb_defconfig
- at91sam9x5ek_defconfig
- atmel_sama5d3_xplained_defconfig
- microchip_sama5d2_icp_mmc_defconfig

They all fail with the same error:

    .../output/host/bin/arm-buildroot-linux-XXX-ld:
    Error: unable to disambiguate: -nostartfiles
    (did you mean --nostartfiles ?)

where XXX is either uclibcgnueabi or uclibcgnueabihf.

I wonder whether we should forcibly upgrade all these defconfigs to a
version of AT91Bootstrap free of this bug, or downgrade them to
binutils 2.35, or let the individual maintainers handle that.

Regards,

Edgar Bonet.

[1] https://github.com/linux4sam/at91bootstrap/issues/127
Thomas Petazzoni Aug. 7, 2021, 10:38 a.m. UTC | #2
On Fri, 6 Aug 2021 15:14:14 +0200
Edgar Bonet <bonet@grenoble.cnrs.fr> wrote:

> AT91Bootstrap 3.10.2 has a bug in its Makefile:[1] it gives the
> -nostartfiles flag to the ld command, although this is a gcc flag, not
> an ld flag. The bug happens to be harmless when using binutils 2.35.
> However, the ld shipped with binutils 2.36 is more strict in its option
> parsing, and fails with the following error:
> 
>     .../output/host/bin/arm-buildroot-linux-uclibcgnueabihf-ld:
>     Error: unable to disambiguate: -nostartfiles
>     (did you mean --nostartfiles ?)
> 
> The bug was fixed upstream in commit 3207586a.[2] However, since there
> has been no tagged 3.x release since then, we just upgrade to the
> current head of the branch at91bootstrap-3.x.
> 
> [1] https://github.com/linux4sam/at91bootstrap/issues/127
> [2] https://github.com/linux4sam/at91bootstrap/commit/3207586a79aba527bbf20560930089b800f191ac
> 
> Signed-off-by: Edgar Bonet <bonet@grenoble.cnrs.fr>
> ---
>  configs/acmesystems_acqua_a5_256mb_defconfig | 2 +-
>  configs/acmesystems_acqua_a5_512mb_defconfig | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

I have added references to the Gitlab CI failures in the commit log,
and applied. Thanks a lot!

Thomas
diff mbox series

Patch

diff --git a/configs/acmesystems_acqua_a5_256mb_defconfig b/configs/acmesystems_acqua_a5_256mb_defconfig
index 618ef0e756..00b99c0ad8 100644
--- a/configs/acmesystems_acqua_a5_256mb_defconfig
+++ b/configs/acmesystems_acqua_a5_256mb_defconfig
@@ -19,7 +19,7 @@  BR2_TARGET_ROOTFS_EXT2_4=y
 BR2_TARGET_AT91BOOTSTRAP3=y
 BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT=y
 BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/linux4sam/at91bootstrap.git"
-BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.10.2"
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="5232adb1c42636e1e9cf495a6abd1a8d66475f83"
 BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="acqua-256m"
 BR2_PACKAGE_HOST_DOSFSTOOLS=y
 BR2_PACKAGE_HOST_GENIMAGE=y
diff --git a/configs/acmesystems_acqua_a5_512mb_defconfig b/configs/acmesystems_acqua_a5_512mb_defconfig
index e9d74be7c8..f4af2501b8 100644
--- a/configs/acmesystems_acqua_a5_512mb_defconfig
+++ b/configs/acmesystems_acqua_a5_512mb_defconfig
@@ -19,7 +19,7 @@  BR2_TARGET_ROOTFS_EXT2_4=y
 BR2_TARGET_AT91BOOTSTRAP3=y
 BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT=y
 BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL="https://github.com/linux4sam/at91bootstrap.git"
-BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="v3.10.2"
+BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION="5232adb1c42636e1e9cf495a6abd1a8d66475f83"
 BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="acqua-512m"
 BR2_PACKAGE_HOST_DOSFSTOOLS=y
 BR2_PACKAGE_HOST_GENIMAGE=y