Closed huahuayu closed 3 years ago
@huahuayu take a look on installation guide. Basically, you can use makefile
to build geth source code
https://github.com/ethereum/go-ethereum/wiki/Installation-Instructions-for-Mac
@hadv What I am doing is not to build geth source code, I am developing service interactive smart contract with go, when build the project, the same issue as build ethereum-go project, so raise an issue here
dear @karalabe @rjl493456442 , could you please help to check
@fjl hi, thank you for help to look the issue, can you reproduce? If you need any additional info, please let me know. This issue drive me crazy, currently, my workaround is to develop inside a Ubuntu VM.
@huahuayu FYI: I have no error when building go-ethereum v1.9.24 with below env
@hadv thx, i am installing macos 11 now, 10 mins left I think, I will check
I upgrade to macos 11, the issue is still there @hadv
$ go build ./...
# gopkg.in/olebedev/go-duktape.v3
In file included from _cgo_export.c:4:
debugger.go:23:13: warning: unused function '_duk_debugger_attach' [-Wunused-function]
# github.com/rjeczalik/notify
../go/pkg/mod/github.com/rjeczalik/notify@v0.9.1/watcher_fsevents_cgo.go:10:10: fatal error: 'CoreServices/CoreServices.h' file not found
#include <CoreServices/CoreServices.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../go/pkg/mod/github.com/rjeczalik/notify@v0.9.1/watcher_fsevents_cgo.go:10:10: note: did not find header 'CoreServices.h' in framework 'CoreServices' (loaded from '/System/Library/Frameworks')
1 error generated.
@huahuayu try to run sudo xcode-select --reset
then rebuild
hi, @hadv it's no use
I'm having the same issue and I'm unable to install abigen. MacOS version is Catalina 10.15.7. Is there any workaround or maybe other way to install abigen?
@nklipa13 You can download geth and tools from our download page: https://geth.ethereum.org/downloads/
@nklipa13 the message in your screenshot is just a warning
@nklipa13 You can download geth and tools from our download page: https://geth.ethereum.org/downloads/
but what I need is to debug and compile in code, not the binary
I am experiencing the same problem as @huahuayu on Mac OS Catalina:
In file included from _cgo_export.c:4:
debugger.go:23:13: warning: unused function '_duk_debugger_attach' [-Wunused-function]
@mr-ma That's a warning, not an error
Dear all, I had enough of the cgo problem, I reinstall my macOS(11.2.3), and my first thing to do is to verify the go installation and go-ethereum compile. And it works, but I don't know why.
Try not to use your previews go env setting, delete them all. If it doesn't work, reinstall mac system can save you.
Thanks for the update! Good to hear it is finally resolved for you now!
I have upgrade my system to Big Sur 11.4, and I found the errors:
$ make geth env GO111MODULE=on go run build/ci.go install ./cmd/geth
ld: library not found for -lpthread clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [geth] Error 2
@zhangwenhua-tron please try running sudo xcode-select --install
to install the Xcode command-line tools.
any news?
System information
I got a new mac three days ago, Macbook pro 2020
OSX 10.15.6
I install brew, which I see the log, it will install xcode
And then I install xcode from appstore as well, open it, accept the terms and install more packages.
Expected behaviour
I expected:
go build
will successActual behaviour
go build failed as below
Things I have done
xcode-select --install
is uselessI have searched the issues, some similar issue is as below, without lucky
https://github.com/ethereum/go-ethereum/issues/17940
https://github.com/fsnotify/fsevents/issues/45
https://github.com/rjeczalik/notify/issues/165
I googled
I know the missing headers file location in mac
I use find cmd to search the disk
find /Library/Developer -name CoreServices.h
, so I know theCoreServices.h
is at/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Headers
then I symbolic linked them to
/usr/local/include/
, but no useIf anyone can help?
Related issue
Besides CoreServices/CoreServices.h, Also, there's another header file issue from the log