Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

riscv64 build failure #1988

Open
glevand opened this issue May 31, 2024 · 1 comment
Open

riscv64 build failure #1988

glevand opened this issue May 31, 2024 · 1 comment

Comments

@glevand
Copy link
Contributor

glevand commented May 31, 2024

Hi,

I maintain the flannel package in buildroot. One of the buildroot target
architectures is riscv64. The riscv64 flannel build has been failing lately.

riscv64 | flannel-0.25.1 | http://autobuild.buildroot.net/results/d2be77d8b9236db45c4f3a558f3198f199c0c568

That autobuild.buildroot.net link has the build log (build-end.log), and has this error and comment:

github.com/flannel-io/flannel
$WORK/b051/pkg.a(_x001.o): unknown relocation type 17; compiled without -fpic?
$WORK/b060/pkg.a(_x005.o): unknown relocation type 17; compiled without -fpic?
make: *** [package/pkg-generic.mk:283: /home/buildroot/instance-0/output-1/build/flannel-0.25.1/.stamp_built] Error 1
make: Leaving directory '/home/buildroot/instance-0/buildroot'

I don't have an riscv64 development setup to test with.
Is the.fix as simple as adding -fpic to the flannel makefile?

-Geoff

@thomasferrandiz
Copy link
Contributor

Hi,
I'm not familiar with this flag (-fpic) but I see in the log file you mentioned that you have CGO_ENABLED=1 while in our riscv64 build, CGO is disabled.
We only support enabling cgo for amd64 at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants