Skip to content

linux|uboot: fix build with host-gcc 10+ for older versions (branch yem/yylloc)

Yann E. MORIN buildroot 2 versions – Applied

Status from this message: Applied to master, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 6 repliesApplied
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- don't fail if no file to fix: use 'grep -Z |xargs -0 -r' (Arnout)
- extend cover-ltter with a pipeline reference and analysese of remaining build failures

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2boot/uboot: fix build with host-gcc 10+boot/uboot/uboot.mk+7 -02 replies
2/2linux: fix build with host-gcc 10+linux/linux.mk+7 -03 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchGiulio Benetti
1/2R-b T-b
2/2R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Buildroot] [PATCH 0/2 v2] linux|uboot: fix build with host-gcc 10+ for older versions (branch yem/yylloc)

Hello All!

This two-patch series aims at side-stepping the multiple symbol declaration in older Linux and U-Boot, where the infamous yylloc is defined more than once.

Like we have a fix for the perl timeconst issue in linux, do s similar tweak for yylloc in the two packages known to be affected, Linux and U-Boot.

Here is a pipeline with all the defconfig builds:

    https://gitlab.com/ymorin/buildroot/-/pipelines/460207930

There are still some failures, but none relate to the yylloc issue:

- too long build time or not space left on device (I am only using elastic runners)

- defconfig not up-to-date (e.g. using kernel headers version since removed)

- missing host dependencies for kernel (openssl, libelf) or uboot (python)

- another host-gcc 10+ symbol redefinition issue (galileo [0])

- make 4.3 issues. For example: amarula_a64_relic_defconfig
https://gitlab.com/ymorin/buildroot/-/jobs/2035820886

DTC arch/arm/dts/sun50i-a64-amarula-relic.dtb
Error: arch/arm/dts/.sun50i-a64-amarula-relic.dtb.pre.tmp:66.1-10 syntax error FATAL ERROR: Unable to parse input tree

This is caused by make 4.3 that no longer treats '#' as special in macros, and shall no longer be escaped:
https://lwn.net/Articles/810071/

This causes '\#include "something"' to be injected as-is at the end of the temporary DTS, and of course, dtc does not cope nicely with that... [1]

Unfortuantely, I don't think we can do a generic fixup for that one...

- some other issues (e.g. deprecated 'partition-type' for geniamge..)

[0] this was fixed in 2014 in the kernel:
- eeeda4cd06e828b331b15741a204ff9f5874d28d
[1] this was fixed in 2018 in uboot:
- e5e701c2b8470de044c5c71d2a54ecfc72680d59
- 0c544115379ed77c1843a194e26960e5b8f3d369

Changes v1 -> v2:
- don't fail if no file to fix: use 'grep -Z |xargs -0 -r' (Arnout)
- extend cover-ltter with a pipeline reference and analysese of remaining build failures

Regards,
Yann E. MORIN.

----------------------------------------------------------------
Yann E. MORIN (2):
boot/uboot: fix build with host-gcc 10+
linux: fix build with host-gcc 10+

 boot/uboot/uboot.mk | 7 +++++++
 linux/linux.mk      | 7 +++++++
 2 files changed, 14 insertions(+)
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot