Question

Je suis en train de compiler libgpg-erreur-1.10 sur Windows 7 64 bits OS mais je reçois ci-dessous ERROR-

checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/libgpg-error-1.10/libgpg-error-1.10':
configure: error: C compiler cannot create executables
See `config.log' for more details.

Quand j'ouvrir le fichier config.log, je peux voir ci-dessous lignes- pertinentes

configure:3056: checking for gcc
configure:3072: found /mingw/bin/gcc
configure:3083: result: gcc
configure:3312: checking for C compiler version
configure:3321: gcc --version >&5
gcc.exe (GCC) 4.5.4 20110822 (prerelease)
Copyright (C) 2010 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:3332: $? = 0
configure:3321: gcc -v >&5
Using built-in specs.
COLLECT_GCC=c:\mingw\bin\gcc.exe
Target: x86_64-w64-mingw32
Configured with: ../../../build/gcc/src/configure --target=x86_64-w64-mingw32 --prefix=/c/bb/vista64-mingw32/mingw-x86-x86_64
/build/build/root --with-sysroot=/c/bb/vista64-mingw32/mingw-x86-x86_64/build/build/root --enable-languages=all,obj-c++ --ena
ble-fully-dynamic-string --disable-multilib
Thread model: win32
gcc version 4.5.4 20110822 (prerelease) (GCC)
configure:3332: $? = 0
configure:3321: gcc -V >&5
gcc.exe: '-V' option must have argument
configure:3332: $? = 1
configure:3321: gcc -qversion >&5
gcc.exe: unrecognized option '-qversion'
gcc.exe: no input files
configure:3332: $? = 1
configure:3354: checking for C compiler default output file name
configure:3376: gcc    conftest.c  >&5
gcc.exe: CreateProcess: No such file or directory
configure:3380: $? = 1
configure:3417: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libgpg-error"
| #define PACKAGE_TARNAME "libgpg-error"
| #define PACKAGE_VERSION "1.10"
| #define PACKAGE_STRING "libgpg-error 1.10"
| #define PACKAGE_BUGREPORT "bug-gnupg@gnupg.org"
| #define PACKAGE_URL ""
| #define PACKAGE "libgpg-error"
| #define VERSION "1.10"
| /* end confdefs.h.  */
| #include <stdio.h>
| int
| main ()
| {
| FILE *f = fopen ("conftest.out", "w");
|  return ferror (f) || fclose (f) != 0;
|
|   ;
|   return 0;
| }
configure:3423: error: in `/libgpg-error-1.10/libgpg-error-1.10':
configure:3427: error: C compiler cannot create executables
See `config.log' for more details.

Toutes les idées comment puis-je résoudre ce problème? J'ai juste besoin fichier libgrcrypt .lib afin que je puisse les utiliser dans mon projet

Était-ce utile?

La solution

Il semble que votre PATH est faux et gcc ne peut pas trouver certains de ses programmes d'aide, comme en témoigne:

 gcc.exe: CreateProcess: No such file or directory

Essayez d'exécuter gcc avec un programme de test simple dans le même shell que vous utilisez pour configurer et avec les mêmes paramètres PATH, il sera très probablement échouer. Vous pourriez être en mesure de le corriger avec l'ajout de certains répertoires comme / MinGW / bin au PATH. cependant, il est plus probable que votre installation de gcc est incomplète ou a des chemins d'accès directement et a ensuite été installé dans un endroit différent.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top