microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.35k stars 6.19k forks source link

[gmp] Build error #24942

Closed MylSh closed 12 months ago

MylSh commented 2 years ago

Host Environment

To Reproduce -Download vcpkg

C:\> git clone https://github.com/microsoft/vcpkg
C:\> cd vcpkg
C:\vcpkg> .\bootstrap-vcpkg.bat

-Install yasm (my understanding from https://doc.cgal.org/latest/Manual/windows.html is that yasm is a prerequisite to build gmp)

C:\vcpkg> ./vcpkg install yasm-tool:x86-windows

-Attempt to build gmp

./vcpkg install gmp:x64-windows

Failure logs Console output:

[...]
-- Configuring x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:128 (message):
    Command failed: C:/vcpkg/downloads/tools/msys2/7e05e7aa09f1709f/usr/bin/bash.exe --noprofile --norc --debug -c "V=1 CPP='compile cl.exe -E' CC='compile cl.exe' CC_FOR_BUILD='compile cl.exe' CXX='compile cl.exe' RC='windres-rc rc.exe' WINDRES='windres-rc rc.exe' AR='ar-lib lib.exe' LD='link.exe -verbose' RANLIB=':' STRIP=':' NM='dumpbin.exe -symbols -headers' DLLTOOL='link.exe -verbose -dll' CCAS='C:/vcpkg/installed/x64-windows/tools/yasm/yasm.exe' AS=':' ./../src/gmp-6.2.1-e782e0632d.clean/configure --build=x86_64-pc-mingw32 \"ac_cv_func_memset=yes\" \"gmp_cv_asm_w32=.word\" \"--enable-cxx\" \"ac_cv_prog_ac_ct_STRIP=:\" \"gl_cv_double_slash_root=yes\" \"ac_cv_func_memmove=yes\" \"--disable-silent-rules\" \"--verbose\" \"--enable-shared\" \"--disable-static\" \"--prefix=/C/vcpkg/installed/x64-windows/debug\" \"--bindir=\\${prefix}/../tools/gmp/debug/bin\" \"--sbindir=\\${prefix}/../tools/gmp/debug/sbin\" \"--libdir=\\${prefix}/lib\" \"--includedir=\\${prefix}/../include\" \"--datarootdir=\\${prefix}/share/gmp\""
    Working Directory: C:/vcpkg/buildtrees/gmp/x64-windows-dbg
    Error code: 1
    See logs for more information:
      C:\vcpkg\buildtrees\gmp\config-x64-windows-dbg-out.log
      C:\vcpkg\buildtrees\gmp\config-x64-windows-dbg-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:799 (vcpkg_execute_required_process)
  ports/gmp/portfile.cmake:46 (vcpkg_configure_make)
  scripts/ports.cmake:146 (include)

config-x64-windows-dbg-out.log:

checking build system type... x86_64-pc-mingw32
checking host system type... x86_64-pc-mingw32
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=64
checking compiler compile cl.exe -nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -Xcompiler -RTC1 -DWIN32 -D_WINDOWS -D_DEBUG... no, program does not run
checking ABI=x32
checking compiler compile cl.exe -nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -Xcompiler -RTC1 -DWIN32 -D_WINDOWS -D_DEBUG... no, program does not run
checking ABI=32
checking compiler compile cl.exe -nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -Xcompiler -RTC1 -DWIN32 -D_WINDOWS -D_DEBUG... no, program does not run

config-x64-windows-dbg-err.log:

configure: error: could not find a working compiler, see config.log for details

Additional context The repro steps succeed at building gmp with Visual Studio 17.1.6 Professional edition.

LilyWangLL commented 2 years ago

Please also provide the log file: C:\vcpkg\buildtrees\gmp\config.log

MylSh commented 2 years ago

@LilyWangLL I wasn't able to find C:\vcpkg\buildtrees\gmp\config.log, but I suspect this is the desired file, found at C:\vcpkg\buildtrees\gmp\x64-windows-dbg\config.log:

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

It was created by GNU MP configure 6.2.1, which was
generated by GNU Autoconf 2.71.  Invocation command line was

  $ ./../src/gmp-6.2.1-e782e0632d.clean/configure --build=x86_64-pc-mingw32 ac_cv_func_memset=yes gmp_cv_asm_w32=.word --enable-cxx ac_cv_prog_ac_ct_STRIP=: gl_cv_double_slash_root=yes ac_cv_func_memmove=yes --disable-silent-rules --verbose --enable-shared --disable-static --prefix=/C/vcpkg/installed/x64-windows/debug '--bindir=${prefix}/../tools/gmp/debug/bin' '--sbindir=${prefix}/../tools/gmp/debug/sbin' '--libdir=${prefix}/lib' '--includedir=${prefix}/../include' '--datarootdir=${prefix}/share/gmp'

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

hostname = tofu
uname -m = x86_64
uname -r = 3.2.0-340.x86_64
uname -s = MSYS_NT-10.0-19044
uname -v = 2021-05-24 19:32 UTC

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

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

PATH: /c/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.32.31326/bin/HostX64/x64/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Professional/Common7/IDE/VC/VCPackages/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Professional/Common7/IDE/CommonExtensions/Microsoft/TestWindow/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Professional/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Professional/MSBuild/Current/bin/Roslyn/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Professional/Team Tools/Performance Tools/x64/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Professional/Team Tools/Performance Tools/
PATH: /c/Program Files (x86)/Microsoft Visual Studio/Shared/Common/VSPerfCollectionTools/vs2019/x64/
PATH: /c/Program Files (x86)/Microsoft Visual Studio/Shared/Common/VSPerfCollectionTools/vs2019/
PATH: /c/Program Files (x86)/Microsoft SDKs/Windows/v10.0A/bin/NETFX 4.8 Tools/x64/
PATH: /c/Program Files (x86)/HTML Help Workshop/
PATH: /c/Program Files (x86)/Windows Kits/10/bin/10.0.19041.0/x64/
PATH: /c/Program Files (x86)/Windows Kits/10/bin/x64/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Professional/MSBuild/Current/Bin/amd64/
PATH: /c/windows/Microsoft.NET/Framework64/v4.0.30319/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Professional/Common7/IDE/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Professional/Common7/Tools/
PATH: /c/vcpkg/downloads/tools/powershell-core-7.2.3-windows/
PATH: /usr/share/automake-1.16/
PATH: /c/vcpkg/scripts/buildsystems/make_wrapper/
PATH: /usr/bin/
PATH: /c/windows/system32/
PATH: /c/windows/
PATH: /c/windows/system32/Wbem/
PATH: /c/windows/system32/WindowsPowerShell/v1.0/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Professional/Common7/IDE/VC/Linux/bin/ConnectionManagerExe/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/
PATH: /c/vcpkg/downloads/tools/msys2/9a1ec3f33446b195/mingw32/bin/

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

configure:3386: looking for aux files: ltmain.sh compile missing install-sh config.guess config.sub
configure:3399:  trying ./../src/gmp-6.2.1-e782e0632d.clean/
configure:3428:   ./../src/gmp-6.2.1-e782e0632d.clean/ltmain.sh found
configure:3428:   ./../src/gmp-6.2.1-e782e0632d.clean/compile found
configure:3428:   ./../src/gmp-6.2.1-e782e0632d.clean/missing found
configure:3410:   ./../src/gmp-6.2.1-e782e0632d.clean/install-sh found
configure:3428:   ./../src/gmp-6.2.1-e782e0632d.clean/config.guess found
configure:3428:   ./../src/gmp-6.2.1-e782e0632d.clean/config.sub found
configure:3588: checking build system type
configure:3603: result: x86_64-pc-mingw32
configure:3623: checking host system type
configure:3637: result: x86_64-pc-mingw32
configure:3675: checking for a BSD-compatible install
configure:3748: result: /usr/bin/install -c
configure:3759: checking whether build environment is sane
configure:3814: result: yes
configure:3973: checking for a race-free mkdir -p
configure:4017: result: /usr/bin/mkdir -p
configure:4024: checking for gawk
configure:4045: found /usr/bin/gawk
configure:4056: result: gawk
configure:4067: checking whether make sets $(MAKE)
configure:4090: result: yes
configure:4120: checking whether make supports nested variables
configure:4138: result: yes
configure:4263: checking whether to enable maintainer-specific portions of Makefiles
configure:4273: result: no
User:
ABI=
CC=compile cl.exe
CFLAGS=-nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -Xcompiler -RTC1
CPPFLAGS=-DWIN32 -D_WINDOWS -D_DEBUG
MPN_PATH=
GMP:
abilist=64 x32 32
cclist=gcc icc cc
configure:6405: compile cl.exe -c conftest.c >&5
Microsoft (R) C/C++ Optimizing Compiler Version 19.32.31329 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

conftest.c
conftest.c(2): error C2061: syntax error: identifier 'me'
conftest.c(2): error C2059: syntax error: ';'
configure:6408: $? = 2
configure:6427: compile cl.exe 2>&1 | grep xlc >/dev/null
configure:6430: $? = 1
configure:6484: checking compiler compile cl.exe -nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -Xcompiler -RTC1 -DWIN32 -D_WINDOWS -D_DEBUG
Test compile: 
configure:6498: compile cl.exe -nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -Xcompiler -RTC1 -DWIN32 -D_WINDOWS -D_DEBUG conftest.c >&5
cl : Command line warning D9002 : ignoring unknown option '-Xcompiler'
conftest.c
configure:6501: $? = 0
configure:6506: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
./../src/gmp-6.2.1-e782e0632d.clean/configure: line 6507: ./a.out: No such file or directory
./../src/gmp-6.2.1-e782e0632d.clean/configure: line 6507: ./b.out: No such file or directory
./../src/gmp-6.2.1-e782e0632d.clean/configure: line 6507: ./a.exe: No such file or directory
./../src/gmp-6.2.1-e782e0632d.clean/configure: line 6507: ./a_out.exe: No such file or directory
./../src/gmp-6.2.1-e782e0632d.clean/configure: line 6507: ./conftest: No such file or directory
configure:6509: $? = 127
failed program was:

int main () { return 0; }
configure:7588: result: no, program does not run
configure:6405: compile cl.exe -c conftest.c >&5
Microsoft (R) C/C++ Optimizing Compiler Version 19.32.31329 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

conftest.c
conftest.c(2): error C2061: syntax error: identifier 'me'
conftest.c(2): error C2059: syntax error: ';'
configure:6408: $? = 2
configure:6427: compile cl.exe 2>&1 | grep xlc >/dev/null
configure:6430: $? = 1
configure:6484: checking compiler compile cl.exe -nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -Xcompiler -RTC1 -DWIN32 -D_WINDOWS -D_DEBUG
Test compile: 
configure:6498: compile cl.exe -nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -Xcompiler -RTC1 -DWIN32 -D_WINDOWS -D_DEBUG conftest.c >&5
cl : Command line warning D9002 : ignoring unknown option '-Xcompiler'
conftest.c
configure:6501: $? = 0
configure:6506: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
./../src/gmp-6.2.1-e782e0632d.clean/configure: line 6507: ./a.out: No such file or directory
./../src/gmp-6.2.1-e782e0632d.clean/configure: line 6507: ./b.out: No such file or directory
./../src/gmp-6.2.1-e782e0632d.clean/configure: line 6507: ./a.exe: No such file or directory
./../src/gmp-6.2.1-e782e0632d.clean/configure: line 6507: ./a_out.exe: No such file or directory
./../src/gmp-6.2.1-e782e0632d.clean/configure: line 6507: ./conftest: No such file or directory
configure:6509: $? = 127
failed program was:

int main () { return 0; }
configure:7588: result: no, program does not run
configure:6405: compile cl.exe -c conftest.c >&5
Microsoft (R) C/C++ Optimizing Compiler Version 19.32.31329 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

conftest.c
conftest.c(2): error C2061: syntax error: identifier 'me'
conftest.c(2): error C2059: syntax error: ';'
configure:6408: $? = 2
configure:6427: compile cl.exe 2>&1 | grep xlc >/dev/null
configure:6430: $? = 1
configure:6484: checking compiler compile cl.exe -nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -Xcompiler -RTC1 -DWIN32 -D_WINDOWS -D_DEBUG
Test compile: 
configure:6498: compile cl.exe -nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -Xcompiler -RTC1 -DWIN32 -D_WINDOWS -D_DEBUG conftest.c >&5
cl : Command line warning D9002 : ignoring unknown option '-Xcompiler'
conftest.c
configure:6501: $? = 0
configure:6506: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
./../src/gmp-6.2.1-e782e0632d.clean/configure: line 6507: ./a.out: No such file or directory
./../src/gmp-6.2.1-e782e0632d.clean/configure: line 6507: ./b.out: No such file or directory
./../src/gmp-6.2.1-e782e0632d.clean/configure: line 6507: ./a.exe: No such file or directory
./../src/gmp-6.2.1-e782e0632d.clean/configure: line 6507: ./a_out.exe: No such file or directory
./../src/gmp-6.2.1-e782e0632d.clean/configure: line 6507: ./conftest: No such file or directory
configure:6509: $? = 127
failed program was:

int main () { return 0; }
configure:7588: result: no, program does not run
configure:7826: error: could not find a working compiler, see config.log for details

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

ac_cv_build=x86_64-pc-mingw32
ac_cv_env_ABI_set=
ac_cv_env_ABI_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_BUILD_set=set
ac_cv_env_CC_FOR_BUILD_value='compile cl.exe'
ac_cv_env_CC_set=set
ac_cv_env_CC_value='compile cl.exe'
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -Xcompiler -RTC1'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-DWIN32 -D_WINDOWS -D_DEBUG'
ac_cv_env_CPP_FOR_BUILD_set=
ac_cv_env_CPP_FOR_BUILD_value=
ac_cv_env_CPP_set=set
ac_cv_env_CPP_value='compile cl.exe -E'
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-nologo -W3 -utf-8 -GR -EHsc -MP -MDd -Z7 -Ob0 -Od -Xcompiler -RTC1'
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value='compile cl.exe'
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-LC:/vcpkg/installed/x64-windows/debug/lib -LC:/vcpkg/installed/x64-windows/debug/lib/manual-link'
ac_cv_env_LIBS_set=set
ac_cv_env_LIBS_value='-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -lcomdlg32 -ladvapi32'
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_M4_set=
ac_cv_env_M4_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-pc-mingw32
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_func_memmove=yes
ac_cv_func_memset=yes
ac_cv_host=x86_64-pc-mingw32
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_STRIP=:
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
gl_cv_double_slash_root=yes
gmp_cv_asm_w32=.word

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

ABI=''
ACLOCAL='${SHELL} '\''/c/vcpkg/buildtrees/gmp/src/gmp-6.2.1-e782e0632d.clean/missing'\'' aclocal-1.16'
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR='ar-lib lib.exe'
AS=':'
ASMFLAGS='-Xvc -f win64 -pgas -rraw'
AUTOCONF='${SHELL} '\''/c/vcpkg/buildtrees/gmp/src/gmp-6.2.1-e782e0632d.clean/missing'\'' autoconf'
AUTOHEADER='${SHELL} '\''/c/vcpkg/buildtrees/gmp/src/gmp-6.2.1-e782e0632d.clean/missing'\'' autoheader'
AUTOMAKE='${SHELL} '\''/c/vcpkg/buildtrees/gmp/src/gmp-6.2.1-e782e0632d.clean/missing'\'' automake-1.16'
AWK='gawk'
CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo'
CC='compile cl.exe'
CCAS='C:/vcpkg/installed/x64-windows/tools/yasm/yasm.exe'
CC_FOR_BUILD='compile cl.exe'
CFLAGS='-nologo -W3 -utf-8 -MP -MDd -Z7 -Ob0 -Od -Xcompiler -RTC1'
CPP='compile cl.exe -E'
CPPFLAGS='-DWIN32 -D_WINDOWS -D_DEBUG'
CPP_FOR_BUILD=''
CXX='compile cl.exe'
CXXCPP=''
CXXFLAGS='-nologo -W3 -utf-8 -GR -EHsc -MP -MDd -Z7 -Ob0 -Od -Xcompiler -RTC1'
CYGPATH_W='cygpath -w'
DEFN_LONG_LONG_LIMB=''
DEFS=''
DLLTOOL='link.exe -verbose -dll'
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_STATIC_FALSE=''
ENABLE_STATIC_TRUE=''
EXEEXT=''
EXEEXT_FOR_BUILD=''
FGREP=''
GMP_LDFLAGS=''
GMP_LIMB_BITS=''
GMP_NAIL_BITS='0'
GREP=''
HAVE_CLOCK_01=''
HAVE_CPUTIME_01=''
HAVE_GETRUSAGE_01=''
HAVE_GETTIMEOFDAY_01=''
HAVE_HOST_CPU_FAMILY_power='0'
HAVE_HOST_CPU_FAMILY_powerpc='0'
HAVE_SIGACTION_01=''
HAVE_SIGALTSTACK_01=''
HAVE_SIGSTACK_01=''
HAVE_STACK_T_01=''
HAVE_SYS_RESOURCE_H_01=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='link.exe -verbose'
LDFLAGS='-LC:/vcpkg/installed/x64-windows/debug/lib -LC:/vcpkg/installed/x64-windows/debug/lib/manual-link'
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBCURSES=''
LIBGMPXX_LDFLAGS=''
LIBGMP_DLL=''
LIBGMP_LDFLAGS=''
LIBM=''
LIBM_FOR_BUILD=''
LIBOBJS=''
LIBREADLINE=''
LIBS='-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -lcomdlg32 -ladvapi32'
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
M4=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} '\''/c/vcpkg/buildtrees/gmp/src/gmp-6.2.1-e782e0632d.clean/missing'\'' makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/usr/bin/mkdir -p'
NM='dumpbin.exe -symbols -headers'
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='gmp'
PACKAGE_BUGREPORT='gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html'
PACKAGE_NAME='GNU MP'
PACKAGE_STRING='GNU MP 6.2.1'
PACKAGE_TARNAME='gmp'
PACKAGE_URL='https://www.gnu.org/software/gmp/'
PACKAGE_VERSION='6.2.1'
PATH_SEPARATOR=':'
RANLIB=':'
SED=''
SET_MAKE=''
SHELL='/bin/sh'
SPEED_CYCLECOUNTER_OBJ='pentium.lo'
STRIP=':'
TAL_OBJECT=''
TUNE_LIBS=''
TUNE_SQR_OBJ=''
U_FOR_BUILD=''
VERSION='6.2.1'
WANT_CXX_FALSE=''
WANT_CXX_TRUE=''
WITH_READLINE_01=''
YACC=''
YFLAGS=''
ac_ct_AR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${prefix}/../tools/gmp/debug/bin'
build='x86_64-pc-mingw32'
build_alias='x86_64-pc-mingw32'
build_cpu='x86_64'
build_os='mingw32'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share/gmp'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
gmp_srclinks=''
host='x86_64-pc-mingw32'
host_alias=''
host_cpu='x86_64'
host_os='mingw32'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/../include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /c/vcpkg/buildtrees/gmp/src/gmp-6.2.1-e782e0632d.clean/install-sh'
libdir='${prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
mpn_objects=''
mpn_objs_in_libgmp=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/C/vcpkg/installed/x64-windows/debug'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${prefix}/../tools/gmp/debug/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

/* confdefs.h */
#define PACKAGE_NAME "GNU MP"
#define PACKAGE_TARNAME "gmp"
#define PACKAGE_VERSION "6.2.1"
#define PACKAGE_STRING "GNU MP 6.2.1"
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html"
#define PACKAGE_URL "https://www.gnu.org/software/gmp/"
#define PACKAGE "gmp"
#define VERSION "6.2.1"
#define WANT_FFT 1
#define HAVE_HOST_CPU_x86_64 1
#define HOST_DOS64 1

configure: exit 1
LilyWangLL commented 2 years ago

Sorry I am late, maybe the reason of could not find a working compiler is your Visual Studio 17.2.1 components missed, you could check the following LLVM components installed or not. The other way is compare your Visual Studio 17.2.1 and Visual Studio 17.1.6, check which components missed.

image

LilyWangLL commented 2 years ago

Ping @MylSh for response.

MylSh commented 2 years ago

Apologies for the late reply.

I only have the one version of Visual Studio on my machine. I have not figured out how to compare the components that were present on my machine before and after the upgrade.

LLVM components were not present in the current 17.2.1 version of Visual Studio. Adding them to 17.2.1 did not fix anything. gmp still won't build and has the same errors.

github-actions[bot] commented 1 year ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.