Skip to content

cmd/link: TestFlagW fails on AIX platform #75618

@ayappanec

Description

@ayappanec
--- 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

Metadata

Metadata

Assignees

Labels

FixPendingIssues that have a fix which has not yet been reviewed or submitted.compiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions