Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple LLVM 8.1 breaks CGO? #19742

Closed
RXminuS opened this issue Mar 28, 2017 · 2 comments
Closed

Apple LLVM 8.1 breaks CGO? #19742

RXminuS opened this issue Mar 28, 2017 · 2 comments

Comments

@RXminuS
Copy link

RXminuS commented Mar 28, 2017

Still investigating but seems to be the following issue:

Today's apple update for LLVM 8.1 seems to break CGO. We were importing a C library and after the update it started to give a signal: killed error when importing the module and running the program. We've tried building for mac using xgo and that works fine. We're trying to roll-back the LLVM compiler and retry running but it's going to take some time.

Wanted to give an early heads-up and possibly get some help making this issue reproducible / validated.

(Note, system details below are from a machine before it breaks. Break seems to happen if you update from here to Apple LLVM 8.1)

System details

go version go1.8 darwin/amd64
GOARCH="amd64"
GOBIN="/Users/rik/go/bin/"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/rik/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/qg/jljvch4s63jf6m0wgtgtm7j40000gn/T/go-build945685700=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
GOROOT/bin/go version: go version go1.8 darwin/amd64
GOROOT/bin/go tool compile -V: compile version go1.8 X:framepointer
uname -v: Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64
ProductName:	Mac OS X
ProductVersion:	10.12.3
BuildVersion:	16D32
lldb --version: lldb-360.1.70
@RXminuS
Copy link
Author

RXminuS commented Mar 28, 2017

Possible duplicate of #19734

@ALTree
Copy link
Member

ALTree commented Mar 28, 2017

Likely a dup of #19741 and #19734, let's track this there so we can keep all information in a single thread.

@ALTree ALTree closed this as completed Mar 28, 2017
@golang golang locked and limited conversation to collaborators Mar 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants