Skip to content
This repository has been archived by the owner on Jun 1, 2020. It is now read-only.

[Bug]LLVM can't compile now #32

Closed
dannypsnl opened this issue Feb 12, 2018 · 5 comments
Closed

[Bug]LLVM can't compile now #32

dannypsnl opened this issue Feb 12, 2018 · 5 comments
Labels
priority/0 do it first

Comments

@dannypsnl
Copy link
Owner

dannypsnl commented Feb 12, 2018

If you think you meet a bug, here.

Problem you meet

Can't compile elz because the problem from dependency

Error Log

go build llvm.org/llvm/bindings/go/llvm: invalid flag in #cgo LDFLAGS: -Wl,-search_paths_first
@dannypsnl dannypsnl changed the title [Bug]LLVM can compile now [Bug]LLVM can't compile now Feb 12, 2018
@dannypsnl
Copy link
Owner Author

dannypsnl commented Feb 12, 2018

Golang 1.9.4 issue
#cgo issue

@dannypsnl
Copy link
Owner Author

dannypsnl commented Feb 13, 2018

golang cgo issue

@dannypsnl
Copy link
Owner Author

Waiting for solving~~~~~~

@dannypsnl
Copy link
Owner Author

If you see a compilation error while compiling your code with Go 1.9.4 or later as follows,

go build llvm.org/llvm/bindings/go/llvm: invalid flag in #cgo LDFLAGS: -Wl,-headerpad_max_install_names

you need to setup $CGO_LDFLAGS_ALLOW to allow a compiler to specify some linker options:

$ export CGO_LDFLAGS_ALLOW='-Wl,(-search_paths_first|-headerpad_max_install_names)'

Thanks, @rhysd

@dannypsnl dannypsnl removed priority/0 do it first kind/bug bug report labels Feb 14, 2018
@dannypsnl
Copy link
Owner Author

Put the warning at commit: 09328b3
So close

@dannypsnl dannypsnl added kind/bug bug report priority/0 do it first External Bug and removed kind/bug bug report labels Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority/0 do it first
Projects
None yet
Development

No branches or pull requests

1 participant