首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >HPX在Mac上的构建会导致链接器错误。

HPX在Mac上的构建会导致链接器错误。
EN

Stack Overflow用户
提问于 2015-07-18 16:31:46
回答 1查看 166关注 0票数 1

我试图在上构建HPX。在运行命令'make‘时,我会得到以下链接器错误。

我用gcc做我的编译器。

代码语言:javascript
复制
    Linking CXX shared library ../lib/libhpx.dylib
0  0x1056e66a0  __assert_rtn + 144
1  0x105791989  mach_o::relocatable::Parser<x86_64>::parse(mach_o::relocatable::ParserOptions const&) + 3169
2  0x105775331  mach_o::relocatable::Parser<x86_64>::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, mach_o::relocatable::ParserOptions const&) + 375
3  0x1056e9344  ld::tool::InputFiles::makeFile(Options::FileInfo const&, bool) + 784
4  0x1056eb1fc  ld::tool::InputFiles::parseWorkerThread() + 484
5  0x7fff945d9268  _pthread_body + 131
6  0x7fff945d91e5  _pthread_body + 0
A linker snapshot was created at:
        /tmp/libhpx.0.9.11.dylib-2015-06-18-214035.ld-snapshot
ld: Assertion failed: (cfiStartsArray[i] != cfiStartsArray[i-1]), function parse, file src/ld/parsers/macho_relocatable_file.cpp, line 1741.
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libhpx.0.9.11.dylib] Error 1
make[1]: *** [src/CMakeFiles/hpx.dir/all] Error 2
make: *** [all] Error 2
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-09-18 23:48:23

尝试配置hpx,如下所示;

代码语言:javascript
复制
/Users/hpx > ./configure --with-hwloc=contrib --prefix=/Users/hpx/install CC=clang


/Users/hpx > make

你发布的错误与gcc和约塞米蒂的链接有关。仍然不确定如何准确地解决错误。但是作为一项工作,您可以在编译HPX时使用clang编译器。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31493252

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档