Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 27/12/2015, à 16:00

Arnold59

[Linux Ubuntu 15.10] Problème gcc / g++ : impossible de compiler ...

Sous Linux Ubuntu 15.10, je rencontre le même conflit ??

1) Vérification de la version Gcc
gcc -v

gcc -v
Utilisation des specs internes.
COLLECT_GCC=gcc
Target: i686-pc-linux-gnu
Configuré avec: ./configure
Modèle de thread: posix
gcc version 4.8.2 (GCC)

2) Gestionnaire de paquets Synaptic
Plusieurs versions de  GCC sont pourtant installées :  4.93 et 5.2.1

3) Versions de GCC et G++
dpkg -l | grep gcc

dpkg -l | grep gcc 
ii  gcc                                                 4:5.2.1-3ubuntu1                           i386         GNU C compiler
ii  gcc-4.7-base:i386                                   4.7.4-3ubuntu3                             i386         GCC, the GNU Compiler Collection (base package)
ii  gcc-4.8-base:i386                                   4.8.5-1ubuntu1                             i386         GCC, the GNU Compiler Collection (base package)
ii  gcc-4.9                                             4.9.3-5ubuntu1                             i386         GNU C compiler
ii  gcc-4.9-base:i386                                   4.9.3-5ubuntu1                             i386         GCC, the GNU Compiler Collection (base package)
ii  gcc-4.9-locales                                     4.9.3-5ubuntu1                             all          GCC, the GNU compiler collection (native language support files)
ii  gcc-5                                               5.2.1-22ubuntu2                            i386         GNU C compiler
ii  gcc-5-base:i386                                     5.2.1-22ubuntu2                            i386         GCC, the GNU Compiler Collection (base package)
ii  gir1.2-packagekitglib-1.0                           0.8.17-4ubuntu6~gcc5.3                     i386         GObject introspection data for the PackageKit GLib library
ii  gir1.2-zeitgeist-2.0                                0.9.16-0ubuntu3~gcc5.1                     i386         library to access Zeitgeist - GObject introspection data
ii  gstreamer0.10-gconf:i386                            0.10.31-3+nmu4ubuntu2~gcc5.1               i386         GStreamer plugin for getting the sink/source information from GConf
ii  gstreamer0.10-plugins-good:i386                     0.10.31-3+nmu4ubuntu2~gcc5.1               i386         GStreamer plugins from the "good" set
ii  gstreamer0.10-pulseaudio:i386                       0.10.31-3+nmu4ubuntu2~gcc5.1               i386         GStreamer plugin for PulseAudio
ii  libaccounts-qt5-1:i386                              1.13+14.10.20140819.1-0ubuntu4~gcc5.1      i386         QT library for single sign on
ii  libcaca0:i386                                       0.99.beta19-2build2~gcc5.1                 i386         colour ASCII art library
ii  libcairomm-1.0-1v5:i386                             1.11.2-0ubuntu3~gcc5                       i386         C++ wrappers for Cairo (shared libraries)
ii  libgcc-4.9-dev:i386                                 4.9.3-5ubuntu1                             i386         GCC support library (development files)
ii  libgcc-5-dev:i386                                   5.2.1-22ubuntu2                            i386         GCC support library (development files)
ii  libgcc1:i386                                        1:5.2.1-22ubuntu2                          i386         GCC support library
ii  libgsettings-qt1:i386                               0.1+14.10.20140807-0ubuntu6~gcc5.1         i386         Library to access GSettings from Qt
ii  libpackagekit-glib2-16:i386                         0.8.17-4ubuntu6~gcc5.3                     i386         Library for accessing PackageKit using GLib
ii  libproxy-tools                                      0.4.11-4ubuntu3~gcc5.3                     i386         automatic proxy configuration management library (tools)
ii  libproxy1-plugin-gsettings:i386                     0.4.11-4ubuntu3~gcc5.3                     i386         automatic proxy configuration management library (GSettings plugin)
ii  libproxy1-plugin-networkmanager:i386                0.4.11-4ubuntu3~gcc5.3                     i386         automatic proxy configuration management library (Network Manager plugin)
ii  libproxy1v5:i386                                    0.4.11-4ubuntu3~gcc5.3                     i386         automatic proxy configuration management library (shared)
ii  libsignon-extension1:i386                           8.57+15.10.20150616-0ubuntu2~gcc5.1        i386         Single Sign On framework
ii  libsignon-plugins-common1:i386                      8.57+15.10.20150616-0ubuntu2~gcc5.1        i386         Single Sign On framework
ii  libsignon-qt5-1:i386                                8.57+15.10.20150616-0ubuntu2~gcc5.1        i386         Single Sign On framework
ii  libunity-action-qt1:i386                            1.1.0+14.04.20140304-0ubuntu2~gcc5.1       i386         Unity Action Qt API
ii  liburl-dispatcher1:i386                             0.1+15.10.20150717-0ubuntu2~gcc5.1         i386         library for sending requests to the url dispatcher
ii  libwebrtc-audio-processing-0:i386                   0.1-3ubuntu1~gcc5.1                        i386         AudioProcessing module from the WebRTC project.
ii  libzeitgeist-2.0-0:i386                             0.9.16-0ubuntu3~gcc5.1                     i386         library to access Zeitgeist - shared library
ii  python-zeitgeist                                    0.9.16-0ubuntu3~gcc5.1                     all          event logging framework - Python bindings
ii  qml-module-ubuntu-onlineaccounts:i386               0.5+15.04.20150415.1-0ubuntu2~gcc5.1       i386         Expose the Online Accounts API to QML applications
ii  qtchooser                                           52-gae5eeef-2build1~gcc5.1                 i386         Wrapper to select between Qt development binary versions
ii  qtdeclarative5-accounts-plugin:i386                 0.5+15.04.20150415.1-0ubuntu2~gcc5.1       i386         transitional dummy package for Online Accounts QML clients
ii  qtdeclarative5-unity-action-plugin:i386             1.1.0+14.04.20140304-0ubuntu2~gcc5.1       i386         Unity Action QML Components
ii  signon-plugin-oauth2                                0.22+15.10.20150603-0ubuntu2~gcc5.1        i386         Single Signon oauth2 plugin
ii  signon-plugin-password                              8.57+15.10.20150616-0ubuntu2~gcc5.1        i386         Plain Password plugin for Single Sign On
ii  signond                                             8.57+15.10.20150616-0ubuntu2~gcc5.1        i386         Single Sign On framework
ii  unity-webapps-qml                                   0.1+15.04.20150422-0ubuntu2~gcc5.1         i386         Unity Webapps QML component
ii  zeitgeist                                           0.9.16-0ubuntu3~gcc5.1                     all          event logging framework
ii  zeitgeist-core                                      0.9.16-0ubuntu3~gcc5.1                     i386         event logging framework - engine
ii  zeitgeist-datahub                                   0.9.16-0ubuntu3~gcc5.1                     i386         event logging framework - passive logging daemon

dpkg -l | grep g++

dpkg -l | grep g++
ii  g++                                                 4:5.2.1-3ubuntu1                           i386         GNU C++ compiler
ii  g++-4.9                                             4.9.3-5ubuntu1                             i386         GNU C++ compiler
ii  g++-5                                               5.2.1-22ubuntu2                            i386         GNU C++ compiler

4) Variable d'environnement GCC et G++

Comment vérifier les variables d'environnement sont bonnes ?

D'avance merci.

Hors ligne

#2 Le 27/12/2015, à 16:13

tiramiseb

Re : [Linux Ubuntu 15.10] Problème gcc / g++ : impossible de compiler ...

Montre/explique précisément le problème que tu rencontres...

Hors ligne

#3 Le 07/05/2016, à 23:25

Arnold59

Re : [Linux Ubuntu 15.10] Problème gcc / g++ : impossible de compiler ...

Bonjour,

Le problème est réapparut lors de la migration Linux Ubuntu 15.10 vers 16.10 :
Il m'est de nouveau impossible de compiler les sources C et C++.

Voici le message d'erreur que je rencontre lorsque je tente de compiler une source :

configure: error: C compiler cannot create executables
See `config.log' for more details

Pourtant les versions de G++ et GCC installés :

dpkg -l | grep -i g++

ii  g++ 4:5.3.1-1ubuntu1                                    i386         GNU C++ compiler
ii  g++-4.9       4.9.3-13ubuntu2                                     i386         GNU C++ compiler
ii  g++-5           5.3.1-14ubuntu2                                     i386         GNU C++ compiler

dpkg -l | grep gcc

ii  gcc                                                 4:5.3.1-1ubuntu1                                    i386         GNU C compiler
ii  gcc-4.7-base:i386                                   4.7.4-3ubuntu12                                     i386         GCC, the GNU Compiler Collection (base package)
ii  gcc-4.8-base:i386                                   4.8.5-4ubuntu2                                      i386         GCC, the GNU Compiler Collection (base package)
ii  gcc-4.9                                             4.9.3-13ubuntu2                                     i386         GNU C compiler
ii  gcc-4.9-base:i386                                   4.9.3-13ubuntu2                                     i386         GCC, the GNU Compiler Collection (base package)
ii  gcc-4.9-locales                                     4.9.3-13ubuntu2                                     all          GCC, the GNU compiler collection (native language support files)
ii  gcc-5                                               5.3.1-14ubuntu2                                     i386         GNU C compiler
ii  gcc-5-base:i386                                     5.3.1-14ubuntu2                                     i386         GCC, the GNU Compiler Collection (base package)
ii  gcc-6-base:i386                                     6.0.1-0ubuntu1                                      i386         GCC, the GNU Compiler Collection (base package)
ii  gir1.2-packagekitglib-1.0                           0.8.17-4ubuntu6~gcc5.4ubuntu1                       i386         GObject introspection data for the PackageKit GLib library
ii  gstreamer0.10-plugins-good:i386                     0.10.31-3+nmu4ubuntu2~gcc5.1                        i386         GStreamer plugins from the "good" set
ii  gstreamer0.10-pulseaudio:i386                       0.10.31-3+nmu4ubuntu2~gcc5.1                        i386         GStreamer plugin for PulseAudio
ii  libcaca0:i386                                       0.99.beta19-2build2~gcc5.2                          i386         colour ASCII art library
ii  libgcc-4.9-dev:i386                                 4.9.3-13ubuntu2                                     i386         GCC support library (development files)
ii  libgcc-5-dev:i386                                   5.3.1-14ubuntu2                                     i386         GCC support library (development files)
ii  libgcc1:i386                                        1:6.0.1-0ubuntu1                                    i386         GCC support library
ii  libpackagekit-glib2-16:i386                         0.8.17-4ubuntu6~gcc5.4ubuntu1                       i386         Library for accessing PackageKit using GLib
ii  libunity-action-qt1:i386                            1.1.0+14.04.20140304-0ubuntu2~gcc5.1                i386         Unity Action Qt API
ii  libwebrtc-audio-processing-0:i386                   0.1-3ubuntu1~gcc5.1                                 i386         AudioProcessing module from the WebRTC project.
rc  libzmq3:i386                                        4.0.5+dfsg-3ubuntu1~gcc5.1                          i386         lightweight messaging kernel (shared library)
ii  qtchooser                                           52-gae5eeef-2build1~gcc5.2                          i386         Wrapper to select between Qt development binary versions
ii  qtdeclarative5-unity-action-plugin:i386             1.1.0+14.04.20140304-0ubuntu2~gcc5.1                i386         Unity Action QML Components


Le problème viendrait-il des variables d'environnement à recréer ?

D'avance merci.

Dernière modification par Arnold59 (Le 07/05/2016, à 23:27)

Hors ligne

#4 Le 08/05/2016, à 10:43

tiramiseb

Re : [Linux Ubuntu 15.10] Problème gcc / g++ : impossible de compiler ...

Arnold59 a écrit :

Bonjour,

Le problème est réapparut lors de la migration Linux Ubuntu 15.10 vers 16.10 :
Il m'est de nouveau impossible de compiler les sources C et C++.

La dernière fois j'ai voulu t'aider et tu n'as pas répondu à ma question : tu préfères peut-être te démerder seul ?
(c'est vexant, de passer du temps à réfléchir à ton problème pour ensuite voir que tu t'en contrefous)

Arnold59 a écrit :

Voici le message d'erreur que je rencontre lorsque je tente de compiler une source :

configure: error: C compiler cannot create executables
See `config.log' for more details

Ça te dit de regarder dans config.log. As-tu regardé dans config.log ?
Si oui, qu'est-ce que ça dit ?
Si non, qu'attends-tu pour aller voir ce fichier et nous montrer ce qu'il contient ?

Arnold59 a écrit :


Le problème viendrait-il des variables d'environnement à recréer ?

On n'est pas devins. En tout cas, moi, je ne veux pas jouer à la devinette.

Si tu veux de l'aide, tu montres les infos données par l'outil. En l'occurrence, le contenu de config.log.

Hors ligne