p
u
b
l
i
c
i
t
é
publicité
  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 : Sélectionner tout - Visualiser dans une fenêtre à part
    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 102
    Points
    13 102

    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.

Discussions similaires

  1. mise a jour dynamique de sous formulaire
    Par xargin dans le forum VBA Access
    Réponses: 5
    Dernier message: 17/11/2011, 10h46
  2. mise a jour dynamique de sous formulaire
    Par xargin dans le forum IHM
    Réponses: 0
    Dernier message: 03/11/2011, 14h46
  3. Réponses: 1
    Dernier message: 03/09/2011, 14h01
  4. Mise à jour du noyau sous Debian 3.1
    Par byloute dans le forum Administration système
    Réponses: 2
    Dernier message: 01/12/2005, 13h26
  5. mise a jours des données sous access
    Par puyopuyo dans le forum ASP
    Réponses: 4
    Dernier message: 25/05/2004, 12h46

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo