absolinux

Aller à la page : 1 2 3 suivante

Sujet : Compilation GCC-4.3.2
posté par Silvering7 18 messages     le  26-04-2009  à  14:55citer
Bonjour je suis à la compilation de gcc et j'ai un petit problème lors de la compil. Voici le message d'erreur:

configure: WARNING: Unrecognized options: --with-local-prefix, --disable-nls, --disable-libssp, --enable-languages, --disable-intermodule, --enable-checking, --disable-coverage, --enable-languages
make[3]: Entering directory `/sources/gcc-build/mpfr'
make[3]: *** No rule to make target `all'.  Stop.
make[3]: Leaving directory `/sources/gcc-build/mpfr'
make[2]: *** [all-stage1-mpfr] Error 2
make[2]: Leaving directory `/sources/gcc-build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/sources/gcc-build'
make: *** [all] Error 2

Pourtant j'ai bien extrait mpfr, placé son contenu dans gcc-4.3.2/mpfr pareil que pour gmp. Savez-vous d'où peut provenir l'erreur? Merci!
posté par Silvering7 18 messages     le  28-04-2009  à  18:36citer
Personne n'a une idée? Peut être la version de gcc, pourtant j'ai la 4.3.0 je crois.
posté par Texou 271 messages     le  28-04-2009  à  20:21citer
On est en cours de recherche. J'attends une intervention d'un autre lfsiste qui te dira. Patience :)

En attendant vérifie que tu as la version de gcc requise par le livre (sur ton hôte) et que tu compiles la bonne version (celle recomandée par le livre).

T'inquiète, tu en saura +

Bon courage a+
_______________________

Texou
Coadministrateur du projet absolinux
Président de l'association traduc.org
Coordinateur du projet Linux From Scratch
Coordinateur au sein du projet Trad GNU de l'April
Animateur suppléant du groupe de travail Accessibilité de l'April
posté par Silvering7 18 messages     le  28-04-2009  à  20:33citer
Ok, voici ce que m'indique mon système hôte pour gcc:

gcc:
  Installé : 4:4.0.3-1
  Candidat : 4:4.0.3-1
Table de version :
*** 4:4.0.3-1 0
        500 http://fr.archive.ubuntu.com dapper/main Packages
        100 /var/lib/dpkg/status

posté par boloco 85 messages     le  28-04-2009  à  22:15citer
bonjour, silvering7

Selon le warning que configure t'a renvoyé, la commande contiendrait quelque chose qu'il n'a pas aimé. Pourrais tu paster la commande que tu as utilisé ?
posté par Silvering7 18 messages     le  29-04-2009  à  15:37citer
Bonjour, alors je vous poste la majeure partie de ce que le "make" m'affiche. Vous retrouverez l'erreur à la fin:

