编译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
请问有人碰到过类似情况吗? 我是用crosstools编译的 好像你的gcc-2.95.3需要打补丁 gcc版本太老
页:
[1]