* [Buildroot] flannel riscv64 build failure
@ 2024-06-02 7:28 Geoff Levand
2024-06-02 9:42 ` Yann E. MORIN
0 siblings, 1 reply; 2+ messages in thread
From: Geoff Levand @ 2024-06-02 7:28 UTC (permalink / raw)
To: Thomas Petazzoni, buildroot
On 5/20/24 13:06, Thomas Petazzoni wrote:
> Hello,
>
> Autobuilder failures
> ====================
>
> Below is a list of build failures reported by the Buildroot autobuilders
> in relation to packages or CPU architectures you are in charge of.
> Please help us improving the quality of Buildroot by investigating those
> build failures and sending patches to fix them.
>
> Results for the 'master' branch
> -------------------------------
>
> Build failures related to your packages:
>
> arch | reason | url
> -------------+--------------------------------+---------------------------------------------------------------------------------
> riscv64 | flannel-0.25.1 | http://autobuild.buildroot.net/results/d2be77d8b9236db45c4f3a558f3198f199c0c568
Hi,
I posted about the riscv64 build failure to the flannel project, and one developer said
it might be due to buildroot setting CGO_ENABLED=1 for the riscv64 build.
The report is here:
https://github.com/flannel-io/flannel/issues/1988
I'm not sure if setting CGO_ENABLED=0 just for the flannel build will solve the problem,
nor do I how to do that. Any help will be appreciated.
-Geoff
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Buildroot] flannel riscv64 build failure
2024-06-02 7:28 [Buildroot] flannel riscv64 build failure Geoff Levand
@ 2024-06-02 9:42 ` Yann E. MORIN
0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2024-06-02 9:42 UTC (permalink / raw)
To: Geoff Levand; +Cc: Thomas Petazzoni, buildroot
Geoff, All,
On 2024-06-02 16:28 +0900, Geoff Levand spake thusly:
> On 5/20/24 13:06, Thomas Petazzoni wrote:
> > riscv64 | flannel-0.25.1 | http://autobuild.buildroot.net/results/d2be77d8b9236db45c4f3a558f3198f199c0c568
> I posted about the riscv64 build failure to the flannel project, and one developer said
> it might be due to buildroot setting CGO_ENABLED=1 for the riscv64 build.
> The report is here:
> https://github.com/flannel-io/flannel/issues/1988
>
> I'm not sure if setting CGO_ENABLED=0 just for the flannel build will solve the problem,
> nor do I how to do that. Any help will be appreciated.
You may want to test something along the lines of:
diff --git a/package/flannel/flannel.mk b/package/flannel/flannel.mk
index 317ad14ba3..4279c5bb99 100644
--- a/package/flannel/flannel.mk
+++ b/package/flannel/flannel.mk
@@ -12,6 +12,14 @@ FLANNEL_LICENSE_FILES = LICENSE
FLANNEL_LDFLAGS = -X github.com/flannel-io/flannel/version.Version=$(FLANNEL_VERSION)
+# Upstream only supports CGO on x86_64 (aka amd64):
+# https://github.com/flannel-io/flannel/issues/1988#issuecomment-2141483747
+# https://github.com/flannel-io/flannel/blob/v0.25.1/Makefile#L11
+# So force it disabled for anything but x86_64, where we keep the default
+ifeq ($(BR2_x86_64),)
+FLANNEL_GO_ENV += CGO_ENABLED=0
+endif
+
# Install flannel to its well known location.
define FLANNEL_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/bin/flannel $(TARGET_DIR)/opt/bin/flanneld
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. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-02 9:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-02 7:28 [Buildroot] flannel riscv64 build failure Geoff Levand
2024-06-02 9:42 ` Yann E. MORIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox