刚接触linux 不久,盼高人指点,非常感谢
我在网上下载了gcc-4.2.1.tar.bz2,解压后,进行
./configure --prefix=[将来存放gcc-4.2.1编译结果的路径名]
通过了,生成了makefile
然后就make了,结果出现问题
之前很多我就省略不贴了
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: executing default commands
make[3]: Entering directory `/root/gcc4/gcc-4.2.1/host-i686-pc-linux-gnu/libiberty'
if [ x"" != x ] && [ ! -d pic ]; then \
mkdir pic; \
else true; fi
touch stamp-picdir
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/regex.c -o pic/regex.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/regex.c -o regex.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/cplus-dem.c -o pic/cplus-dem.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/cplus-dem.c -o cplus-dem.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/cp-demangle.c -o pic/cp-demangle.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/cp-demangle.c -o cp-demangle.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/md5.c -o pic/md5.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/md5.c -o md5.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/alloca.c -o pic/alloca.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/alloca.c -o alloca.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/argv.c -o pic/argv.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/argv.c -o argv.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/choose-temp.c -o pic/choose-temp.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/choose-temp.c -o choose-temp.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/concat.c -o pic/concat.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/concat.c -o concat.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/cp-demint.c -o pic/cp-demint.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/cp-demint.c -o cp -demint.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/dyn-string.c -o
pic/dyn-string.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/dyn-string.c -o
dyn-string.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/fdmatch.c -o pic/fdmatch.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/fdmatch.c -o
fdmatch.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/fibheap.c -o
pic/fibheap.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/fibheap.c -o
fibheap.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/floatformat.c -o
pic/floatformat.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/floatformat.c -o
floatformat.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/fnmatch.c -o
pic/fnmatch.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/fnmatch.c -o
fnmatch.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/lrealpath.c -o
pic/lrealpath.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -I. -I../.././libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../.././libiberty/lrealpath.c -o
lrealpath.o
../../libiberty/lrealpath.c: In function `lrealpath':
../../libiberty/lrealpath.c:115: warning: implicit declaration of function `pathconf'
../../libiberty/lrealpath.c:115: `_PC_PATH_MAX' undeclared (first use in this function)
../../libiberty/lrealpath.c:115: (Each undeclared identifier is reported only once
../../libiberty/lrealpath.c:115: for each function it appears in.)
make[3]: *** [lrealpath.o] Error 1
make[3]: Leaving directory `/root/gcc4/gcc-4.2.1/host-i686-pc-linux-gnu/libiberty'
make[2]: *** [all-stage1-libiberty] Error 2
make[2]: Leaving directory `/root/gcc4/gcc-4.2.1'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/root/gcc4/gcc-4.2.1'
make: *** [all] Error 2
去libiberty文件夹下找了找,发现没有Irealpath.c这个文件,现在不知道该怎么办了 |