Closed ckoe closed 6 months ago
Could be that your system isn't capable of building cgo code?
Make sure you have build-essential
or similar installed on your system to have a C compiler and C library installed.
Yes, the packages were missing.
For other fools like me: If you use a fresh minimal install and get go directly from upstream without using apt install golang-go
-- do not forget to setup your development environment yourself, apt does not do the magic for you.
Yes, the packages were missing. For other fools like me: If you use a fresh minimal install and get go directly from upstream without using
apt install golang-go
-- do not forget to setup your development environment yourself, apt does not do the magic for you.
I'm having the same problem, am I missing something? What do you mean by missing personal development environment? (Forgive me for being a newbie and not knowing anything about GO)
Build process is running on a Allwinner BananaPi Pro (arm7i), native Debian bookworm (SMP Debian 6.1.67-1 (2023-12-12) armv7l GNU/Linux). I get following error when calling 'make' for distrobuilder-3.0:
Steps to reproduce: Installed go 1.21.5
Installed Debian packages:
# apt update && apt install -y debootstrap rsync gpg squashfs-tools git make
Downloaded and unpacked stable tarball for 3.0, called 'make' Build process runs for several minutes, fails only building github.com/lxc/distrobuilder/distrobuilder, with the error above.
I have also tried:
I have invoked
go install -x -v ./...
directly, to get more details on what is happening It seems that ./distrobuilder/main.go is not included in the executed complile commando line:Any hint? I am sadly no 'go' nerd, but I want to build my own armhf lxc debian images, since armhf support on lxc-ci was dropped.