Bonsoir,

Je suis ce tutoriel pour avoir une version récente de GCC sous Windows, mais j'ai un problème à la compilation de libiconv. Les sources contiennent deux répertoires, je les ai tous les deux copiés dans work/src/libiconv et j'ai lancé le seul fichier configure que j'ai trouvé avec les paramètres donnés dans le tutoriel mais ça échoue en me laissant ce log :

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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
 
It was created by configure, which was
generated by GNU Autoconf 2.57.  Invocation command line was
 
  $ ../../src/libiconv/1.9.2/libiconv-1.9.2-src/configure --prefix=/mingw host=i686-pc-mingw32 --with-gnu-ld --with-gnu-as --with-ld=/mingw/bin/ld.exe  
 
## --------- ##
## Platform. ##
## --------- ##
 
hostname = moi
uname -m = i686
uname -r = 1.0.10(0.46/3/2)
uname -s = MINGW32_NT-5.1
uname -v = 2004-03-15 07:17
 
/usr/bin/uname -p = unknown
/bin/uname -X     = unknown
 
/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown
 
PATH: /c/gcc/bin
PATH: .
PATH: /usr/local/bin
PATH: /mingw/bin
PATH: /bin
PATH: /c/Program Files/Java/jdk1.6.0_01/bin
PATH: /c/WINDOWS/system32
PATH: /c/WINDOWS
PATH: /c/WINDOWS/System32/Wbem
PATH: /c/WATCOM/BINNT
PATH: /c/WATCOM/BINW
 
 
## ----------- ##
## Core tests. ##
## ----------- ##
 
