tonistiigi / xx

Dockerfile cross-compilation helpers
MIT License
380 stars 31 forks source link

ci: os update #133

Closed crazy-max closed 8 months ago

crazy-max commented 9 months ago

Linker issue with Ubuntu 24.04: https://github.com/tonistiigi/xx/actions/runs/7289833591/job/19865313633#step:5:1259

#81 455.4 #   /usr/lib/go-1.21/pkg/tool/linux_amd64/link -o $WORK/b001/exe/a.out -importcfg $WORK/b001/importcfg.link -buildmode=exe -buildid=IGuRvBhAU54HTMlye0Xd/8xiVMZZniOnwxuvRzyaU/0wGn0ncdtLbr0aZyGuS5/IGuRvBhAU54HTMlye0Xd -extld=aarch64-linux-gnu-clang $WORK/b001/_pkg_.a
#81 455.4 #   # command-line-arguments
#81 455.4 #   /usr/lib/go-1.21/pkg/tool/linux_amd64/link: running aarch64-linux-gnu-clang failed: exit status 1
#81 455.4 #   /usr/bin/ld: unrecognised emulation mode: aarch64linux
#81 455.4 #   Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu i386pep i386pe
#81 455.4 #   aarch64-linux-gnu-clang: error: linker command failed with exit code 1 (use -v to see invocation)

Same with debian sid: https://github.com/tonistiigi/xx/actions/runs/7289833591/job/19865312556#step:5:998

#83 416.0 #   TERM='dumb' aarch64-linux-gnu-clang -I /usr/lib/go-1.21/src/runtime/cgo -fPIC -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=$WORK/b003=/tmp/go-build -gno-record-gcc-switches -o $WORK/b003/_cgo_.o $WORK/b003/_cgo_main.o $WORK/b003/_x001.o $WORK/b003/_x002.o $WORK/b003/_x003.o $WORK/b003/_x004.o $WORK/b003/_x005.o $WORK/b003/_x006.o $WORK/b003/_x007.o $WORK/b003/_x008.o $WORK/b003/_x009.o $WORK/b003/_x010.o $WORK/b003/_x011.o $WORK/b003/_x012.o $WORK/b003/_x013.o $WORK/b003/_x014.o -O2 -g -lpthread
#83 416.0 #   # runtime/cgo
#83 416.0 #   /usr/bin/ld: unrecognised emulation mode: aarch64linux
#83 416.0 #   Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu i386pep i386pe
#83 416.0 #   clang: error: linker command failed with exit code 1 (use -v to see invocation)

Might be related to GCC 13

tonistiigi commented 9 months ago

To unblock this we need to see -v and if this is coming from lld or binutils.