Skip to content

cmd/ld: compilerrt_abort_impl not defined for misc/cgo/test on freebsd #8480

@minux

Description

@minux
CL 114420043 broke freebsd/amd64 builder with this error message:

ok   _/tmp/gobuilder/freebsd-amd64-b613f2acdf69/go/misc/cgo/test 1.538s
# testmain
_/tmp/gobuilder/freebsd-amd64-b613f2acdf69/go/misc/cgo/test(.text):
compilerrt_abort_impl: not defined
FAIL _/tmp/gobuilder/freebsd-amd64-b613f2acdf69/go/misc/cgo/test [build failed]
Build complete, duration 5m17.708335978s. Result: error: exit status 1

(log: http://build.golang.org/log/ae502c5cfde2c7b734feb986ccb344ff69e059ba)

That CL fixes a real bug that practically disables that "symbol not defined"
diagnosis, so there must be latent bug in cmd/ld.

According to https://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/builtins/int_util.c,
the symbol seems to be marked hidden, so that's probably the reason why cmd/ld
thinks it's undefined.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions