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

macOS Hadrian build (configure) won't find nm #52

Open
ggreif opened this issue Nov 4, 2019 · 1 comment
Open

macOS Hadrian build (configure) won't find nm #52

ggreif opened this issue Nov 4, 2019 · 1 comment

Comments

@ggreif
Copy link
Contributor

ggreif commented Nov 4, 2019

Invoking like this:

hadrian/build.sh -j4 --flavour=quickest --build-root=_mybuild -c

The log in #22 shows a similar error:

Linking /Users/ggreif/ghc/hadrian/dist-newstyle/build/x86_64-osx/ghc-8.6.5/hadrian-0.1.0.0/x/hadrian/build/hadrian/hadrian ...
| Running boot...
| Run Configure ".": hadrian/cfg/system.config.in (and 3 more) => hadrian/cfg/system.config (and 3 more)
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
error: nm: invalid argument --
Usage: nm [-agnopruUmxjlfAP[s segname sectname] [-] [-t format] [[-arch <arch_flag>] ...] [file ...]

Here the "Install Xcode" dialog pops up.

In my setup all tools reside in the /nix/store, and I have no developer tools installed.

Interestingly, the build continues. Somewhat into the process the same dialog pops up because of objdump.

@alpmestan
Copy link
Owner

Any chance you could figure out what derivation you need to have in scope for nm to be available? We could add it to the env when on darwin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants