当前位置: 技术问答>linux和unix
升级gcc在make时报错
来源: 互联网 发布时间:2016-06-21
本文导语: gcc -c -DHAVE_CONFIG_H -g -fkeep-inline-functions -I. -I../.././libiberty/../include -W -Wall -Wwrite-strings -Wstrict-prototypes -pedantic ../.././libiberty/pex-common.c -o pex-common.o ../.././libiberty/pex-common.c: In function `pex_input_file': ../.././libib...
gcc -c -DHAVE_CONFIG_H -g -fkeep-inline-functions -I. -I../.././libiberty/../include -W -Wall -Wwrite-strings -Wstrict-prototypes -pedantic ../.././libiberty/pex-common.c -o pex-common.o
../.././libiberty/pex-common.c: In function `pex_input_file':
../.././libiberty/pex-common.c:390: error: `EINVAL' undeclared (first use in this function)
../.././libiberty/pex-common.c:390: error: (Each undeclared identifier is reported only once
../.././libiberty/pex-common.c:390: error: for each function it appears in.)
../.././libiberty/pex-common.c: In function `pex_input_pipe':
../.././libiberty/pex-common.c:453: error: `EINVAL' undeclared (first use in this function)
make[3]: *** [pex-common.o] 错误 1
make[3]: Leaving directory `/usr/src/gcc-4.4.0/host-i686-pc-linux-gnu/libiberty'
make[2]: *** [all-stage1-libiberty] 错误 2
make[2]: Leaving directory `/usr/src/gcc-4.4.0'
make[1]: *** [stage1-bubble] 错误 2
make[1]: Leaving directory `/usr/src/gcc-4.4.0'
make: *** [all] 错误 2
---------------------------------------
以上是包含错误信息的部分,有哪位知道怎么解决吗?
谢谢先~~~
../.././libiberty/pex-common.c: In function `pex_input_file':
../.././libiberty/pex-common.c:390: error: `EINVAL' undeclared (first use in this function)
../.././libiberty/pex-common.c:390: error: (Each undeclared identifier is reported only once
../.././libiberty/pex-common.c:390: error: for each function it appears in.)
../.././libiberty/pex-common.c: In function `pex_input_pipe':
../.././libiberty/pex-common.c:453: error: `EINVAL' undeclared (first use in this function)
make[3]: *** [pex-common.o] 错误 1
make[3]: Leaving directory `/usr/src/gcc-4.4.0/host-i686-pc-linux-gnu/libiberty'
make[2]: *** [all-stage1-libiberty] 错误 2
make[2]: Leaving directory `/usr/src/gcc-4.4.0'
make[1]: *** [stage1-bubble] 错误 2
make[1]: Leaving directory `/usr/src/gcc-4.4.0'
make: *** [all] 错误 2
---------------------------------------
以上是包含错误信息的部分,有哪位知道怎么解决吗?
谢谢先~~~
|
是库没包含吧,缺少什么库。
|
这个可不容易,要细心慢慢来。
LSF上面有完整的例子, 请参照步骤慢慢来。
LSF上面有完整的例子, 请参照步骤慢慢来。
|
应该是在configure时就出错了,试试加上其它参数。
|
还是用ubuntu
一句话apt-get install 搞定一切
一句话apt-get install 搞定一切