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

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -