Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Compiling darwin/amd64: syscall_syscallX redeclared in this block #147

@onetwopunch

Description

@onetwopunch

It seems there may be an issue cross compiling from linux/amd64 to Mac (darwin/amd64).

Go version:

$ go version
go version go1.15 linux/amd64

Error:

$ gox -osarch="darwin/amd64" -output "build/{{.OS}}_{{.Arch}}/myapp" .
Number of parallel builds: 3

-->    darwin/amd64: github.com/onetwopunch/myapp

1 errors occurred:
--> darwin/amd64 error: exit status 2
Stderr: # runtime
/usr/local/go/src/runtime/sys_darwin_64.go:15:6: syscall_syscallX redeclared in this block
        previous declaration at /usr/local/go/src/runtime/sys_darwin.go:73:60
/usr/local/go/src/runtime/sys_darwin_64.go:21:6: syscallX redeclared in this block
        previous declaration at /usr/local/go/src/runtime/sys_darwin.go:79:6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions