错误建设和从头开始的Vortex86DX GCC编译5.2.0 [英] Error building and compiling GCC 5.2.0 from scratch on Vortex86DX
问题描述
为了提升与 GCC 3.2.3
编译器VortexDX86定制的Linux,我正尝试建立了GCC 5.2.0编译器支持最新的C ++ 11标准的。
In order to upgrade a VortexDX86 custom linux with a gcc 3.2.3
compiler, I´m trying to built the GCC 5.2.0 compiler to support the latest C++ 11 standard.
我从 gcc.gnu.org 下载源$ C $ C,做标准的Linux程序包生成器根据此链接。
I have downloaded its source code from gcc.gnu.org and did the standard linux package builder based on this link.
$ mkdir ../gcc-build
$ cd ../gcc-build
$ ../gcc-5.2.0/configure --prefix=/usr --disable-multilib --with-system-zlib --enable-languages=c,c++
配置运行正常。在我做的:
The configuration runs fine. The I do:
$ make
和I'm收到以下错误:
And I´m getting the following error:
make[3]: Entering directory `/home/ftp/pub/gcc-5.2.0/host-i586-pc-linux-gnu/gcc'
g++ -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../.././gcc -I../.././gcc/build -I../.././gcc/../include -I../.././gcc/../libcpp/include \
-o build/genmddeps.o ../.././gcc/genmddeps.c
cc1plus: warning: -Wmissing-format-attribute ignored without -Wformat
In file included from ../../gcc/genmddeps.c:19:
../../gcc/system.h:201:19: string: No such file or directory
../../gcc/system.h:218:22: algorithm: No such file or directory
../../gcc/system.h:219:20: cstring: No such file or directory
../../gcc/system.h:220:20: utility: No such file or directory
../../gcc/system.h:249:19: cstdlib: No such file or directory
make[3]: *** [build/genmddeps.o] Error 1
make[3]: Leaving directory `/home/ftp/pub/gcc-5.2.0/host-i586-pc-linux-gnu/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/home/ftp/pub/gcc-5.2.0'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/ftp/pub/gcc-5.2.0'
make: *** [all] Error 2
的制作
程序将中止后。从来就安装了所有的依赖关系( TCL
,期望
,的DejaGnu
, perl的
, M4
, GMP
, MPFR
和 MPC
)和我不知道什么是失踪。
After that the make
procedure aborts. I´ve installed all the dependencies (tcl
, expect
, dejagnu
, perl
, m4
, gmp
, mpfr
and mpc
) and I don´t know what is missing.
至于说,原涡Linux有一个 GCC 3.2.3
编译器版本。
As said, the original Vortex linux has a gcc 3.2.3
compiler version.
我需要解决,但我不知道从哪里开始。它作用似乎有一个与自己的 GCC混乱
库....
I need to solve that but I don´t know where to start from. It seens to have confusion with the own gcc
libraries....
帮助AP preciated来解决。
Help appreciated to solve that.
推荐答案
您需要一个工作的C ++编译器来构建最近GCC版本中,你似乎不有(GCC的3.2.3似乎缺少C ++标准库头)。
You need a working C++ compiler to build recent releases of GCC, and you don't seem to have that (your GCC 3.2.3 seems to be missing the C++ standard library headers).
我建议你使用现有的编译器来构建GCC 4.7.4(仍然可以由C编译器待建)获得工作的C ++编译器。然后使用GCC 4.7.4构建GCC 5.2
I suggest that you use the existing compiler to build GCC 4.7.4 (which can still be built by a C compiler) to get a working C++ compiler. Then use GCC 4.7.4 to build GCC 5.2
这篇关于错误建设和从头开始的Vortex86DX GCC编译5.2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!