--- FAIL: TestFlagW (165.35s)
--- FAIL: TestFlagW/-s (23.48s)
dwarf_test.go:406: open /tmp/TestFlagW-s3245424948/001/a.exe: unrecognized object file
--- FAIL: TestFlagW/-s_-w=0 (35.34s)
dwarf_test.go:406: open /tmp/TestFlagW-s_-w=0960455334/001/a.exe: unrecognized object file
--- FAIL: TestFlagW/-w_-linkmode=external (24.44s)
dwarf_test.go:401: build failed: exit status 1
# command-line-arguments
/home/buildusr/jenkins/workspace/golang/go/pkg/tool/aix_ppc64/link: running gcc failed: exit status 1
/opt/freeware/bin/gcc -maix64 -Wl,-S -pthread -Wl,-bnoobjreorder -mcmodel=large -Wl,-bbigtoc -o $WORK/b001/exe/a.out -Wl,-bE:/tmp/go-link-2306739426/export_file.exp /tmp/go-link-2306739426/go.o /tmp/go-link-2306739426/000000.o /tmp/go-link-2306739426/000001.o /tmp/go-link-2306739426/000002.o /tmp/go-link-2306739426/000003.o /tmp/go-link-2306739426/000004.o /tmp/go-link-2306739426/000005.o /tmp/go-link-2306739426/000006.o /tmp/go-link-2306739426/000007.o /tmp/go-link-2306739426/000008.o /tmp/go-link-2306739426/000009.o /tmp/go-link-2306739426/000010.o -nostartfiles /lib/crt0_64.o /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/10/ppc64/crtcxa_64.o /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/10/ppc64/crtdbase_64.o -O2 -g -Wl,-berok -no-pie
ld: 0706-029 Use a number with the -S flag.
collect2: error: ld returned 255 exit status
--- FAIL: TestFlagW/-s_-linkmode=external (35.34s)
dwarf_test.go:406: open /tmp/TestFlagW-s_-linkmode=external3308389144/001/a.exe: unrecognized object file
FAIL
FAIL cmd/link 345.173s
Comment From: gabyhelp
Related Issues
- cmd/link: Unable to cross-compile darwin/amd64 PIE on Linux #35831 (closed)
- cmd/objdump: TestDisasm failures on `aix` #62532 (closed)
- cmd/go: TestScripts fail when glibc is included with FLAGS #50985 (closed)
- cmd/link: no dwarf when using -linkmode=external on Windows #13154 (closed)
- cmd/link: cannot cross compile a linux plugin on macOS #22462
- cmd/link: TestDWARF failing under all.bash on OSX 10.13.6 #30236
- cmd/link: TestRuntimeTypeAttr fails when gcc is unavailable #26621 (closed)
- cmd/link: Darwin build fails with "unknown load command" #25908 (closed)
- cmd/link: run test in -linkshared mode failed #26582 (closed)
Related Code Changes
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
Comment From: gopherbot
Change https://go.dev/cl/707095 mentions this issue: cmd/link: skip TestFlagW on AIX
Comment From: gopherbot
Change https://go.dev/cl/707097 mentions this issue: cmd/link: don't pass -Wl,-S on AIX
Comment From: JunyangShao
Thanks for filing the issue. Looks like @cherrymui is on it already.