编译Cilkplus-GCC在CentOS
问题描述:
我得到了一个错误,而在CentOS 7编译Cilkplus-GCC在CentOS
我可以张贴我的config.log(只是有点太大了,这个帖子comiling英特尔CilkPlus - 如果它是有用的,我将发布它)
这里控制台输出的最后几行:
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... configure: error: in `/home/johannes/b-gcc/x86_64-unknown-linux-gnu/32/libcilkrts':
configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libcilkrts] Fehler 1
make[1]: Leaving directory `/home/johannes/b-gcc'
make: *** [all] Fehler 2
谁能帮助我?我只是不知道如何解决这个问题。
答
它看起来像C++编译器没有构建(或不正确构建)。你可以发布你用来配置编译器的命令(以及标签)吗?
我的意思是这样的: $ HOME/gcc-6bca773/configure --prefix = $ HOME/cilkplus-install --enable-languages =“c,C++” – GrayGhost93 2014-11-24 19:06:48