Pergunta

Estou tentando compilar libgpg-error-1.10 no sistema operacional Windows 7 de 64 bits, mas estou recebendo o erro abaixo-

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.

Quando abro o arquivo config.log, posso ver as seguintes linhas relevantes-

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.

Alguma ideia de como faço para resolver esse problema?Eu só preciso do arquivo libgrcrypt .lib para poder usá-lo em meu projeto

Foi útil?

Solução

Parece que seu PATH está errado e o gcc não consegue encontrar alguns de seus programas auxiliares, como evidenciado por:

 gcc.exe: CreateProcess: No such file or directory

Tente executar o gcc com um programa de teste simples no mesmo shell que você está usando para configurar e com as mesmas configurações de PATH, provavelmente irá falhar.Você pode corrigir isso adicionando alguns diretórios como / mingw / bin ao PATH.É mais provável, no entanto, que a instalação do gcc esteja incompleta ou tenha alguns caminhos codificados e tenham sido instalados em um local diferente.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top