关于在redhat中安装gcc版本4.8.2的一些问题

时间:2015-07-11 03:22:30

标签: gcc redhat

为了安装用于深度学习的caffe,我需要在redhat 6.5中将gcc版本从4.4.7升级到4.8.2。

First run ./configure it worked,
then make -j4, it will report 
options.c:11145: error: narrowing conversion of '-0x00000000000000001' from 'int' to 'short unsigned int' inside { }
g++ -std=gnu++0x -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../../gcc/../libdecnumber -I../../gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc/../libbacktrace    ../../gcc/hash-table.c -o hash-table.o
g++ -std=gnu++0x -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../../gcc/../libdecnumber -I../../gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc/../libbacktrace    ../../gcc/file-find.c -o file-find.o
make[3]: *** [options.o] Error 1
make[3]: *** Waiting for unfinished jobs....

我搜索谷歌,但无法找到解决问题的好方法,谁之前有同样的问题?

1 个答案:

答案 0 :(得分:1)

更换原始gcc可能会导致问题。另一种方法是安装Developer Toolset,它在原始版本旁边安装一个新的gcc版本(目前为4.9),以避免文件冲突。从这里开始:http://developers.redhat.com/products/developertoolset/overview/