-
Notifications
You must be signed in to change notification settings - Fork 365
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
Initial switch creation fails on mac #3650
Comments
Please disregard. My mac had a mishmash of Gnu and clang tools due to something else I was working on. I cleaned it up and now the switch creation is successful. |
Hi @ospatil! I'm experiencing this same issue after updating to Mojave (I use Homebrew). Could you share your solution, please? |
@anton-trunov - I was tinkering with assembly and had gcc and Gnu binutils installed on my mac (still on Sierra) through Homebrew. It seems that this, especially the Gnu linker ld, spooked Opam and I was getting the error mentioned above. I uninstalled these, updated Xcode (along with it's command line tools) to latest and that solved the problem. |
@ospatil Thank you very much, it worked perfectly! |
To add on, if you installed GNU binutils via Homebrew: brew unlink binutils This might break existing setups so maybe relink it after you're done. |
@irvinlim is this issue with binutils known on the homebrew side? |
@mseri Not too sure, but it seems like the issue is either with the user or with opam, not the Homebrew binutils package. From what I see, the issue is that opam assumes that the linker is the default one on macOS, which could be justified. Perhaps opam could support both the native linker and the binutils one. I new to OCaml, so I know even less about opam; it's probably best to ask someone else. |
gnu binutils doesn't provide a linker ( Edit: Looking at the error log, I suspect that the replaced
|
@Leandros Thanks for the explanation. I went into the same problem. My computer doesn't have gnu |
@bifeitang My solution was to unlink binutils using brew ( |
The error is as follows. I'm quite new to the Ocaml ecosystem, so please forgive me if I'm missing something really basic.
The text was updated successfully, but these errors were encountered: