好的,所以我想在 CentOS6.5 上运行 QtCreator,显然它需要一个合理的最新版本的 gcc (4.8.2),所以我在这里尝试做 QT5 创建者建议的事情。当我尝试构建 gcc 时,它会在此错误处停止,我不知道出了什么问题,这里是 gcc 编译器转储的地方:
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands
make[3]: Entering directory `/root/objdir/build-x86_64-unknown-linux-gnu/libiberty'
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I/root/objdir/../gcc-4.8.2/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic /root/objdir/../gcc-4.8.2/libiberty/regex.c -o pic/regex.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I/root/objdir/../gcc-4.8.2/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic /root/objdir/../gcc-4.8.2/libiberty/regex.c -o regex.o
/tmp/ccnwYcKf.s: Assembler messages:
/tmp/ccnwYcKf.s:119: Error: expecting string instruction after `rep'
make[3]: *** [regex.o] Error 1
make[3]: Leaving directory `/root/objdir/build-x86_64-unknown-linux-gnu/libiberty'
make[2]: *** [all-build-libiberty] Error 2
make[2]: Leaving directory `/root/objdir'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/root/objdir'
make: *** [all] Error 2
请帮忙谢谢:)
编辑:好的,我想出了如何让事情滚动:
- 你需要安装 devtoolset 2.1
- 然后安装 devtoolset-libutils
- 遵循 gnu 构建指令,现在应该构建良好。
该错误是由于 centos 附带的过时 libutils。