Cabal Mac OS(雪豹)出错 - ld:未知选项:-no_pie [英] Error with Cabal Mac OS(snow leopard) - ld: unknown option: -no_pie

查看:132
本文介绍了Cabal Mac OS(雪豹)出错 - ld:未知选项:-no_pie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 解决依赖关系... 
[1的1]编译Main(/var/folders/qA/qAV3z3wUGnOKfufb0vx2N++++TI/-Tmp-/HUnit-1.2.4.229829/HUnit-1.2.4.2/Setup.hs,/ var / folders /qA/qAV3z3wUGnOKfufb0vx2N++++TI/-Tmp-/HUnit-1.2.4.229829/HUnit-1.2.4.2/dist/setup/Main.o)

/ var / folders / qA / qAV3z3wUGnOKfufb0vx2N ++++ TI / -Tmp- / HUnit-1.2.4.229829 / HUnit-1.2.4.2 / Setup.hs:6:1:
警告:使用'runTests'
Distribution.Simple,但在Distribution.Simple.UserHooks中定义):
不推荐使用:请使用新的测试界面!
链接/var/folders/qA/qAV3z3wUGnOKfufb0vx2N++++TI/-Tmp-/HUnit-1.2.4.229829/HUnit-1.2.4.2/dist/setup/setup ...
ld:unknown选项:-no_pie
collect2:ld返回1退出状态
[1的1]编译Main(/var/folders/qA/qAV3z3wUGnOKfufb0vx2N++++TI/-Tmp-/syb-0.3.629829 /syb-0.3.6/Setup.hs,/var/folders/qA/qAV3z3wUGnOKfufb0vx2N++++TI/-Tmp-/syb-0.3.629829/syb-0.3.6/dist/setup/Main.o)

/var/folders/qA/qAV3z3wUGnOKfufb0vx2N++++TI/-Tmp-/syb-0.3.629829/syb-0.3.6/Setup.hs:4:30:
警告:使用`runTests'
(从Distribution.Simple导入,但在Distribution.Simple.UserHooks中定义):
不推荐使用:请使用新的测试界面!
链接/var/folders/qA/qAV3z3wUGnOKfufb0vx2N++++TI/-Tmp-/syb-0.3.629829/syb-0.3.6/dist/setup/setup ...
ld:unknown选项:-no_pie
collect2:ld返回1退出状态
cabal:错误:某些软件包未能安装:
Crypto-4.2.4取决于无法安装的HUnit-1.2.4.2。
HUnit-1.2.4.2在配置步骤中失败。例外是:
ExitFailure 1
aeson-0.4.0.1取决于无法安装的syb-0.3.6。
snap-0.7取决于无法安装的syb-0.3.6。
snap-core-0.7.0.1取决于未能安装的HUnit-1.2.4.2。
snap-server-0.7.0.1取决于未能安装的HUnit-1.2.4.2。
syb-0.3.6在配置步骤中失败。例外是:
ExitFailure 1

有没有人有类似的东西?

解决方案

看起来像豹在一段时间内摆脱了 no-pie http://trac.macports.org/ticket/34064



据我所知,无论是已恢复,还是GHC添加了解决方法,或两者​​兼有。



作为关于 GHC - Mac OS X - ld:未知选项:-no_pie ,将xcode / ld升级到更新版本可启用标志


i am trying using cabal in order to install some package but i got a error like:

Resolving dependencies...
[1 of 1] Compiling Main             ( /var/folders/qA/qAV3z3wUGnOKfufb0vx2N++++TI/-Tmp-/HUnit-1.2.4.229829/HUnit-1.2.4.2/Setup.hs, /var/folders/qA/qAV3z3wUGnOKfufb0vx2N++++TI/-Tmp-/HUnit-1.2.4.229829/HUnit-1.2.4.2/dist/setup/Main.o )

/var/folders/qA/qAV3z3wUGnOKfufb0vx2N++++TI/-Tmp-/HUnit-1.2.4.229829/HUnit-1.2.4.2/Setup.hs:6:1:
    Warning: In the use of `runTests'
             (imported from Distribution.Simple, but defined in Distribution.Simple.UserHooks):
             Deprecated: "Please use the new testing interface instead!"
Linking /var/folders/qA/qAV3z3wUGnOKfufb0vx2N++++TI/-Tmp-/HUnit-1.2.4.229829/HUnit-1.2.4.2/dist/setup/setup ...
ld: unknown option: -no_pie
collect2: ld returned 1 exit status
[1 of 1] Compiling Main             ( /var/folders/qA/qAV3z3wUGnOKfufb0vx2N++++TI/-Tmp-/syb-0.3.629829/syb-0.3.6/Setup.hs, /var/folders/qA/qAV3z3wUGnOKfufb0vx2N++++TI/-Tmp-/syb-0.3.629829/syb-0.3.6/dist/setup/Main.o )

/var/folders/qA/qAV3z3wUGnOKfufb0vx2N++++TI/-Tmp-/syb-0.3.629829/syb-0.3.6/Setup.hs:4:30:
    Warning: In the use of `runTests'
             (imported from Distribution.Simple, but defined in Distribution.Simple.UserHooks):
             Deprecated: "Please use the new testing interface instead!"
Linking /var/folders/qA/qAV3z3wUGnOKfufb0vx2N++++TI/-Tmp-/syb-0.3.629829/syb-0.3.6/dist/setup/setup ...
ld: unknown option: -no_pie
collect2: ld returned 1 exit status
cabal: Error: some packages failed to install:
Crypto-4.2.4 depends on HUnit-1.2.4.2 which failed to install.
HUnit-1.2.4.2 failed during the configure step. The exception was:
ExitFailure 1
aeson-0.4.0.1 depends on syb-0.3.6 which failed to install.
snap-0.7 depends on syb-0.3.6 which failed to install.
snap-core-0.7.0.1 depends on HUnit-1.2.4.2 which failed to install.
snap-server-0.7.0.1 depends on HUnit-1.2.4.2 which failed to install.
syb-0.3.6 failed during the configure step. The exception was:
ExitFailure 1

Has anyone had something like that?

解决方案

Looks like leopard got rid of no-pie for a period: http://trac.macports.org/ticket/34064

As far as I can tell, either it was restored, or GHC added a workaround, or both.

as the comments note on GHC - Mac OS X - ld: unknown option: -no_pie, upgrading xcode/ld to more recent versions enables the flag

这篇关于Cabal Mac OS(雪豹)出错 - ld:未知选项:-no_pie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