-
Notifications
You must be signed in to change notification settings - Fork 841
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
iconv linker error #825
Comments
Is there any chance that you have multiple versions of libiconv installed? This looks similar to haskell/haskell-platform#74. |
I have this issue, and I do have multiple versions of libiconv installed. The question for me is, how do I get stack to link ghc against the version I want to use? This seems like it could be a big issue for mac-users, as many of our c-libraries (and thus many haskell packages) rely on alternatives to the system-installed libraries. |
@carrutstick: I use OS X but haven't run into this yet. Is there an approach you use with |
@borsboom, I think it's that I have the latest version of |
I've experienced the exact same problem, trying to install IHaskell. I installed stack and then used it to install GHC. I then installed the required zeromq library using MacPorts, and then tried to install IHaskell using GHC is linked to iconv in As @carrutstick mentioned, typically on Macs,the latest versions of libraries are installed in either
|
FWIW, I was able to I think to move forward on fixing the underlying issue, we need to know how this would be addressed using arguments to Are any of those of you experiencing this problem able to put some effort into researching a solution? |
Yes, we could solve it by adding
to our stack.yaml. |
Ok, sounds like that's the right solution. You could put that in your |
This doesn't work for me trying to install |
FYI, I ended up working around it by building |
I believe that should be: extra-lib-dirs:
- /usr/lib — note the plural. however, is it possible to only enable it for a single dependency, not all of them? |
For what it's worth, I had this problem on El Capitan and I had
|
I tried the solution proposed and put
in |
I have the same problem and cannot get out of it... It occurs when doing stack setup. I use macport gcc, macport clang and I have put the lib dirs and include dirs to be macport ones as follows in the ~/.stack/config.yaml extra-lib-dirs:
extra-include-dirs:
|
It does not work for |
Same issue here. MacOS Mojave clean install, stack 1.9.3. Running
I tried I'd be interested to know if anyone has been able to run |
A follow up for time travellers from the future, I was able to resolve this issue by reverting from the version of |
Same issue here. Neither forcing Must add that |
Any solution to this? |
For most packages, the above (or similar - adding cabal option "ghc-options: /usr/lib/libiconv.dylib") helps. Usually I employ "v1-..." commands and force system-ghc. "stack" behaves much worse, but quite a few packages build ok with this option too (and system-ghc, in whatever way you can tell stack to do it). But some - like "ghc-paths" or "intero" - fail to build under "stack" no matter what. Basically, I gave up on "stack" as hopeless. |
I have experienced the same issue and was able to fix it by running $ stack build --ghc-options "-L/usr/lib"
$ stack install |
@dmitriz are you saying that it worked for you for all packages??? In my case it worked for most, but not all. Particularly, problems with big and flakey ones like "intero". |
I have only tried two packages recently, I have not tried "intero" yet, is it showing exactly the same error that wouldn't go away with that option? |
So, in general your experience seems to match mine: for the majority of packages this option helps. But for some it didn't help. I haven't tried intero myself for quite a while. What about |
Hello,
just ran
stack setup
andstack build
(using lts-3.0, ghc-7.10.2) on a otherwise ghc free OSX enviroment and got:Manually installing libiconv doesn't change anything.
The text was updated successfully, but these errors were encountered: