Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 19-02-2016 11:44:35

evanescente~ondine
Membre
Distrib. : Debian 8.5 (jessie)
Noyau : Linux 3.16.0-4-amd64
(G)UI : Xfce4
Inscription : 31-10-2014

message incompréhensible d'un script ./configure

Je tente d'installer gtkada à partir des binaires, pas des sources(ça c'est la seconde étape), pour programmer en Ada, et installer un shell qui se nomme SparForte.
Je viens à peine de réinstaller debian j'ai déjà des problèmes ... J'ajoute que j'ai pris la dernière version de GNAT gpl du même site, libre.adacore.com .

mehdi@debian:~/Téléchargements/gtkada/gtkada-gpl-2015-src$ ./configure


checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/mehdi/Téléchargements/gtkada/gtkada-gpl-2015-src':
configure: error: C compiler cannot create executables
See `config.log' for more details


mehdi@debian:~/Téléchargements/gtkada/gtkada-gpl-2015-src$ whereis gcc


gcc: /usr/lib/gcc /usr/gnat/bin/gcc



Je vous donne le config.log, en question.

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by gtkada configure 3.8.3, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = debian
uname -m = x86_64
uname -r = 4.3.0-1-amd64
uname -s = Linux
uname -v = #1 SMP Debian 4.3.5-1 (2016-02-06)

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/gnat/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/games
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1925: checking build system type
configure:1939: result: x86_64-unknown-linux-gnu
configure:1959: checking host system type
configure:1972: result: x86_64-unknown-linux-gnu
configure:1992: checking target system type
configure:2005: result: x86_64-unknown-linux-gnu
configure:2197: checking for gcc
configure:2213: found /usr/gnat/bin/gcc
configure:2224: result: gcc
configure:2453: checking for C compiler version
configure:2462: gcc --version >&5
gcc (GCC) 4.9.3 20150428 (for GNAT GPL 2015 20150428)
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
See your AdaCore support agreement for details of warranty and support.
If you do not have a current support agreement, then there is absolutely
no warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

configure:2473: $? = 0
configure:2462: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/gnat/libexec/gcc/x86_64-pc-linux-gnu/4.9.3/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../src/configure --enable-languages=ada,c,c++ --enable-_cxa_atexit --enable-threads=posix --with-bugurl=URL:mailto:report@adacore.com --disable-nls --without-libiconv-prefix --disable-libmudflap --disable-libstdcxx-pch --disable-libada --enable-checking=release --disable-libsanitizer --disable-libcc1 --disable-libcilkrts --disable-multilib --with-mpfr=/boron.a/gnatmail/sandbox/gpl-2015/x86_64-linux/mpfr/install --with-gmp=/boron.a/gnatmail/sandbox/gpl-2015/x86_64-linux/gmp/install --with-mpc=/boron.a/gnatmail/sandbox/gpl-2015/x86_64-linux/mpc/install --with-build-time-tools=/boron.a/gnatmail/sandbox/gpl-2015/x86_64-linux/gcc/build/buildtools/bin --prefix=/usr/gnat --build=x86_64-pc-linux-gnu
Thread model: posix
gcc version 4.9.3 20150428 (for GNAT GPL 2015 20150428) (GCC)
configure:2473: $? = 0
configure:2462: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2473: $? = 1
configure:2462: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:2473: $? = 1
configure:2493: checking whether the C compiler works
configure:2515: gcc    conftest.c  >&5
/usr/gnat/libexec/gcc/x86_64-pc-linux-gnu/4.9.3/ld: cannot find crt1.o: No such file or directory
/usr/gnat/libexec/gcc/x86_64-pc-linux-gnu/4.9.3/ld: cannot find crti.o: No such file or directory
/usr/gnat/libexec/gcc/x86_64-pc-linux-gnu/4.9.3/ld: cannot find -lc
/usr/gnat/libexec/gcc/x86_64-pc-linux-gnu/4.9.3/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:2519: $? = 1
configure:2557: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gtkada"
| #define PACKAGE_TARNAME "gtkada"
| #define PACKAGE_VERSION "3.8.3"
| #define PACKAGE_STRING "gtkada 3.8.3"
| #define PACKAGE_BUGREPORT "report@adacore.com"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2562: error: in `/home/mehdi/Téléchargements/gtkada/gtkada-gpl-2015-src':
configure:2564: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_OBJCFLAGS_set=
ac_cv_env_OBJCFLAGS_value=
ac_cv_env_OBJC_set=
ac_cv_env_OBJC_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_prog_ac_ct_CC=gcc
ac_cv_target=x86_64-unknown-linux-gnu

## ----------------- ##
## Output variables. ##
## ----------------- ##

BUILD_SHARED='yes'
BUILD_STATIC='yes'
BUILD_TYPE=''
CC='gcc'
CFLAGS=''
CPPFLAGS=''
DEFAULT_LIBRARY_TYPE='static'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
GETTEXT_INTL=''
GL_CFLAGS=''
GL_CFLAGS_GPR=''
GL_LIBS=''
GL_LIBS_GPR=''
GPRBUILD=''
GTK_CFLAGS=''
GTK_CFLAGS_GPR=''
GTK_LIBS=''
GTK_LIBS_GPR=''
GTK_PREFIX=''
HAVE_GETTEXT=''
HAVE_OPENGL=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
NEED_OBJECTIVE_C='no'
OBJC=''
OBJCFLAGS=''
OBJEXT=''
OS_SPECIFIC_LINK_OPTIONS=''
PACKAGE_BUGREPORT='report@adacore.com'
PACKAGE_NAME='gtkada'
PACKAGE_STRING='gtkada 3.8.3'
PACKAGE_TARNAME='gtkada'
PACKAGE_URL=''
PACKAGE_VERSION='3.8.3'
PATH_SEPARATOR=':'
PKG_CONFIG=''
SHELL='/bin/bash'
SO_EXT='.so'
SO_OPTS='-Wl,-soname,'
TARGET=''
TARGET_LFLAGS=''
USE_NLS=''
ac_ct_CC='gcc'
ac_ct_OBJC=''
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='x86_64-unknown-linux-gnu'
target_alias=''
target_cpu='x86_64'
target_os='linux-gnu'
target_vendor='unknown'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "gtkada"
#define PACKAGE_TARNAME "gtkada"
#define PACKAGE_VERSION "3.8.3"
#define PACKAGE_STRING "gtkada 3.8.3"
#define PACKAGE_BUGREPORT "report@adacore.com"
#define PACKAGE_URL ""

configure: exit 77
 

Hors ligne

#2 19-02-2016 12:03:18

enicar
Membre
Lieu : Grenoble
Distrib. : debian/sid
Noyau : Linux 4.8.10
(G)UI : openbox
Inscription : 26-08-2010

Re : message incompréhensible d'un script ./configure

Est-ce que libc6-dev est installé ? Pour le savoir tu peux faire :


apt-cache policy libc6-dev
 


Enfin, je pose la question, mais lorsque gcc est installé, ce
paquet devrait l'être aussi. Les autres paquets utiles pour la
compilation sont :


autoconf
automake
libtool
make
 


Cette liste n'est pas exhaustive, bien sûr wink Suivant les projets
on peut avoir besoin d'autres fichiers d'entête qui sont les paquets
-dev correspondant aux librairies que le projet utilise. Et
éventuellement, un autre logiciel pour gérer la compilation comme
cmake, scons ou autre…

En principe, on n'a pas besoin de autoconf et automake
qui sont des outils utilisés par les développeurs.


La machine, c'est dépassé ! On va tout remplacer par des humains big_smile

Hors ligne

#3 19-02-2016 12:15:16

evanescente~ondine
Membre
Distrib. : Debian 8.5 (jessie)
Noyau : Linux 3.16.0-4-amd64
(G)UI : Xfce4
Inscription : 31-10-2014

Re : message incompréhensible d'un script ./configure

Bon, je voulais pas, mais j'ai installé gcc.
Je pensais que la version inclue dans GNAT GPL suffirait, mais apparemment il y a un certain nombre de dépendances qui ne sont pas incluses.
Pas grave, je ferais bien intention à mettre /usr/gnat en premier dans PATH, pour être sûr que la dernière version des outils présents soient bien utilisés.
J'ai installé tout ça, même chose.

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by gtkada configure 3.8.3, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = debian
uname -m = x86_64
uname -r = 4.3.0-1-amd64
uname -s = Linux
uname -v = #1 SMP Debian 4.3.5-1 (2016-02-06)

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/gnat/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1925: checking build system type
configure:1939: result: x86_64-unknown-linux-gnu
configure:1959: checking host system type
configure:1972: result: x86_64-unknown-linux-gnu
configure:1992: checking target system type
configure:2005: result: x86_64-unknown-linux-gnu
configure:2197: checking for gcc
configure:2213: found /usr/gnat/bin/gcc
configure:2224: result: gcc
configure:2453: checking for C compiler version
configure:2462: gcc --version >&5
gcc (GCC) 4.9.3 20150428 (for GNAT GPL 2015 20150428)
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
See your AdaCore support agreement for details of warranty and support.
If you do not have a current support agreement, then there is absolutely
no warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

