Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Haskell Cabal安装在链接器阶段失败_Haskell_Linker Errors_Ghc_Cabal_Cabal Install - Fatal编程技术网

Haskell Cabal安装在链接器阶段失败

Haskell Cabal安装在链接器阶段失败,haskell,linker-errors,ghc,cabal,cabal-install,Haskell,Linker Errors,Ghc,Cabal,Cabal Install,我正在尝试安装graphing library,但是cabal install给了我这个错误列表(只显示列表的底部,因为上面的所有内容都非常长且相似): 到目前为止,我已经确定该问题是由安装程序试图进行修改引起的。我试图通过将DEB_BUILD_harding_PIE环境变量设置为0export DEB_BUILD_harding_PIE=0来解决这个问题,但它给出了相同的错误 我正在运行Debian、ghc-8.0.2和cabal 1.24.2.0。我找到了另一种让cabal安装不制作饼的方法

我正在尝试安装graphing library,但是cabal install给了我这个错误列表(只显示列表的底部,因为上面的所有内容都非常长且相似):

到目前为止,我已经确定该问题是由安装程序试图进行修改引起的。我试图通过将DEB_BUILD_harding_PIE环境变量设置为0
export DEB_BUILD_harding_PIE=0
来解决这个问题,但它给出了相同的错误


我正在运行Debian、ghc-8.0.2和cabal 1.24.2.0。

我找到了另一种让cabal安装不制作饼的方法,而不是编辑
DEB\u BUILD\u harding\u PIE
环境变量,这似乎解决了这个问题

cabal--ghc选项=“-optl无饼图”安装图表

/usr/bin/ld:
/usr/local/haskell/ghc-8.0.2-x86_64/lib/ghc-8.0.2/rts/libHSrts_thr.a(MarkWeak.thr_o):
relocation R_X86_64_32S against symbol `stg_END_TSO_QUEUE_closure' can not be
used when making a PIE object; recompile with -fPIC
/usr/bin/ld:
/usr/local/haskell/ghc-8.0.2-x86_64/lib/ghc-8.0.2/rts/libHSrts_thr.a(Evac.thr_o):
relocation R_X86_64_32 against symbol `stg_WHITEHOLE_info' can not be used
when making a PIE object; recompile with -fPIC
/usr/bin/ld:
/usr/local/haskell/ghc-8.0.2-x86_64/lib/ghc-8.0.2/rts/libCffi.a(closures.o):
relocation R_X86_64_32 against `.rodata' can not be used when making a PIE
object; recompile with -fPIC
/usr/bin/ld:
/usr/local/haskell/ghc-8.0.2-x86_64/lib/ghc-8.0.2/rts/libCffi.a(ffi64.o):
relocation R_X86_64_32S against `.rodata' can not be used when making a PIE
object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
)