-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
GHC on macOS fails with undefined symbols related to iconv. #46814
Comments
Yep this is definitely new. Pretty serious though. Looks like it effects both unstable and 18.09. |
18.03 does not have this issue. You can install from it with:
|
Thanks, that works for me. |
Is this only a problem with |
|
@dtzWill I recall at some point some native-only |
Is there a known workaround for this other than pulling GHC from another channel? |
I'm now using macOS 10.14 and nixpkgs-unstable, and can no longer reproduce this problem. |
That is odd to hear, lrworth. I just got a new macbook today with 10.14, installed nixpkgs using nixpkgs-unstable as the channel (odd to me that this is default, coming from a debian background) and your above issue is exactly what I ran into when building https://github.com/matterhorn-chat/matterhorn In short: I discourage closing the issue just yet. |
Hi all! I believe I have found the issue here. We add the https://github.com/ghc/packages-base/blob/master/configure.ac#L191 and our https://github.com/tpetricek/Haskell.Extensions.Base/blob/master/aclocal.m4#L214 But only in the builder! Once you have the unwrapped builder, things will break. This is why it will work in a nix-shell / nix-build but not outside of it. Anyway, I'm recompiling now, but should be able to get a PR soon & backport it to 18.09. |
Fixed in #51455. |
I'm hitting this in 18.09 (
@matthewbauer was it backported to 18.09?
|
Thanks for reminding me! I usually like to wait to make sure these things don't cause catastrophic issues. But this has been in master for a little bit so we can definitely cherry pick. I put it in 88157a2 in staging-18.09. It should be merged into release-18.09 in a few weeks. For now, you should be able to get it directly from unstable:
(for ghc 863) |
Thanks! I'll patch my nixpkgs for now. |
Same issue for ghc 8.6.3. |
Issue description
On macOS 10.13.6, cabal-install (installed with a fresh Nix install) cannot build a new project due to not being able to find
_iconv
,_iconv_open
,_iconv_close
, and_locale_charset
, all referenced bylibHSbase
.Terminal output attached: log.txt
The build command executed by cabal is:
If I append
-liconv
:the build succeeds and the generated program executes as expected.
I have just freshly installed Nix 2.1.1 and cabal-install/ghc was one of the first things I installed.
Steps to reproduce
Technical details
"x86_64-darwin"
Darwin 17.7.0, macOS 10.13.6
yes
no
nix-env (Nix) 2.1.1
"nixpkgs-19.03pre152754.f456d7f5753"
/nix/var/nix/profiles/per-user/root/channels/nixpkgs
The text was updated successfully, but these errors were encountered: