From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] systemd 245 build issues with the old codesourcery ARM 2014.05 toolchain
Date: Sat, 4 Apr 2020 19:53:05 +0200 [thread overview]
Message-ID: <20200404175305.GG22325@scaer> (raw)
In-Reply-To: <dc50e1db-aead-b8f5-cfd8-6645e433429f@smile.fr>
Romain, All,
On 2020-04-04 19:43 +0200, Romain Naour spake thusly:
> Since the last systemd bump to version 245, all our systemd based tests are
> failing to build:
[--SNIP--]
> This is due to the following build issue:
> ../src/shared/gpt.c:7:9: error: initializer element is not constant
> { GPT_ROOT_X86, "root-x86" },
[--SNIP--]
> While searching for "error: initializer element is not constant" message, I
> noticed a note about gcc 5 change about "Initializing statics with compound
> literals":
>
> https://gcc.gnu.org/gcc-5/porting_to.html
>
> I'm not sure it's worth the effort to patch and try to upstream a patch to
> systemd for the sake of building systemd with such old compiler (gcc < 5.0).
What about this patch:
diff --git a/package/systemd/Config.in b/package/systemd/Config.in
index bd638477a0..1280d82902 100644
--- a/package/systemd/Config.in
+++ b/package/systemd/Config.in
@@ -19,6 +19,7 @@ menuconfig BR2_PACKAGE_SYSTEMD
depends on !BR2_STATIC_LIBS # kmod
depends on BR2_TOOLCHAIN_HAS_THREADS # dbus
depends on BR2_USE_MMU # dbus
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
select BR2_PACKAGE_HAS_UDEV
select BR2_PACKAGE_DBUS # runtime dependency only
select BR2_PACKAGE_LIBCAP
diff --git a/system/Config.in b/system/Config.in
index c8c5be40e0..8c1d47f13f 100644
--- a/system/Config.in
+++ b/system/Config.in
@@ -121,6 +121,7 @@ config BR2_INIT_SYSTEMD
depends on BR2_USE_MMU
depends on !BR2_STATIC_LIBS
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
select BR2_ROOTFS_MERGED_USR
select BR2_PACKAGE_SYSTEMD
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| 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. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2020-04-04 17:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-04 17:43 [Buildroot] systemd 245 build issues with the old codesourcery ARM 2014.05 toolchain Romain Naour
2020-04-04 17:53 ` Yann E. MORIN [this message]
2020-04-04 19:19 ` Romain Naour
2020-04-05 7:06 ` Yann E. MORIN
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=20200404175305.GG22325@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox