FS#54597 - [ghc] Compiling doesn't seem to work at all in 8.0.2

Attached to Project: Community Packages
Opened by Johan Forberg (jforberg) - Monday, 26 June 2017, 15:10 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 26 June 2017, 15:15 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

As of today GHC moved from 8.0.1 to 8.0.2 and I can no longer compile any Haskell project on my Arch system. An example of trying to compile hello world:

$ echo 'main = putStrLn "Hello World"' > Hello.hs

$ ghc Hello.hs
[1 of 1] Compiling Main ( Hello.hs, Hello.o )
Linking Hello ...
/usr/bin/ld: cannot find -lHSbase-4.9.1.0
/usr/bin/ld: cannot find -lHSinteger-gmp-1.0.0.1
/usr/bin/ld: cannot find -lHSghc-prim-0.5.0.0
/usr/bin/ld: cannot find -lHSrts
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)

It seems to be trying to dynamically link the binary. I've never seen GHC do dynamic linking by default.

I've performed all the debugging steps I could think of, including:

* rm -rf ~/.ghc ~/.cabal
* sudo pacman -Rc ghc && sudo pacman -S ghc
* Googling for the issue, which turned up a lot of more specific posts (build problems in the xmonad package etc.) but nothing on the scope of no Haskell builds working at all.

What gives? Downgrading ghc and cabal-install works around the issue for now, so the problem appears to be with the latest package release.

Thanks,
Johan
This task depends upon

Closed by  Doug Newgard (Scimmia)
Monday, 26 June 2017, 15:15 GMT
Reason for closing:  Not a bug
Additional comments about closing:  You have to use --dynamic

Loading...