请教Ubuntu 6.10 编译 gcc 问题
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 17
- 注册时间: 2007-03-13 9:47
- 来自: 天津
请教Ubuntu 6.10 编译 gcc 问题
新手第一次装 光盘装的ubuntu 顺利装上了(感谢版内的前辈的帖子)
不过我的问题是需要在上面编译gcc 3.3.2 不能编译更新的,现在有如下问题
root@gh-desktop:/usr/local/src/gcc-3.3.2# ./configure --prefix=/usr/local/gcc332
Configuring for a i686-pc-linux-gnulibc1 host.
*** This configuration is not supported in the following subdirectories:
target-libffi target-boehm-gc target-zlib target-libjava
(Any other directories should still work fine.)
Created "Makefile" in /usr/local/src/gcc-3.3.2 using "mt-frag"
/usr/bin/ld:crt1.o:没有这个文件:No such file or directory
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
请教高手们。
我的机器不一定能连上网络,所以最好能给个下载地址什么的。
不过我的问题是需要在上面编译gcc 3.3.2 不能编译更新的,现在有如下问题
root@gh-desktop:/usr/local/src/gcc-3.3.2# ./configure --prefix=/usr/local/gcc332
Configuring for a i686-pc-linux-gnulibc1 host.
*** This configuration is not supported in the following subdirectories:
target-libffi target-boehm-gc target-zlib target-libjava
(Any other directories should still work fine.)
Created "Makefile" in /usr/local/src/gcc-3.3.2 using "mt-frag"
/usr/bin/ld:crt1.o:没有这个文件:No such file or directory
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
请教高手们。
我的机器不一定能连上网络,所以最好能给个下载地址什么的。
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
-
- 帖子: 17
- 注册时间: 2007-03-13 9:47
- 来自: 天津
终于前进了一步
联上网络才安装上前面版主说的那些,可编译时提示如下错误。
./read-rtl.c: In function ‘fatal_with_file_and_line’:
./read-rtl.c:53: warning: traditional C rejects ISO C style function definitions
./read-rtl.c: In function ‘read_rtx’:
./read-rtl.c:653: error: invalid lvalue in increment
make[1]: *** [read-rtl.o] 错误 1
make[1]: Leaving directory `/usr/local/src/gcc-3.3.2/gcc'
make: *** [all-gcc] 错误 2
请教!!该怎么办?
./read-rtl.c: In function ‘fatal_with_file_and_line’:
./read-rtl.c:53: warning: traditional C rejects ISO C style function definitions
./read-rtl.c: In function ‘read_rtx’:
./read-rtl.c:653: error: invalid lvalue in increment
make[1]: *** [read-rtl.o] 错误 1
make[1]: Leaving directory `/usr/local/src/gcc-3.3.2/gcc'
make: *** [all-gcc] 错误 2
请教!!该怎么办?
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04