make CXX=g++-3.4et avec le g++ 4 récent par
make CXX=g++-4.2(mais n'oublie pas de faire un make clean entre les deux).
WARNING: `makeinfo' is missing on your system. You should only need it if you modified a `.texi' or `.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy `make' (AIX, DU, IRIX). You might want to install the `Texinfo' package or the `GNU make' package. Grab either from any GNU archive site. make[3]: *** [fastjar.info] Error 1 make[3]: Leaving directory `/usr/local/tmp/gcc-4.1.0/host-i686-pc-linux-gnu/fastjar' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/local/tmp/gcc-4.1.0/host-i686-pc-linux-gnu/fastjar' make[1]: *** [all-fastjar] Error 2 make[1]: *** Waiting for unfinished jobs.... gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I../.././fixincludes -I../include -I../.././fixincludes/../include ../.././fixincludes/fixtests.c In file included from ../.././fixincludes/fixincl.c:101: ../.././fixincludes/fixincl.x:76: warning: string length `4662' is greater than the length `509' ISO C89 compilers are required to support ../.././fixincludes/fixincl.x:224: warning: string length `552' is greater than the length `509' ISO C89 compilers are required to support ../.././fixincludes/fixincl.x:269: warning: string length `532' is greater than the length `509' ISO C89 compilers are required to support ../.././fixincludes/fixincl.x:313: warning: string length `808' is greater than the length `509' ISO C89 compilers are required to support ../.././fixincludes/fixincl.x:399: warning: string length `5139' is greater than the length `509' ISO C89 compilers are required to support ../.././fixincludes/fixincl.x:2419: warning: string length `729' is greater than the length `509' ISO C89 compilers are required to support ../.././fixincludes/fixincl.x:7223: warning: string length `575' is greater than the length `509' ISO C89 compilers are required to support gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I../.././fixincludes -I../include -I../.././fixincludes/../include ../.././fixincludes/fixfixes.c gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I../.././fixincludes -I../include -I../.././fixincludes/../include ../.././fixincludes/server.c gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I../.././fixincludes -I../include -I../.././fixincludes/../include ../.././fixincludes/procopen.c gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I../.././fixincludes -I../include -I../.././fixincludes/../include ../.././fixincludes/fixlib.c gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I../.././fixincludes -I../include -I../.././fixincludes/../include ../.././fixincludes/fixopts.c srcdir="../.././fixincludes" /bin/sh ../.././fixincludes/mkfixinc.sh i686-pc-linux-gnu sed -e 's/@gcc_version@/4.1.0/' < mkheaders.almost > mkheadersT mv -f mkheadersT mkheaders gcc -g -O2 -o fixincl fixincl.o fixtests.o fixfixes.o server.o procopen.o fixlib.o fixopts.o ../libiberty/libiberty.a echo timestamp > full-stamp make[2]: Leaving directory `/usr/local/tmp/gcc-4.1.0/host-i686-pc-linux-gnu/fixincludes' make[1]: Leaving directory `/usr/local/tmp/gcc-4.1.0' make: *** [all] Error 2
oui par l'option --enable-languages=c,c++ à configure.Citation
thefakir
Mais peut il est possible de lui dire de pas forcement tout compiler, typiquement java ou Ada j'en ai pas besoin.
tar xzvf gcc-4.1.1.tar.gz mkdir _GccBuild cd _GccBuild ../gcc-4.1.1/configure --disable-multlib --enable-languages=c,c++ --program-suffix=-4.1 make -j3 bootstrap
make[2]: Entering directory `/usr/local/tmp/_GccBuild/gcc' make[2]: *** No rule to make target `../../build-i686-pc-linux-gnu/libiberty/libiberty.a', needed by `build/genmodes'. Stop. make[2]: Leaving directory `/usr/local/tmp/_GccBuild/gcc' make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory `/usr/local/tmp/_GccBuild' make: *** [all] Error 2
Citation
thefakir
arghh!!! Ce veut pas, ca veut pas....
tar xzvf gcc-4.1.0.tar.gz mkdir _GccBuild cd _GccBuild ../gcc-4.1.1/configure --enable-languages=c,c++ --program-suffix=-4.1 makeTu peux voir l'integralité de la compilation: [bewie.org]