|
|
|
|
 编译gcc-2.95.3使其支持a.out格式 - 3ground [ 2005-10-14 13:57 | 927 byte(s)]
 Re: 编译gcc-2.95.3使其支持a.out格式 - 3ground [ 2005-10-16 13:35 | 121 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
大家好,
我试着将gcc-2.95.3编译成支持a.out,但编译出错,我的步骤如下,请大家帮忙看看问题在哪里。
(gcc-2.95.3源代码在/root/gcc-2.95.3下)
1. 创建 /opt/gcc-2.95.3
2. cd /opt/gcc-2.95.3
3. /root/gcc-2.95.3/configure --target=i386-aout-linux
4. make
但是编译有如下错误:
/root/backup/gcc-2.95.3/gcc/libgcc2.c:41: stdlib.h: No such file or directory
/root/backup/gcc-2.95.3/gcc/libgcc2.c:42: unistd.h: No such file or directory
make[1]: *** [libgcc2.a] Error 1
make[1]: Leaving directory `/opt/gcc-2.95.3/gcc'
我将存放stdlib.h, unistd.h的路径加入PATH中,但仍然编译失败。但是如果不编译gcc而是编译其它程序都能找到stdlib.h,unistd.h,看来不是PATH的问题。
请高手指点。
非常感谢!
|
|
|
----
博弈树
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
请问谁有a.out格式的crt0.o和crtn.o(i386 version)?编译gcc-2.95使其支持a.out似乎需要这2个文件。
谢谢!
|
|
|
----
博弈树
|
|
[Original]
[Print]
[Top]
|
|
|