系统为:Ubuntu14.04 LTS
按照 http://www.cnblogs.com/lanxuezaipiao/p/3450201.html 的步骤进行安装,可是中间总是出现如下错误:
代码: 全选
../../gcc-4.6.2/libiberty/fibheap.c: In function ‘fibheap_replace_key_data’:
../../gcc-4.6.2/libiberty/fibheap.c:220:30: error: ‘LONG_MIN’ undeclared (first use in this function)
../../gcc-4.6.2/libiberty/fibheap.c:220:30: note: each undeclared identifier is reported only once for each function it appears in
../../gcc-4.6.2/libiberty/fibheap.c: In function ‘fibheap_delete_node’:
../../gcc-4.6.2/libiberty/fibheap.c:261:36: error: ‘LONG_MIN’ undeclared (first use in this function)
../../gcc-4.6.2/libiberty/fibheap.c:265:7: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
../../gcc-4.6.2/libiberty/fibheap.c:265:7: warning: incompatible implicit declaration of built-in function ‘abort’ [enabled by default]
../../gcc-4.6.2/libiberty/fibheap.c: In function ‘fibheap_delete’:
../../gcc-4.6.2/libiberty/fibheap.c:277:5: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
../../gcc-4.6.2/libiberty/fibheap.c: In function ‘fibheap_consolidate’:
../../gcc-4.6.2/libiberty/fibheap.c:368:3: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]
../../gcc-4.6.2/libiberty/fibheap.c:368:3: warning: incompatible implicit declaration of built-in function ‘memset’ [enabled by default]
make[3]: *** [fibheap.o] Error 1
make[3]: Leaving directory `/usr/local/codeviz-1.0.12/compilers/gcc-graph/objdir/libiberty'
make[2]: *** [all-stage2-libiberty] Error 2
make[2]: Leaving directory `/usr/local/codeviz-1.0.12/compilers/gcc-graph/objdir'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/usr/local/codeviz-1.0.12/compilers/gcc-graph/objdir'
make: *** [all] Error 2
Compile saved after trying to fix up config.h, do not know what to do
This is likely a CodeViz rather than a gcc problem
但是对于陌生的Linux环境,是一头雾水,哪位大侠能出手相助下,告诉下解决思路。