+ Répondre à la discussion
Affichage des résultats 1 à 3 sur 3
  1. #1
    Membre expérimenté
    Inscrit en
    juillet 2006
    Messages
    534
    Détails du profil
    Informations forums :
    Inscription : juillet 2006
    Messages : 534
    Points : 530
    Points
    530

    Par défaut ơCygwin]Mise a jour de GCC sous Cygwin (Windows 7)

    Bonjour,

    J'ai essayé de mettre à jour Gcc/G++ sous Cygwin en suivant les étapes suivantes:
    1) Télécharger la dernière version de Cygwin
    2) Installer Cygwin avec tous les outils nécessaires pour la compilation du nouveau GCC.
    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    Package            Version        
    bash                  4.1.10-4
    binutils              2.21.53-1
    bzip2                 1.0.6-2
    cygwin                1.7.9-1
    gcc-core              3.4.4-999
    gcc-g++               3.4.4-999
    gzip                  1.4-1  
    m4                    1.4.16-1
    make                  3.81-2
    unzip                 6.0-10
    zip                   3.0-11
    L'installation de Cygwin dans /opt/cygwin
    3) Télécharger la dernière version de GMP, MPFR, MPC
    4) unzip ces gmp-xx.zip, mpfr-xx.zip, mpc-xx.zip dán /us/local/contrib/
    5) Installer GMP, MPFR, MPC en suivant les étapes pour chaque package
    ./configure
    make
    make check
    make íntall

    6) Unzip le contenue gcc-xx.zip dans /usr/local/contrib
    7) Creer le répertoire /usr/local/contrib/build
    8) Se mettre dans /usr/local/contrib/build
    9) Éxécuter ../gcc-*/configure --enable-languages=c,c++
    10) Éxécuter make comme suit
    make 2>&1 | tee ggcmake.log

    Et j'ai des erreurs suivantes dans le fichier log (extrait de la fin)

    Configuring stage 2 in ./gcc
    /usr/local/contrib/build/./prev-gcc/xgcc -B/usr/local/contrib/build/./prev-gcc/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/ -isystem /usr/local/i686-pc-cygwin/include -isystem /usr/local/i686-pc-cygwin/sys-include -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -g -O2 -gtoggle -W -Wall -Wwrite-strings -Wmissing-format-attribute -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wc++-compat -pedantic -Wno-long-long -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -c -o mkdeps.o -MT mkdeps.o -MMD -MP -MF .deps/mkdeps.Tpo ../../gcc-4.6.0/libcpp/mkdeps.c
    configure: loading cache ./config.cache
    configure: error: `CC' has changed since the previous run:
    configure: former value: `gcc'
    configure: current value: ` /usr/local/contrib/build/./prev-gcc/xgcc -B/usr/local/contrib/build/./prev-gcc/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/ -isystem /usr/local/i686-pc-cygwin/include -isystem /usr/local/i686-pc-cygwin/sys-include '
    configure: error: `CFLAGS' has changed since the previous run:
    configure: former value: `-g -fkeep-inline-functions'
    configure: current value: `-g -O2 -gtoggle'
    configure: error: `LDFLAGS' has changed since the previous run:
    configure: former value: ` -Wl,--stack,12582912'
    configure: current value: `-static-libstdc++ -static-libgcc -Wl,--stack,12582912'
    configure: error: in `/usr/local/contrib/build/gcc':
    configure: error: changes in the environment can compromise the build
    configure: error: run `make distclean' and/or `rm ./config.cache' and start over
    make[2]: *** [configure-stage2-gcc] Error 1
    /usr/local/contrib/build/./prev-gcc/xgcc -B/usr/local/contrib/build/./prev-gcc/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/ -isystem /usr/local/i686-pc-cygwin/include -isystem /usr/local/i686-pc-cygwin/sys-include -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -g -O2 -gtoggle -W -Wall -Wwrite-strings -Wmissing-format-attribute -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wc++-compat -pedantic -Wno-long-long -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -c -o pch.o -MT pch.o -MMD -MP -MF .deps/pch.Tpo ../../gcc-4.6.0/libcpp/pch.c
    make[2]: *** Waiting for unfinished jobs....
    /usr/local/contrib/build/./prev-gcc/xgcc -B/usr/local/contrib/build/./prev-gcc/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/ -isystem /usr/local/i686-pc-cygwin/include -isystem /usr/local/i686-pc-cygwin/sys-include -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -g -O2 -gtoggle -W -Wall -Wwrite-strings -Wmissing-format-attribute -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wc++-compat -pedantic -Wno-long-long -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -c -o symtab.o -MT symtab.o -MMD -MP -MF .deps/symtab.Tpo ../../gcc-4.6.0/libcpp/symtab.c
    /usr/local/contrib/build/./prev-gcc/xgcc -B/usr/local/contrib/build/./prev-gcc/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/ -isystem /usr/local/i686-pc-cygwin/include -isystem /usr/local/i686-pc-cygwin/sys-include -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -g -O2 -gtoggle -W -Wall -Wwrite-strings -Wmissing-format-attribute -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wc++-compat -pedantic -Wno-long-long -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -c -o traditional.o -MT traditional.o -MMD -MP -MF .deps/traditional.Tpo ../../gcc-4.6.0/libcpp/traditional.c
    /usr/local/contrib/build/./prev-gcc/xgcc -B/usr/local/contrib/build/./prev-gcc/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/ -isystem /usr/local/i686-pc-cygwin/include -isystem /usr/local/i686-pc-cygwin/sys-include -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -g -O2 -gtoggle -W -Wall -Wwrite-strings -Wmissing-format-attribute -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wc++-compat -pedantic -Wno-long-long -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -c -o charset.o -MT charset.o -MMD -MP -MF .deps/charset.Tpo ../../gcc-4.6.0/libcpp/charset.c
    /usr/local/contrib/build/./prev-gcc/xgcc -B/usr/local/contrib/build/./prev-gcc/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/ -isystem /usr/local/i686-pc-cygwin/include -isystem /usr/local/i686-pc-cygwin/sys-include -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -g -O2 -gtoggle -W -Wall -Wwrite-strings -Wmissing-format-attribute -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wc++-compat -pedantic -Wno-long-long -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -c -o directives.o -MT directives.o -MMD -MP -MF .deps/directives.Tpo ../../gcc-4.6.0/libcpp/directives.c
    /usr/local/contrib/build/./prev-gcc/xgcc -B/usr/local/contrib/build/./prev-gcc/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/ -isystem /usr/local/i686-pc-cygwin/include -isystem /usr/local/i686-pc-cygwin/sys-include -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -g -O2 -gtoggle -W -Wall -Wwrite-strings -Wmissing-format-attribute -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wc++-compat -pedantic -Wno-long-long -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -c -o directives-only.o -MT directives-only.o -MMD -MP -MF .deps/directives-only.Tpo ../../gcc-4.6.0/libcpp/directives-only.c
    /usr/local/contrib/build/./prev-gcc/xgcc -B/usr/local/contrib/build/./prev-gcc/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/ -isystem /usr/local/i686-pc-cygwin/include -isystem /usr/local/i686-pc-cygwin/sys-include -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -g -O2 -gtoggle -W -Wall -Wwrite-strings -Wmissing-format-attribute -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wc++-compat -pedantic -Wno-long-long -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -c -o errors.o -MT errors.o -MMD -MP -MF .deps/errors.Tpo ../../gcc-4.6.0/libcpp/errors.c
    /usr/local/contrib/build/./prev-gcc/xgcc -B/usr/local/contrib/build/./prev-gcc/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/ -isystem /usr/local/i686-pc-cygwin/include -isystem /usr/local/i686-pc-cygwin/sys-include -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -g -O2 -gtoggle -W -Wall -Wwrite-strings -Wmissing-format-attribute -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wc++-compat -pedantic -Wno-long-long -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -c -o expr.o -MT expr.o -MMD -MP -MF .deps/expr.Tpo ../../gcc-4.6.0/libcpp/expr.c
    /usr/local/contrib/build/./prev-gcc/xgcc -B/usr/local/contrib/build/./prev-gcc/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/ -isystem /usr/local/i686-pc-cygwin/include -isystem /usr/local/i686-pc-cygwin/sys-include -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -g -O2 -gtoggle -W -Wall -Wwrite-strings -Wmissing-format-attribute -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wc++-compat -pedantic -Wno-long-long -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -c -o files.o -MT files.o -MMD -MP -MF .deps/files.Tpo ../../gcc-4.6.0/libcpp/files.c
    /usr/local/contrib/build/./prev-gcc/xgcc -B/usr/local/contrib/build/./prev-gcc/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/ -isystem /usr/local/i686-pc-cygwin/include -isystem /usr/local/i686-pc-cygwin/sys-include -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -g -O2 -gtoggle -W -Wall -Wwrite-strings -Wmissing-format-attribute -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wc++-compat -pedantic -Wno-long-long -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -c -o identifiers.o -MT identifiers.o -MMD -MP -MF .deps/identifiers.Tpo ../../gcc-4.6.0/libcpp/identifiers.c
    /usr/local/contrib/build/./prev-gcc/xgcc -B/usr/local/contrib/build/./prev-gcc/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/ -isystem /usr/local/i686-pc-cygwin/include -isystem /usr/local/i686-pc-cygwin/sys-include -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -g -O2 -gtoggle -W -Wall -Wwrite-strings -Wmissing-format-attribute -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wc++-compat -pedantic -Wno-long-long -I../../gcc-4.6.0/libcpp -I. -I../../gcc-4.6.0/libcpp/../include -I../../gcc-4.6.0/libcpp/include -c -o init.o -MT init.o -MMD -MP -MF .deps/init.Tpo ../../gcc-4.6.0/libcpp/init.c
    rm -f libcpp.a
    ar cru libcpp.a charset.o directives.o directives-only.o errors.o expr.o files.o identifiers.o init.o lex.o line-map.o macro.o mkdeps.o pch.o symtab.o traditional.o
    ranlib libcpp.a
    make[3]: Leaving directory `/usr/local/contrib/build/libcpp'
    make[2]: Leaving directory `/usr/local/contrib/build'
    make[1]: *** [stage2-bubble] Error 2
    make[1]: Leaving directory `/usr/local/contrib/build'
    make: *** [all] Error 2
    J'ai essayé de fixer ce problème mais je ne sais pas comment.

    Avez-vous une idée?

    Merci d'avance

  2. #2
    Rédacteur/Modérateur

    Avatar de 3DArchi
    Inscrit en
    juin 2008
    Messages
    7 636
    Détails du profil
    Informations forums :
    Inscription : juin 2008
    Messages : 7 636
    Points : 13 095
    Points
    13 095

    Par défaut

    Salut,
    Cela risque de ne pas vraiment répondre à ton problème mais il existe un tutoriel pour compiler GCC à partir de MinGW.
    Si ton objectif est de compiler GCC et peu importe de passer par Cygwin, cela peut suffire.

  3. #3
    Membre expérimenté
    Inscrit en
    juillet 2006
    Messages
    534
    Détails du profil
    Informations forums :
    Inscription : juillet 2006
    Messages : 534
    Points : 530
    Points
    530

    Par défaut

    Merci de ton aide.
    Comme cygwin vient de mettre a jour gcc je n'ai pas besoin de compiler GCC pour cygwin.

    En passant j'ai compile et ca dure plus de 36 heures et ca ne repond plus. Comme je n'ai le temps de creuser (peut-etre plus tard) j'ai fait la mis a jour de gcc, gcc+ avec cygwin.


    Merci

+ Répondre à la discussion
Cette discussion est résolue.

Liens sociaux

Règles de messages

  • Vous ne pouvez pas créer de nouvelles discussions
  • Vous ne pouvez pas envoyer des réponses
  • Vous ne pouvez pas envoyer des pièces jointes
  • Vous ne pouvez pas modifier vos messages
  •