configure:1514: checking for a BSD-compatible install
configure:1568: result: /bin/install -c
configure:1579: checking whether build environment is sane
configure:1622: result: yes
configure:1655: checking for gawk
configure:1671: found /bin/gawk
configure:1681: result: gawk
configure:1691: checking whether make sets $(MAKE)
configure:1711: result: yes
configure:1877: checking whether make sets $(MAKE)
configure:1897: result: yes
configure:1919: checking for -gcc
configure:1948: result: no
configure:1957: checking for gcc
configure:1973: found /c/gcc/bin/gcc
configure:1983: result: gcc
configure:2227: checking for C compiler version
configure:2230: gcc --version </dev/null >&5
gcc.exe (GCC) 3.4.5 (mingw special)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
configure:2233: $? = 0
configure:2235: gcc -v </dev/null >&5
Reading specs from c:/gcc/bin/../lib/gcc/mingw32/3.4.5/specs
Configured with: ../gcc-3.4.5/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw special)
configure:2238: $? = 0
configure:2240: gcc -V </dev/null >&5
gcc.exe: `-V' option must have argument
configure:2243: $? = 1
configure:2267: checking for C compiler default output
configure:2270: gcc    conftest.c  >&5
configure:2273: $? = 0
configure:2319: result: a.exe
configure:2324: checking whether the C compiler works
configure:2330: ./a.exe
configure:2333: $? = 0
configure:2350: result: yes
configure:2357: checking whether we are cross compiling
configure:2359: result: no
configure:2362: checking for suffix of executables
configure:2364: gcc -o conftest.exe    conftest.c  >&5
configure:2367: $? = 0
configure:2392: result: .exe
configure:2398: checking for suffix of object files
configure:2420: gcc -c   conftest.c >&5
configure:2423: $? = 0
configure:2445: result: o
configure:2449: checking whether we are using the GNU C compiler
configure:2474: gcc -c   conftest.c >&5
configure:2477: $? = 0
configure:2480: test -s conftest.o
configure:2483: $? = 0
configure:2496: result: yes
configure:2502: checking whether gcc accepts -g
configure:2524: gcc -c -g  conftest.c >&5
configure:2527: $? = 0
configure:2530: test -s conftest.o
configure:2533: $? = 0
configure:2544: result: yes
configure:2561: checking for gcc option to accept ANSI C
configure:2622: gcc  -c -g -O2  conftest.c >&5
configure:2625: $? = 0
configure:2628: test -s conftest.o
configure:2631: $? = 0
configure:2649: result: none needed
configure:2667: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: syntax error before "me"
configure:2670: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:2790: checking for style of include used by make
configure:2818: result: GNU
configure:2846: checking dependency style of gcc
configure:2914: result: none
configure:2936: checking how to run the C preprocessor
configure:2972: gcc -E  conftest.c
configure:2978: $? = 0
configure:3010: gcc -E  conftest.c
configure:3011:28: ac_nonexistent.h: No such file or directory
configure:3016: $? = 1
configure: failed program was:
| #line 3001 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libiconv"
| #define VERSION "1.9"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3054: result: gcc -E
configure:3079: gcc -E  conftest.c
configure:3085: $? = 0
configure:3117: gcc -E  conftest.c
configure:3118:28: ac_nonexistent.h: No such file or directory
configure:3123: $? = 1
configure: failed program was:
| #line 3108 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libiconv"
| #define VERSION "1.9"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3167: checking for egrep
configure:3177: result: grep -E
configure:3183: checking whether gcc needs -traditional
configure:3199:19: sgtty.h: No such file or directory
configure:3219:20: termio.h: No such file or directory
configure:3227: result: no
configure:3246: checking for a BSD-compatible install
configure:3300: result: /bin/install -c
configure:3319: checking build system type
configure:3332: error: /bin/sh ../../src/libiconv/1.9.2/libiconv-1.9.2-src/autoconf/config.sub   failed
 
## ---------------- ##
## Cache variables. ##
## ---------------- ##
 
ac_cv_build=
ac_cv_build_alias=' '
ac_cv_c_compiler_gnu=yes
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_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=' '
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=' '
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=' '
ac_cv_exeext=.exe
ac_cv_objext=o
ac_cv_path_install='/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_egrep='grep -E'
ac_cv_prog_gcc_traditional=no
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=none
 
## ----------------- ##
## Output variables. ##
## ----------------- ##
 
ACLOCAL='${SHELL} /work/src/libiconv/1.9.2/libiconv-1.9.2-src/autoconf/missing --run aclocal-1.7'
ALLOCA=''
ALLOCA_H=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /work/src/libiconv/1.9.2/libiconv-1.9.2-src/autoconf/missing --run tar'
AR=''
AS=''
AUTOCONF='${SHELL} /work/src/libiconv/1.9.2/libiconv-1.9.2-src/autoconf/missing --run autoconf'
AUTOHEADER='${SHELL} /work/src/libiconv/1.9.2/libiconv-1.9.2-src/autoconf/missing --run autoheader'
AUTOMAKE='${SHELL} /work/src/libiconv/1.9.2/libiconv-1.9.2-src/autoconf/missing --run automake-1.7'
AWK='gawk'
CC='gcc'
CCDEPMODE='depmode=none'
CFLAGS='-g -O2'
CP=''
CPP='gcc -E'
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='grep -E'
EILSEQ=''
EXEEXT='.exe'
F77=''
FFLAGS=''
GCC='yes'
GMSGFMT=''
HAVE__BOOL=''
ICONV_CONST=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
INTLLIBS=''
LDFLAGS=''
LIBICONV=''
LIBINTL=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN=''
LN_S=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /work/src/libiconv/1.9.2/libiconv-1.9.2-src/autoconf/missing --run makeinfo'
MKINSTALLDIRS=''
MSGFMT=''
MSGMERGE=''
OBJDUMP=''
OBJEXT='o'
OS='Windows_NT'
PACKAGE='libiconv'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PLUGLIB=''
POSUB=''
RANLIB=''
RELOCATABLE=''
RELOCATABLE_VIA_LD_FALSE=''
RELOCATABLE_VIA_LD_TRUE=''
SET_MAKE=''
SET_RELOCATABLE=''
SHELL='/bin/sh'
STDBOOL_H=''
STRIP=''
USE_EXTRA_ENCODINGS=''
USE_NLS=''
VERSION='1.9'
XGETTEXT=''
ac_ct_AR=''
ac_ct_AS=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_DLLTOOL=''
ac_ct_F77=''
ac_ct_OBJDUMP=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE='#'
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
bindir='${exec_prefix}/bin'
build=' '
build_alias=' '
build_cpu=''
build_os=''
build_vendor=''
datadir='${prefix}/share'
exec_prefix='NONE'
host=' '
host_alias=' '
host_cpu=''
host_os=''
host_vendor=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/work/src/libiconv/1.9.2/libiconv-1.9.2-src/autoconf/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${datadir}/man'
oldincludedir='/usr/include'
prefix='/mingw'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=''
sysconfdir='${prefix}/etc'
target_alias=' '
 
## ----------- ##
## confdefs.h. ##
## ----------- ##
 
#define PACKAGE "libiconv"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "1.9"
 
configure: exit 1
D'après ce que je comprends ça vient des définitions de constantes et je crois que c'est parce qu'en installant w32api ou quelque chose comme ça j'ai écrasé des fichiers comme unistd.h (dans le tutoriel on dit de ne pas s'en soucier). Je crois que je vais recommencer en utilisant simplement l'installateur de MinGW, mais je me disais que vous pourriez peut-être m'éclairer.
Merci.