configure:2473: $? = 0
configure:2462: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/gnat/libexec/gcc/x86_64-pc-linux-gnu/4.9.3/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../src/configure --enable-languages=ada,c,c++ --enable-_cxa_atexit --enable-threads=posix --with-bugurl=URL:mailto:report@adacore.com --disable-nls --without-libiconv-prefix --disable-libmudflap --disable-libstdcxx-pch --disable-libada --enable-checking=release --disable-libsanitizer --disable-libcc1 --disable-libcilkrts --disable-multilib --with-mpfr=/boron.a/gnatmail/sandbox/gpl-2015/x86_64-linux/mpfr/install --with-gmp=/boron.a/gnatmail/sandbox/gpl-2015/x86_64-linux/gmp/install --with-mpc=/boron.a/gnatmail/sandbox/gpl-2015/x86_64-linux/mpc/install --with-build-time-tools=/boron.a/gnatmail/sandbox/gpl-2015/x86_64-linux/gcc/build/buildtools/bin --prefix=/usr/gnat --build=x86_64-pc-linux-gnu
Thread model: posix
gcc version 4.9.3 20150428 (for GNAT GPL 2015 20150428) (GCC)
configure:2473: $? = 0
configure:2462: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2473: $? = 1
configure:2462: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:2473: $? = 1
configure:2493: checking whether the C compiler works
configure:2515: gcc    conftest.c  >&5
/usr/gnat/libexec/gcc/x86_64-pc-linux-gnu/4.9.3/ld: /usr/lib/x86_64-linux-gnu/crti.o: unrecognized relocation (0x2a) in section `.init'
/usr/gnat/libexec/gcc/x86_64-pc-linux-gnu/4.9.3/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
configure:2519: $? = 1
configure:2557: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gtkada"
| #define PACKAGE_TARNAME "gtkada"
| #define PACKAGE_VERSION "3.8.3"
| #define PACKAGE_STRING "gtkada 3.8.3"
| #define PACKAGE_BUGREPORT "report@adacore.com"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2562: error: in `/home/mehdi/Téléchargements/gtkada/gtkada-gpl-2015-src':
configure:2564: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_OBJCFLAGS_set=
ac_cv_env_OBJCFLAGS_value=
ac_cv_env_OBJC_set=
ac_cv_env_OBJC_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_prog_ac_ct_CC=gcc
ac_cv_target=x86_64-unknown-linux-gnu

## ----------------- ##
## Output variables. ##
## ----------------- ##

BUILD_SHARED='yes'
BUILD_STATIC='yes'
BUILD_TYPE=''
CC='gcc'
CFLAGS=''
CPPFLAGS=''
DEFAULT_LIBRARY_TYPE='static'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
GETTEXT_INTL=''
GL_CFLAGS=''
GL_CFLAGS_GPR=''
GL_LIBS=''
GL_LIBS_GPR=''
GPRBUILD=''
GTK_CFLAGS=''
GTK_CFLAGS_GPR=''
GTK_LIBS=''
GTK_LIBS_GPR=''
GTK_PREFIX=''
HAVE_GETTEXT=''
HAVE_OPENGL=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
NEED_OBJECTIVE_C='no'
OBJC=''
OBJCFLAGS=''
OBJEXT=''
OS_SPECIFIC_LINK_OPTIONS=''
PACKAGE_BUGREPORT='report@adacore.com'
PACKAGE_NAME='gtkada'
PACKAGE_STRING='gtkada 3.8.3'
PACKAGE_TARNAME='gtkada'
PACKAGE_URL=''
PACKAGE_VERSION='3.8.3'
PATH_SEPARATOR=':'
PKG_CONFIG=''
SHELL='/bin/bash'
SO_EXT='.so'
SO_OPTS='-Wl,-soname,'
TARGET=''
TARGET_LFLAGS=''
USE_NLS=''
ac_ct_CC='gcc'
ac_ct_OBJC=''
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='x86_64-unknown-linux-gnu'
target_alias=''
target_cpu='x86_64'
target_os='linux-gnu'
target_vendor='unknown'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "gtkada"
#define PACKAGE_TARNAME "gtkada"
#define PACKAGE_VERSION "3.8.3"
#define PACKAGE_STRING "gtkada 3.8.3"
#define PACKAGE_BUGREPORT "report@adacore.com"
#define PACKAGE_URL ""

configure: exit 77


Où est-ce que je peux voir ce qui manquerait comme librairie ? ?

Hors ligne

#4 19-02-2016 12:26:34

enicar
Membre
Lieu : Grenoble
Distrib. : debian/sid
Noyau : Linux 4.8.10
(G)UI : openbox
Inscription : 26-08-2010

Re : message incompréhensible d'un script ./configure

Je me demande pourquoi tu cherches à compiler gnat. La version de gnat dont
les dépôts debian ne te convient pas ?

La machine, c'est dépassé ! On va tout remplacer par des humains big_smile

Hors ligne

#5 19-02-2016 12:37:58

evanescente~ondine
Membre
Distrib. : Debian 8.5 (jessie)
Noyau : Linux 3.16.0-4-amd64
(G)UI : Xfce4
Inscription : 31-10-2014

Re : message incompréhensible d'un script ./configure

Ben, justement non. Le site, tous les sites conseillent d'installer la dernière version, qui en plus d'être la dernière, est une branche différente.
Dans mes souvenirs, j'ai jamais pu utiliser gtkada dans le passé avec la version des paquets. Cette version m'a été déconseillé sur les forum ada.comp.lang et ada.comp.lang.fr

Hors ligne

#6 19-02-2016 12:42:04

enicar
Membre
Lieu : Grenoble
Distrib. : debian/sid
Noyau : Linux 4.8.10
(G)UI : openbox
Inscription : 26-08-2010

Re : message incompréhensible d'un script ./configure

C'est certain que la debian stable est toujours en retard de plusieurs versions. Pour certains type
de logiciels, bibliothèques ça peut être très gênant. Et, évidemment, pour d'autres, ça n'a pas
trop d'importance wink

La machine, c'est dépassé ! On va tout remplacer par des humains big_smile

Hors ligne

Pied de page des forums