|
发现gromacs更新到2016了
需要c++11的编译编译器
我用的系统是SUSE Linux Enterprise Server 11 SP2 (x86_64)
仿照这个安装gcc4.8.2
http://www.cnblogs.com/lizhenghn/p/3550996.html
帖子里也没什么实际内容
就是./contrib/download_prerequisites下载依赖库
然后安装
../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
错误信息如下:
../../gcc/incpath.c(326): warning #1881: argument must be a constant null pointer value
p->name = concat (sysroot, p->name + 1, NULL);
^
icpc -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I/home/kjlv/software/gcc/gcc-4.8.2/build/./gmp -I/home/kjlv/software/gcc/gcc-4.8.2/gmp -I/home/kjlv/software/gcc/gcc-4.8.2/build/./mpfr -I/home/kjlv/software/gcc/gcc-4.8.2/mpfr -I/home/kjlv/software/gcc/gcc-4.8.2/mpc/src -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc/../libbacktrace ../../gcc/ipa-cp.c -o ipa-cp.o
icpc: command line warning #10006: ignoring unknown option '-Wmissing-format-attribute'
../../gcc/vec.h(1140): error: more than one instance of function "gt_ggc_mx" matches the argument list: (这里谷歌有个类似错误但没人回)
function "gt_ggc_mx(edge_def *)"
function "gt_ggc_mx(edge &)"
argument types are: (edge)
gt_ggc_mx ((*v));
^
detected during instantiation of "void gt_ggc_mx(vec<T, va_gc, va_gc::default_layout> *) [with T=edge]" at line 833 of "gtype-desc.c"
../../gcc/vec.h(1160): error: more than one instance of function "gt_pch_nx" matches the argument list:
function "gt_pch_nx(edge_def *)"
function "gt_pch_nx(edge &)"
argument types are: (edge)
gt_pch_nx ((*v));
^
detected during instantiation of "void gt_pch_nx(vec<T, A, vl_embed> *) [with T=edge, A=va_gc]" at line 3760 of "gtype-desc.c"
compilation aborted for gtype-desc.c (code 2)
make[3]: *** [gtype-desc.o] Error 2
make[3]: *** Waiting for unfinished jobs....
/bin/sh ../../gcc/../move-if-change tmp-automata.c insn-automata.c
echo timestamp > s-automata
rm gcc.pod
求助
要怎么解决?
或者有没有别的方法进行升级?
zypper suse13源里的能弄过来用吗?
|
|