Latest Debian GCC breaks GHC
Just got gcc (Debian 6.2.0-9) 6.2.0 20161019
in a recent upgrade (Debian Testing) and now:
> cat hello.hs
main :: IO ()
main = putStrLn "Hello"
> ghc hello.hs -o hello
[1 of 1] Compiling Main ( hello.hs, hello.o )
Linking hello ...
/usr/bin/ld: hello.o: relocation R_X86_64_32S against symbol `stg_bh_upd_frame_info' \
can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ghc-8.0/lib/base-4.9.0.0/libHSbase-4.9.0.0.a(Base__166.o): \
relocation R_X86_64_32S against symbol `stg_bh_upd_frame_info' can not be used when \
making a shared object; recompile with -fPIC
....
The previous version of gcc in Debian Testing (gcc (Debian 6.2.0-6) 6.2.0 20161010) is fine.
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |