Bonjour,

Comme je réinstalle mon PC j'ai un problème avec GMP sous CygWin:
1) Installation CygWin sans problème: la commande cygcheck
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 cygcheck -c  \
 zip     bash binutils bzip2 cygwin gcc-core gcc-g++ gzip m4 make unzip
donne
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
Cygwin Package Information
Package              Version        Status
bash                 4.1.10-4       OK
binutils             2.23.51-1      OK
bzip2                1.0.6-2        OK
cygwin               1.7.18-1       OK
gzip                 1.4-1          OK
m4                   1.4.16-1       OK
make                 3.82.90-1      OK
unzip                6.0-10         OK
zip                  3.0-11         OK
2) GMP
- Télécharger gmp-5.1.1
- le mettre dans /usr/local/contrib
- se positionner dans /usr/local/contrib
- extraire avec tar commande (sous Cygwin)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
tar -xf gmp-5.1.0.tar.bz2
- se positionner dans /usr/local/contrib/gmp-5.1.1
- faire configure
Quelques lignes plus tard j'ai un message d'erreur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$ ./configure
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no, program does not run
checking compiler gcc -O2 -pedantic -fomit-frame-pointer ... no, program does not run
checking compiler icc -no-gcc ... no
checking whether cc is gcc... yes
checking compiler cc -m32 -O2 -pedantic -fomit-frame-pointer ... no, program does not run
checking compiler cc -O2 -pedantic -fomit-frame-pointer ... no, program does not run
configure: error: could not find a working compiler, see config.log for details
J'ai attaché le fichier log de configure
J'ai bien gcc livré avec CygWin
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/4.5.3/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with: /gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/gcc-4.5.3/configure  \
--srcdir=/gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/gcc-4.5.3 \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--libexecdir=/usr/lib \
--datadir=/usr/share \
--localstatedir=/var \
--sysconfdir=/etc \
--datarootdir=/usr/share \
--docdir=/usr/share/doc/gcc4 -C \
--datadir=/usr/share \
--infodir=/usr/share/info \
--mandir=/usr/share/man -v \
--with-gmp=/usr \
--with-mpfr=/usr \
--enable-bootstrap \
--enable-version-specific-runtime-libs \
--libexecdir=/usr/lib \
--enable-static \
--enable-shared \
--enable-shared-libgcc \
--disable-__cxa_atexit \
--with-gnu-ld \
--with-gnu-as \
--with-dwarf2 \
--disable-sjlj-exceptions \
--enable-languages=ada,c,c++,fortran,java,lto,objc,obj-c++ \
--enable-graphite \
--enable-lto \
--enable-java-awt=gtk \
--disable-symvers \
--enable-libjava \
--program-suffix=-4 \
--enable-libgomp \
--enable-libssp \
--enable-libada \
--enable-threads=posix \
--with-arch=i686 \
--with-tune=generic \
--enable-libgcj-sublibs \
 CC=gcc-4 \
CXX=g++-4 \
CC_FOR_TARGET=gcc-4 \
CXX_FOR_TARGET=g++-4 \
GNATMAKE_FOR_TARGET=gnatmake \
GNATBIND_FOR_TARGET=gnatbind \
--with-ecj-jar=/usr/share/java/ecj.jar
Thread model: posix
gcc version 4.5.3 (GCC)
J'ai parcourru les forums pour trouver une solution mais sans succès

Pourriez-vous m'indiquer comment fixer cette ereur? Je suis seulement au début de générer GCC étape GMP, il y a mpfr, mpc et finalement gcc

Voici la configuration de la plateforme utilisée
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
 
Windows 7 Professional 64-bit SP1
i7 960 @3.20GHz Bloomfield 45nm
Mémoire  16GB
Cygwin    1.7.18-1
Merci d'avance