LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 890|回复: 4

编译cross toolchain的错误

[复制链接]
发表于 2007-3-12 18:30:48 | 显示全部楼层 |阅读模式
我用的是kernel-2.6.12+gcc-2.95.3+binutil-2.16+glibc-2.2.3,步骤如下:
1。编译bintuils,成功
2。编译boot-gcc,只编译c语言支持,成功
3。编译glibc,成功
4。编译gcc,支持c和c++,出错,错误如下:

  /home/william/ARM_SDK/build/build-gcc/gcc/xgcc -B/home/william/ARM_SDK/build/build-gcc/gcc/ -B/opt/arm/arm-linux/bin/ -c -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -I. -I../../../../src/gcc-2.95.3/libio -nostdinc++ -D_IO_MTSAFE_IO  ../../../../src/gcc-2.95.3/libio/iostream.cc -o pic/iostream.o
/home/william/ARM_SDK/build/build-gcc/gcc/xgcc -B/home/william/ARM_SDK/build/build-gcc/gcc/ -B/opt/arm/arm-linux/bin/ -c -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -I. -I../../../../src/gcc-2.95.3/libio -nostdinc++ -D_IO_MTSAFE_IO ../../../../src/gcc-2.95.3/libio/iostream.cc
../../../../src/gcc-2.95.3/libio/iostream.cc: In method `class istream & istream::get(char &)':
../../../../src/gcc-2.95.3/libio/iostream.cc:75: implicit declaration of function `int _IO_cleanup_region_start(...)'
../../../../src/gcc-2.95.3/libio/iostream.cc:86: implicit declaration of function `int _IO_cleanup_region_end(...)'
make[1]: *** [iostream.o] Error 1
make[1]: Leaving directory `/mnt/disk1/home/william/ARM_SDK/build/build-gcc/arm-linux/libio'
make: *** [all-target-libio] Error 2

请问有人碰到过类似情况吗?
发表于 2007-3-13 09:21:40 | 显示全部楼层
Post by sartre
我用的是kernel-2.6.12+gcc-2.95.3+binutil-2.16+glibc-2.2.3,步骤如下:
1。编译bintuils,成功
2。编译boot-gcc,只编译c语言支持,成功
3。编译glibc,成功
4。编译gcc,支持c和c++,出错,错误如下:

/home/william/ARM_SDK/build/build-gcc/gcc/xgcc -B/home/william/ARM_SDK/build/build-gcc/gcc/ -B/opt/arm/arm-linux/bin/ -c -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -I. -I../../../../src/gcc-2.95.3/libio -nostdinc++ -D_IO_MTSAFE_IO ../../../../src/gcc-2.95.3/libio/iostream.cc -o pic/iostream.o
/home/william/ARM_SDK/build/build-gcc/gcc/xgcc -B/home/william/ARM_SDK/build/build-gcc/gcc/ -B/opt/arm/arm-linux/bin/ -c -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -I. -I../../../../src/gcc-2.95.3/libio -nostdinc++ -D_IO_MTSAFE_IO ../../../../src/gcc-2.95.3/libio/iostream.cc
../../../../src/gcc-2.95.3/libio/iostream.cc: In method `class istream & istream::get(char &)':
../../../../src/gcc-2.95.3/libio/iostream.cc:75: implicit declaration of function `int _IO_cleanup_region_start(...)'
../../../../src/gcc-2.95.3/libio/iostream.cc:86: implicit declaration of function `int _IO_cleanup_region_end(...)'
make[1]: *** [iostream.o] Error 1
make[1]: Leaving directory `/mnt/disk1/home/william/ARM_SDK/build/build-gcc/arm-linux/libio'
make: *** [all-target-libio] Error 2

请问有人碰到过类似情况吗?


两个函数隐式申明错误,找到两个函数,在调用之前申明一下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-13 10:46:59 | 显示全部楼层
Post by MyForever
两个函数隐式申明错误,找到两个函数,在调用之前申明一下

请问在哪里找?
回复 支持 反对

使用道具 举报

发表于 2007-3-13 11:09:38 | 显示全部楼层
2.95.3的交叉编译工具链网上有现成的,推荐直接下载。

ftp://ftp.arm.linux.org.uk/pub/armlinux/toolchain
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-13 11:19:51 | 显示全部楼层
Post by jarodwang
2.95.3的交叉编译工具链网上有现成的,推荐直接下载。

ftp://ftp.arm.linux.org.uk/pub/armlinux/toolchain

我想用2.6的内核,预编译的不都是用的2.4的头吗?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表