Skip to content

runtime/race: support cross compilation #7552

@dvyukov

Description

@dvyukov
Currently race cross compilation fails:

$ uname -a
Darwin .... 11.4.2 Darwin Kernel Version 11.4.2: Fri Sep  6 15:20:13 PDT 2013;
root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64

$ GOOS=linux go build

$ GOOS=linux go build -race
# github.com/highwire/hwcrawl/cmd/hwcrawl
runtime.raceinit: undefined: runtime/race.Initialize
dl_iterate_phdr(0): not defined
pthread_attr_setstacksize(0): not defined


It depends on cgo cross compilation:
https://golang.org/issue/4714

When that is fixed, we need to test that race cross builds work as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions