gcc 5.2.0编译错误
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for long long int... yes
checking for intmax_t... yes
checking for intptr_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for unsigned long long int... yes
checking for uintmax_t... yes
checking for uintptr_t... yes
checking for int64_t underlying type... long long
configure: error: error verifying int64_t uses long long
make[2]: *** [configure-stage1-gcc] Error 1
make[2]: Leaving directory `/home/sjarvis/dev/gcc/srcdir'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/sjarvis/dev/gcc/srcdir'
make: *** [all] Error 2
错误是因为没有装g++ 导致,安装g++可解决
g++ -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -o build/genmddeps \
build/genmddeps.o build/read-md.o build/errors.o ../build-x86_64-unknown-linux-gnu/libiberty/libiberty.a
/tools/bin/ld: this linker was not configured to use sysroots
collect2: error: ld returned 1 exit status
make[3]: *** [build/genmddeps] Error 1
make[3]: Leaving directory `/opt/mylinux/build/gcc-build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/opt/mylinux/build/gcc-build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/opt/mylinux/build/gcc-build'
make: *** [bootstrap] Error 2
编译binutils时,configure参数没有指定--with-sysroot=XXX(你要存放使用的目录)导致,重新编译安装binutils