haskell - ghc 8.0 cabal build error "ld: -r and -pie may not be used together" known? -
after upgrading ghc 8.0 on recent ubuntu machine, got following build error:
/usr/bin/ld: -r , -pie may not used together
a different error message same problem is:
relocation r_x86_64_32 against `.rodata' can not used when making > shared object; recompile -fpic
is known bug? there other solutions?
the solution use linker flag "-no-pie":
cabal -v --ghc-option="-optl-no-pie" install cabal-install
is suspect perhaps implicit ld flag set on ubuntu conflicting somehow.
Comments
Post a Comment