我正在尝试在由Marvell Kirkwood mv6281 ARM处理器驱动的synology DS109 NAS磁盘上编译GCC。
它目前正在运行相当过时的GCC 4.2.3,这是我在二进制文件中找到的最新版本。
我在make
阶段尝试了GCC 4.7.1和4.6.3,结果相同:
build/genflags.o build/rtl.o build/read-rtl.o build/ggc-none.o build/vec.o
build/min-insn-modes.o build/gensupport.o build/print-rtl.o build/read-md.o
build/errors.o ../build-armv5tel-unknown-linux-gnueabi/libiberty/libiberty.a
build/rtl.o: In function `rtvec_alloc':
/volume1/public/gcc-4.6.3/build/gcc/../../gcc-4.6.3/gcc/rtl.c:153: undefined reference
to `ggc_alloc_zone_vec_rtvec_def'
collect2: ld returned 1 exit status
make[3]: *** [build/genflags] Error 1
make[3]: Leaving directory `/volume1/public/gcc-4.6.3/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/volume1/public/gcc-4.6.3/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/volume1/public/gcc-4.6.3/build'
make: *** [all] Error 2
配置被破坏通常只抱怨丢失tr
但没有给出任何错误。
我正在使用gcc和gcc建立dependecies(gmp& comp。),使用由GCC下载的download_prerequisities脚本下载的vesions。
我也尝试了v4.5.4但没有运气但错误信息不同:
gcc -c -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.5.4/gcc -I../../gcc-4.5.4/gcc/. -I../../gcc-4.5.4/gcc/../include -I../../gcc-4.5.4/gcc/../libcpp/include -I/volume1/public/gcc-4.5.4/build/./gmp -I/volume1/public/gcc-4.5.4/gcc-4.5.4/gmp -I/volume1/public/gcc-4.5.4/build/./mpfr -I/volume1/public/gcc-4.5.4/gcc-4.5.4/mpfr -I/volume1/public/gcc-4.5.4/gcc-4.5.4/mpc/src -I../../gcc-4.5.4/gcc/../libdecnumber -I../../gcc-4.5.4/gcc/../libdecnumber/dpd -I../libdecnumber ../../gcc-4.5.4/gcc/c-lang.c -o c-lang.o
../../gcc-4.5.4/gcc/c-lang.c:58:21: error: gtype-c.h: No such file or directory
make[3]: *** [c-lang.o] Error 1
make[3]: Leaving directory `/volume1/public/gcc-4.5.4/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/volume1/public/gcc-4.5.4/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/volume1/public/gcc-4.5.4/build'
make: *** [all] Error 2
任何人都可以告诉我一些我应该尝试的线索吗?