make[6]: Leaving directory `/sources/gcc-build/gmp/tests/devel'
Making all in mpn
make[6]: Entering directory `/sources/gcc-build/gmp/tests/mpn'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/sources/gcc-build/gmp/tests/mpn'
Making all in mpz
make[6]: Entering directory `/sources/gcc-build/gmp/tests/mpz'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/sources/gcc-build/gmp/tests/mpz'
Making all in mpq
make[6]: Entering directory `/sources/gcc-build/gmp/tests/mpq'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/sources/gcc-build/gmp/tests/mpq'
Making all in mpf
make[6]: Entering directory `/sources/gcc-build/gmp/tests/mpf'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/sources/gcc-build/gmp/tests/mpf'
Making all in rand
make[6]: Entering directory `/sources/gcc-build/gmp/tests/rand'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/sources/gcc-build/gmp/tests/rand'
Making all in misc
make[6]: Entering directory `/sources/gcc-build/gmp/tests/misc'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/sources/gcc-build/gmp/tests/misc'
Making all in cxx
make[6]: Entering directory `/sources/gcc-build/gmp/tests/cxx'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/sources/gcc-build/gmp/tests/cxx'
Making all in mpbsd
make[6]: Entering directory `/sources/gcc-build/gmp/tests/mpbsd'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/sources/gcc-build/gmp/tests/mpbsd'
make[5]: Leaving directory `/sources/gcc-build/gmp/tests'
Making all in mpn
make[5]: Entering directory `/sources/gcc-build/gmp/mpn'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/sources/gcc-build/gmp/mpn'
Making all in mpz
make[5]: Entering directory `/sources/gcc-build/gmp/mpz'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/sources/gcc-build/gmp/mpz'
Making all in mpq
make[5]: Entering directory `/sources/gcc-build/gmp/mpq'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/sources/gcc-build/gmp/mpq'
Making all in mpf
make[5]: Entering directory `/sources/gcc-build/gmp/mpf'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/sources/gcc-build/gmp/mpf'
Making all in printf
make[5]: Entering directory `/sources/gcc-build/gmp/printf'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/sources/gcc-build/gmp/printf'
Making all in scanf
make[5]: Entering directory `/sources/gcc-build/gmp/scanf'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/sources/gcc-build/gmp/scanf'
Making all in cxx
make[5]: Entering directory `/sources/gcc-build/gmp/cxx'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/sources/gcc-build/gmp/cxx'
Making all in mpbsd
make[5]: Entering directory `/sources/gcc-build/gmp/mpbsd'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/sources/gcc-build/gmp/mpbsd'
Making all in demos
make[5]: Entering directory `/sources/gcc-build/gmp/demos'
Making all in calc
make[6]: Entering directory `/sources/gcc-build/gmp/demos/calc'
make  all-am
make[7]: Entering directory `/sources/gcc-build/gmp/demos/calc'
make[7]: Nothing to be done for `all-am'.
make[7]: Leaving directory `/sources/gcc-build/gmp/demos/calc'
make[6]: Leaving directory `/sources/gcc-build/gmp/demos/calc'
Making all in expr
make[6]: Entering directory `/sources/gcc-build/gmp/demos/expr'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/sources/gcc-build/gmp/demos/expr'
make[6]: Entering directory `/sources/gcc-build/gmp/demos'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/sources/gcc-build/gmp/demos'
make[5]: Leaving directory `/sources/gcc-build/gmp/demos'
Making all in tune
make[5]: Entering directory `/sources/gcc-build/gmp/tune'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/sources/gcc-build/gmp/tune'
Making all in doc
make[5]: Entering directory `/sources/gcc-build/gmp/doc'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/sources/gcc-build/gmp/doc'
make[5]: Entering directory `/sources/gcc-build/gmp'
make[5]: Leaving directory `/sources/gcc-build/gmp'
make[4]: Leaving directory `/sources/gcc-build/gmp'
make[3]: Leaving directory `/sources/gcc-build/gmp'
make[3]: Entering directory `/sources/gcc-build/intl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/sources/gcc-build/intl'
Configuring stage 1 in ./mpfr
configure: WARNING: Unrecognized options: --with-local-prefix, --disable-nls, --                                                                                                                              disable-libssp, --enable-languages, --disable-intermodule, --enable-checking, --                                                                                                                              disable-coverage, --enable-languages
configure: loading cache ./config.cache
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) gawk
checking whether make sets $(MAKE)... (cached) yes
checking for none-pc-linux-gnu-strip... (cached) strip
checking whether to disable maintainer-specific portions of Makefiles... yes
checking build system type... (cached) i686-pc-linux-gnu
checking host system type... (cached) none-pc-linux-gnu
checking for none-pc-linux-gnu-gcc... (cached) gcc -B/usr/bin/
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc -B/usr/bin/ accepts -g... (cached) yes
checking for gcc -B/usr/bin/ option to accept ISO C89... (cached) none needed
checking for style of include used by make... GNU
checking dependency style of gcc -B/usr/bin/... (cached) gcc3
checking for ICC... no
checking for function prototypes... yes
checking how to run the C preprocessor... (cached) gcc -B/usr/bin/ -E
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for egrep... (cached) /bin/grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for string.h... (cached) yes
checking for an ANSI C-conforming const... (cached) yes
checking for working volatile... (cached) yes
checking for main in -lm... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for limits.h... (cached) yes
checking for float.h... (cached) yes
checking for locale.h... (cached) yes
checking for string.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/fpu.h... (cached) no
checking for memmove... (cached) yes
checking for memset... (cached) yes
checking for setlocale... (cached) yes
checking for strtol... (cached) yes
checking for gettimeofday... (cached) yes
checking for union fpc_csr... (cached) no
checking for fesetround... (cached) yes
checking for gcc float-conversion bug... (cached) cannot test, use -ffloat-store
checking for denormalized numbers... (cached) no
checking if NAN == NAN... (cached) cannot test, assume no
checking if charset has consecutive values... can not test
checking for math/round... no
checking for math/trunc... no
checking for math/floor... yes
checking for math/ceil... yes
checking for math/rint... no
checking for long double... (cached) yes
checking format of `long double' floating point... (cached)
configure: WARNING: oops, unrecognised float format:
checking for gmp.h... yes
checking for a sed that does not truncate output... (cached) /bin/sed
checking for ld used by gcc -B/usr/bin/... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) nm
checking whether ln -s works... yes
checking how to recognize dependent libraries... (cached) pass_all
checking for dlfcn.h... (cached) yes
checking how to run the C++ preprocessor... (cached) g++ -E
checking the maximum length of command line arguments... (cached) 98304
checking command to parse nm output from gcc -B/usr/bin/ object... (cached) ok
checking for objdir... (cached) .libs
checking for none-pc-linux-gnu-ar... (cached) ar
checking for none-pc-linux-gnu-ranlib... (cached) ranlib
checking for none-pc-linux-gnu-strip... (cached) strip
checking if gcc -B/usr/bin/ supports -fno-rtti -fno-exceptions... (cached) no
checking for gcc -B/usr/bin/ option to produce PIC... -fPIC
checking if gcc -B/usr/bin/ PIC flag -fPIC works... (cached) yes
checking if gcc -B/usr/bin/ static flag -static works... (cached) yes
checking if gcc -B/usr/bin/ supports -c -o file.o... (cached) yes
checking whether the gcc -B/usr/bin/ linker (/usr/bin/ld) supports shared librar                                                                                                                              ies... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immedi                                                                                                                              ate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
configure: creating libtool
checking whether gcc __attribute__ ((mode (XX))) works... (cached) yes
checking for recent GMP... yes
checking for gmp internal files... no
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for __gmpz_init in -lgmp... (cached) yes
checking if gmp.h version and libgmp version are the same... can not test
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tests/Makefile
config.status: creating mparam.h
config.status: executing depfiles commands
configure: WARNING: Unrecognized options: --with-local-prefix, --disable-nls, --                                                                                                                              disable-libssp, --enable-languages, --disable-intermodule, --enable-checking, --                                                                                                                              disable-coverage, --enable-languages
make[3]: Entering directory `/sources/gcc-build/mpfr'
make[3]: *** No rule to make target `all'.  Stop.
make[3]: Leaving directory `/sources/gcc-build/mpfr'
make[2]: *** [all-stage1-mpfr] Error 2
make[2]: Leaving directory `/sources/gcc-build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/sources/gcc-build'
make: *** [all] Error 2
lfs@ubuntu-server:/sources/gcc-build$

posté par boloco 85 messages     le  29-04-2009  à  19:27citer
bonjourn silvering7

je me suis mal expliqué sans doute. avant de taper "make", tu as sans doute utilisé la commande ../gcc-4.3.2/configure --prefix=... etc, etc.
le plus instructif serait de savoir ce que tu as exactement tapé pour cette commande (peux-tu la copier et coller ici ?), ainsi que la sortie générée par cette commande.
bon courage, a+
posté par Silvering7 18 messages     le  29-04-2009  à  20:08citer
Ah pardon:

lfs@ubuntu-server:/sources/gcc-build$ CC="gcc -B/usr/bin/" ../gcc-4.3.2/configure --prefix=/tools      --with-local-prefix=/tools --disable-nls --disable-shared --disable-libssp      --enable-languages=c    checking build system type... i686-pc-linux-gnuls --disable-nls --disable-shared                                                                                                                              checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc -B/usr/bin/
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -B/usr/bin/ accepts -g... yes
checking for gcc -B/usr/bin/ option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
*** This configuration is not supported in the following subdirectories:
    target-libada gnattools target-libstdc++-v3 target-libgfortran target-libffi target-zlib target-libjava zlib target-libobjc target-libssp target-boehm-gc
    (Any other directories should still work fine.)
*** removing intl/Makefile to force reconfigure
*** removing libiberty/Makefile to force reconfigure
*** removing gmp/Makefile to force reconfigure
*** removing mpfr/Makefile to force reconfigure
*** removing gcc/Makefile to force reconfigure
checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... no
checking for lex... no
checking for flex... no
checking for makeinfo... makeinfo
checking for expect... no
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... (cached) /usr/bin/ld
checking for lipo... no
checking for nm... nm
checking for ranlib... ranlib
checking for strip... strip
checking for windres... no
checking for windmc... no
checking for objcopy... objcopy
checking for objdump... objdump
checking for cc... cc
checking for c++... c++
checking for gcc... gcc
checking for gcj... no
checking for gfortran... no
checking for ar... /tools/i686-pc-linux-gnu/bin/ar
checking for as... /tools/i686-pc-linux-gnu/bin/as
checking for dlltool... no
checking for dlltool... no
checking for ld... /tools/i686-pc-linux-gnu/bin/ld
checking for lipo... no
checking for lipo... no
checking for nm... /tools/i686-pc-linux-gnu/bin/nm
checking for objdump... /tools/i686-pc-linux-gnu/bin/objdump
checking for ranlib... /tools/i686-pc-linux-gnu/bin/ranlib
checking for strip... /tools/i686-pc-linux-gnu/bin/strip
checking for windres... no
checking for windres... no
checking for windmc... no
checking for windmc... no
checking where to find the target ar... pre-installed in /tools/i686-pc-linux-gnu/bin
checking where to find the target as... pre-installed in /tools/i686-pc-linux-gnu/bin
checking where to find the target cc... just compiled
checking where to find the target c++... host tool
checking where to find the target c++ for libstdc++... host tool
checking where to find the target dlltool... host tool
checking where to find the target gcc... just compiled
checking where to find the target gcj... host tool
checking where to find the target gfortran... host tool
checking where to find the target ld... pre-installed in /tools/i686-pc-linux-gnu/bin
checking where to find the target lipo... host tool
checking where to find the target nm... pre-installed in /tools/i686-pc-linux-gnu/bin
checking where to find the target objdump... pre-installed in /tools/i686-pc-linux-gnu/bin
checking where to find the target ranlib... pre-installed in /tools/i686-pc-linux-gnu/bin
checking where to find the target strip... pre-installed in /tools/i686-pc-linux-gnu/bin
checking where to find the target windres... host tool
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile

posté par boloco 85 messages     le  29-04-2009  à  20:43citer
silvering7,
dès le début, la sortie de configure ne va pas:
checking build system type... i686-pc-linux-gnuls --disable-nls --disable-shared
je pense que tu as mal tapé la commande au départ. Il vaut mieux supprimer le répertoire gcc-build, puis recommencer gcc.
bon courage :)
posté par Silvering7 18 messages     le  30-04-2009  à  20:06citer
Bonjour! J'ai recommencé la manip et voici ce que j'obtiens:

http://digitalblend.fr/capture.png


Aller à la page : 1 2 3 suivante

http://med4treat.top