|
在ubuntu 7.04里面,从gcc官方网站下载的gcc 4.2.2,编译时出现找不到标准库头文件的错误。这些找不到的头文件是arm版本的标准库(这是包含在gcc里面的吗?)的吗?还是/usr/include的???我该怎么解决这样的问题?
原来的configure参数如下:
- stlxv@stlxvcomputer:~/from_src/arm/gcc-4.2.2/arm-linux$ ../configure --prefix=/usr/local --target=arm-linux --disable-shared --disable-threads --with-headers=/usr/src/linux-headers-2.6.20-16/include --with-gnu-as --with-gnu-ld --enable-multilib --enable-languages=c
复制代码
一开始就因为这样而出错,所以后面加了一个--oldincludedir,结果还是出现同样的错误。P.S. --help列出来的部分参数不是很理解,写的不够详细:-P
- stlxv@stlxvcomputer:~/from_src/arm/gcc-4.2.2/arm-linux$ ../configure --prefix=/usr/local --target=arm-linux --disable-shared --disable-threads --with-headers=/usr/src/linux-headers-2.6.20-16/include --with-gnu-as --with-gnu-ld --enable-multilib --enable-languages=c --oldincludedir=/usr/include
复制代码
错误信息如下:
- /home/stlxv/from_src/arm/gcc-4.2.2/arm-linux/./gcc/xgcc -B/home/stlxv/from_src/arm/gcc-4.2.2/arm-linux/./gcc/ -B/usr/local/arm-linux/bin/ -B/usr/local/arm-linux/lib/ -isystem /usr/local/arm-linux/include -isystem /usr/local/arm-linux/sys-include -O2 -O2 -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I../../gcc/../libdecnumber -I../libdecnumber -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder \
- -c ../../gcc/crtstuff.c -DCRT_BEGIN \
- -o crtbegin.o
- In file included from ../../gcc/crtstuff.c:68:
- ../../gcc/tsystem.h:90:19: error: stdio.h: No such file or directory
- ../../gcc/tsystem.h:93:23: error: sys/types.h: No such file or directory
- ../../gcc/tsystem.h:96:19: error: errno.h: No such file or directory
- ../../gcc/tsystem.h:103:20: error: string.h: No such file or directory
- ../../gcc/tsystem.h:104:20: error: stdlib.h: No such file or directory
- ../../gcc/tsystem.h:105:20: error: unistd.h: No such file or directory
- ../../gcc/tsystem.h:111:18: error: time.h: No such file or directory
复制代码 |
|