2014-01-18 26 views
2

我经常在Ubuntu 13.10上本地重建和使用DMD git master。昨天我d工具链未能全部d程序有错误链接:从DMDDMD链接失败,因为缺少_adCmp2和_adEq2

实例汇编输出:

/home/per/opt/x86_64-unknown-linux-gnu/dmd/bin/../lib/libphobos2.a(sections_linux_4c8_e6.o):src/rt/sections_linux.d:function 
_D2rt14sections_linux3DSO11__xopEqualsFKxS2rt14sections_linux3DSOKxS2rt14sections_linux3DSOZb: 
error: undefined reference to '_adEq2' 
/home/per/opt/x86_64-unknown-linux-gnu/dmd/bin/../lib/libphobos2.a(sections_linux_4c8_e6.o):src/rt/sections_linux.d:function 
_D2rt14sections_linux3DSO11__xopEqualsFKxS2rt14sections_linux3DSOKxS2rt14sections_linux3DSOZb: 
error: undefined reference to '_adEq2' 
/home/per/opt/x86_64-unknown-linux-gnu/dmd/bin/../lib/libphobos2.a(sections_linux_4c8_e6.o):src/rt/sections_linux.d:function 
_D2rt14sections_linux3DSO11__xopEqualsFKxS2rt14sections_linux3DSOKxS2rt14sections_linux3DSOZb: 
error: undefined reference to '_adEq2' 
/home/per/opt/x86_64-unknown-linux-gnu/dmd/bin/../lib/libphobos2.a(sections_linux_4c8_e6.o):src/rt/sections_linux.d:function 
_D2rt14sections_linux3DSO11__xopEqualsFKxS2rt14sections_linux3DSOKxS2rt14sections_linux3DSOZb: 
error: undefined reference to '_adEq2' 
collect2: error: ld returned 1 exit status 

当我用grep它只是dmd二进制这个符号,不 libphobos匹配。我的dmd和libphobos都是最新的。

我试过ld.bfdld.gold

出了什么问题?

+0

你是否从git获取druntime? –

+0

我设法通过从包含运行时和phobos库的'LD_LIBRARY_PATH'中删除我的D目录来重新运行它。 –

回答

0

我设法通过从包含运行时和phobos库的LD_LIBRARY_PATH中删除我的D目录来重新运行它。可能是我的错误。

相关问题