-
Notifications
You must be signed in to change notification settings - Fork 43
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
Build failure on Mac OS due to ld -no-pie
#140
Comments
ld -no-pie
This is actually a rather easy fix if you want to give it a try. The select below already has options for darwin(MacOS) in a list. You would just need to move that flag into the list. The select chooses to return a the list based on which platform your on.
|
Sweet! On it. Is there no need for a |
I suspect "-Wl,-no_pie" is required. I just didn't type it correctly |
Updated the PR to use it! |
I'm trying to build XLS on Mac OS from source which pulls rules_hdl as a dependency and the build seems to fail with the following error:
Digging into it, it seems that
ld
on mac has the option-no_pie
instead of-no-pie
used here:https://github.com/hdl/bazel_rules_hdl/blob/main/dependency_support/com_icarus_iverilog/bundled.BUILD.bazel#L375
I'm not super familiar with bazel but if there is an obvious fix, I can try to write up a PR
The text was updated successfully, but these errors were encountered: