sartre 发表于 2007-3-12 18:31:06

编译cross toolchain的错误

我用的是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: *** Error 1
make: Leaving directory `/mnt/disk1/home/william/ARM_SDK/build/build-gcc/arm-linux/libio'
make: *** Error 2

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

roly 发表于 2007-4-19 11:44:05

我是用crosstools编译的

fycfy000 发表于 2007-6-1 12:19:42

好像你的gcc-2.95.3需要打补丁

gaocheng 发表于 2007-6-11 15:29:34

gcc版本太老
页: [1]
查看完整版本: 编译cross toolchain的错误