-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Simple go program from the upstream repository fails to compile #25599
Comments
Sorry, the referenced issue ( golang/go#14669 ) is a red herring. I now realized that it's not related at all. The real problem is a mismatch between C compilers. The NixOS go package is built using clang, but I tried to use gcc while attempting to compile the small Go program. The problem goes away if I instead use clang. It seems that the helper |
Wow, thank you! With this knowledge I was able to build the newest go-etherium using older expression. I didn't run any tests yet, but still its a ./result :) Below is the full 1.6.1 expression, for reference:
|
Follow up issue regarding |
Issue description
A year ago an issue was filed for the Go compiler ( golang/go#14669 ) that showed that passing optimization flags to cgo would break it. This bug was fixed upstream and a test case has been added.
That same testcase does not seem to compile under NixOS however. I'm new to both NixOS and go, so I'm not quite sure what's going on.
Steps to reproduce
Test case from upstream:
Attempt to build it:
Technical details
The text was updated successfully, but these errors were encountered: