I am trying to build the snapd snap. It is based on 2.49.1 but has been changed to use Go modules, 1.16 and a few other miscellaneous things to get there.
Building the binaries snap, snapd, etc. are working fine. It’s just the debian package inside the snapcraft build that is failing.
Is there anything definitive in here that’s helpful? Thanks!
# ensure we generated a static build # ensure snap-seccomp is build with a static libseccomp on Ubuntu sed -i "s|#cgo LDFLAGS:|#cgo LDFLAGS: /usr/lib/x86_64-linux-gnu/libseccomp.a|" _build/src/github.com/snapcore/snapd/cmd/snap-seccomp/main.go (cd _build/bin && GOPATH=$(pwd)/.. GOCACHE=/tmp/go-build CGO_LDFLAGS_ALLOW="/.*/libseccomp.a" go build github.com/snapcore/snapd/cmd/snap-seccomp) # ensure that libseccomp is not dynamically linked ldd _build/bin/snap-seccomp linux-vdso.so.1 => (0x00007ffccb55a000) libseccomp.so.2 => /lib/x86_64-linux-gnu/libseccomp.so.2 (0x00007f540f612000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f540f3f5000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f540f02b000) /lib64/ld-linux-x86-64.so.2 (0x00007f540f85e000) test "$(ldd _build/bin/snap-seccomp | grep libseccomp)" = "" debian/rules:166: recipe for target 'override_dh_auto_build' failed make: *** [override_dh_auto_build] Error 1 make: Leaving directory '/root/parts/snapd-deb/build' debian/rules:109: recipe for target 'build' failed make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2