刚接触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
:0wszxc 不知从何下手。我去libberty文件夹下找了找,没有发现Irealpath.c这个文件。。。
ggsvvss 于 2009-07-04 01:31:49发表:
是路径不正确吧
刘冲 于 2009-07-04 00:03:40发表:
支持!icejoywoo 于 2009-07-04 00:01:48发表:
我觉得刚开始还是用yum或是其他的那些比较好
简单一点
刘冲 于 2009-07-03 23:52:25发表:
编译安装,好恐怖,时间占用大大地
hwdself 于 2009-07-03 23:37:52发表:
头晕!希望LZ早日找到答案
paul_Zhao 于 2009-06-24 14:16:04发表:
用yum不行吗。你是有的那个发行版?
小普林斯 于 2009-06-24 00:16:52发表:
似乎./configure之后不会存在路径问题了……
bbjc 于 2009-06-24 00:03:48发表:
同意沙发的
51love 于 2009-06-24 00:00:52发表:
prefix=/uer/local/gcc-4.2.1 再试试,好像是路径问题
小普林斯 于 2009-06-23 23:23:29发表:
可能是依赖包的关系,不知道LZ用的是那个版本的系统,其实可以从源里直接安装的,这样的话对于初学者非常方便,而且系统会自动解决依赖关系!
hexing2424 于 2009-06-23 23:18:04发表:
这是什么东东,那么多,很抱歉,偶看不懂
hexing2424 于 2009-06-23 23:18:03发表:
这是什么东东,那么多,很抱歉,偶看不懂
jenifor 于 2009-06-23 23:11:16发表:
太高升了
这种东西一般可以通过yum安装吧