microsoft / vcpkg

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

[gmp] Build error #34252

Closed alLiucb closed 9 months ago

alLiucb commented 9 months ago
Copy issue body from D:/dev/vcpkg/installed/vcpkg/issue_body.md Package: gmp:x64-windows -> 6.2.1#21 **Host Environment** - Host: x64-windows - Compiler: MSVC 19.29.30148.0 - vcpkg-tool version: 2023-09-15-ac02a9f660977426b8ec6392919fbb1d51b10998 vcpkg-scripts version: unknown **To Reproduce** `vcpkg install cgal:x64-windows --x-use-aria2` **Failure logs** ``` -- Using cached gmp-6.2.1.tar.xz. -- Cleaning sources at D:/dev/vcpkg/buildtrees/gmp/src/v6.2.1-0c723d4b6f.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source D:/dev/vcpkg/downloads/gmp-6.2.1.tar.xz -- Applying patch asmflags.patch -- Applying patch cross-tools.patch -- Applying patch subdirs.patch -- Applying patch msvc_symbol.patch -- Applying patch arm64-coff.patch -- Applying patch gmp-arm64-asm-fix-5f32dbc41afc.patch -- Using source at D:/dev/vcpkg/buildtrees/gmp/src/v6.2.1-0c723d4b6f.clean -- Found external ninja('1.10.2'). -- Getting CMake variables for x64-windows -- Getting CMake variables for x64-windows -- Using cached msys2-autoconf-wrapper-20221207-1-any.pkg.tar.zst. -- Using cached msys2-automake-wrapper-20221207-1-any.pkg.tar.zst. -- Using cached msys2-binutils-2.40-1-x86_64.pkg.tar.zst. -- Using cached msys2-libtool-2.4.7-3-x86_64.pkg.tar.zst. -- Using cached msys2-make-4.4.1-1-x86_64.pkg.tar.zst. -- Using cached msys2-pkgconf-1.9.4-1-x86_64.pkg.tar.zst. -- Using cached msys2-which-2.21-4-x86_64.pkg.tar.zst. -- Using cached msys2-bash-5.2.015-1-x86_64.pkg.tar.zst. -- Using cached msys2-coreutils-8.32-5-x86_64.pkg.tar.zst. -- Using cached msys2-file-5.44-5-x86_64.pkg.tar.zst. -- Using cached msys2-gawk-5.2.1-2-x86_64.pkg.tar.zst. -- Using cached msys2-grep-1~3.0-6-x86_64.pkg.tar.zst. -- Using cached msys2-gzip-1.12-2-x86_64.pkg.tar.zst. -- Using cached msys2-diffutils-3.9-1-x86_64.pkg.tar.zst. -- Using cached msys2-sed-4.9-1-x86_64.pkg.tar.zst. -- Using cached msys2-msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst. -- Using cached msys2-autoconf2.71-2.71-1-any.pkg.tar.zst. -- Using cached msys2-automake1.16-1.16.5-1-any.pkg.tar.zst. -- Using cached msys2-libiconv-1.17-1-x86_64.pkg.tar.zst. -- Using cached msys2-libintl-0.21-2-x86_64.pkg.tar.zst. -- Using cached msys2-zlib-1.2.13-1-x86_64.pkg.tar.zst. -- Using cached msys2-tar-1.34-3-x86_64.pkg.tar.zst. -- Using cached msys2-findutils-4.9.0-3-x86_64.pkg.tar.zst. -- Using cached msys2-gmp-6.2.1-2-x86_64.pkg.tar.zst. -- Using cached msys2-gcc-libs-11.3.0-3-x86_64.pkg.tar.zst. -- Using cached msys2-libbz2-1.0.8-4-x86_64.pkg.tar.zst. -- Using cached msys2-liblzma-5.4.1-1-x86_64.pkg.tar.zst. -- Using cached msys2-libzstd-1.5.4-1-x86_64.pkg.tar.zst. -- Using cached msys2-libreadline-8.2.001-3-x86_64.pkg.tar.zst. -- Using cached msys2-mpfr-4.2.0-2-x86_64.pkg.tar.zst. -- Using cached msys2-libpcre-8.45-3-x86_64.pkg.tar.zst. -- Using cached msys2-m4-1.4.19-2-x86_64.pkg.tar.zst. -- Using cached msys2-perl-5.36.0-1-x86_64.pkg.tar.zst. -- Using cached msys2-ncurses-6.4-1-x86_64.pkg.tar.zst. -- Using cached msys2-libcrypt-2.1-4-x86_64.pkg.tar.zst. -- Using msys root at D:/dev/vcpkg/downloads/tools/msys2/d7266db249278763 -- Generating configure for x64-windows -- Finished generating configure for x64-windows -- Using cached mingw-w64-i686-pkgconf-1~1.8.0-2-any.pkg.tar.zst. -- Using cached msys2-msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst. -- Using msys root at D:/dev/vcpkg/downloads/tools/msys2/6f3fa1a12ef85a6f -- Configuring x64-windows-dbg -- Configuring x64-windows-rel CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message): Command failed: D:/dev/vcpkg/downloads/tools/msys2/d7266db249278763/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' CPP_FOR_BUILD='compile cl.exe -E' CXX_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=':' AS=':' ./../src/v6.2.1-0c723d4b6f.clean/configure --build=x86_64-pc-mingw32 \"ac_cv_func_memset=yes\" \"gmp_cv_asm_w32=.word\" \"gmp_cv_check_libm_for_build=no\" \"CCAS=clang.exe\" \"ASMFLAGS=-c --target=x86_64-pc-windows-msvc\" \"--enable-cxx\" \"--with-pic\" \"--with-readline=no\" \"gmp_cv_prog_exeext_for_build=.exe\" \"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=/D/dev/vcpkg/installed/x64-windows\" \"--bindir=\\${prefix}/tools/gmp/bin\" \"--sbindir=\\${prefix}/tools/gmp/sbin\" \"--libdir=\\${prefix}/lib\" \"--mandir=\\${prefix}/share/gmp\" \"--docdir=\\${prefix}/share/gmp\" \"--datarootdir=\\${prefix}/share/gmp\"" Working Directory: D:/dev/vcpkg/buildtrees/gmp/x64-windows-rel Error code: 1 See logs for more information: D:\dev\vcpkg\buildtrees\gmp\config-x64-windows-rel-config.log D:\dev\vcpkg\buildtrees\gmp\config-x64-windows-rel-out.log D:\dev\vcpkg\buildtrees\gmp\config-x64-windows-rel-err.log Call Stack (most recent call first): scripts/cmake/vcpkg_configure_make.cmake:838 (vcpkg_execute_required_process) ports/gmp/portfile.cmake:85 (vcpkg_configure_make) scripts/ports.cmake:168 (include) ```
D:\dev\vcpkg\buildtrees\gmp\config-x64-windows-rel-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/v6.2.1-0c723d4b6f.clean/configure --build=x86_64-pc-mingw32 ac_cv_func_memset=yes gmp_cv_asm_w32=.word gmp_cv_check_libm_for_build=no CCAS=clang.exe 'ASMFLAGS=-c --target=x86_64-pc-windows-msvc' --enable-cxx --with-pic --with-readline=no gmp_cv_prog_exeext_for_build=.exe 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=/D/dev/vcpkg/installed/x64-windows '--bindir=${prefix}/tools/gmp/bin' '--sbindir=${prefix}/tools/gmp/sbin' '--libdir=${prefix}/lib' '--mandir=${prefix}/share/gmp' '--docdir=${prefix}/share/gmp' '--datarootdir=${prefix}/share/gmp' ## --------- ## ## Platform. ## ## --------- ## hostname = DESKTOP-BKDETQM uname -m = x86_64 uname -r = 3.4.6.x86_64 uname -s = MSYS_NT-10.0-19044 uname -v = 2023-02-15 18:03 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: /d/VS2019/Common7/IDE/Extensions/Microsoft/IntelliCode/CLI/ PATH: /d/VS2019/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/ PATH: /d/VS2019/Common7/IDE/VC/VCPackages/ PATH: /d/VS2019/Common7/IDE/CommonExtensions/Microsoft/TestWindow/ PATH: /d/VS2019/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/ PATH: /d/VS2019/MSBuild/Current/bin/Roslyn/ PATH: /d/VS2019/Team Tools/Performance Tools/x64/ PATH: /d/VS2019/Team Tools/Performance Tools/ PATH: /d/Program Files (x86)/Microsoft Visual Studio/Shared/Common/VSPerfCollectionTools/vs2019/x64/ PATH: /d/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: /d/VS2019/Common7/IDE/CommonExtensions/Microsoft/FSharp/Tools/ PATH: /d/VS2019/Common7/Tools/devinit/ PATH: /d/Windows Kits/10/bin/10.0.19041.0/x64/ PATH: /d/Windows Kits/10/bin/x64/ PATH: /d/VS2019/MSBuild/Current/Bin/ PATH: /c/Windows/Microsoft.NET/Framework64/v4.0.30319/ PATH: /d/VS2019/Common7/IDE/ PATH: /d/VS2019/Common7/Tools/ PATH: /d/dev/vcpkg/downloads/tools/powershell-core-7.2.11-windows/ PATH: /d/dev/vcpkg/scripts/buildsystems/make_wrapper/ PATH: /usr/share/automake-1.16/ PATH: /usr/bin/ PATH: /c/Windows/system32/ PATH: /c/Windows/ PATH: /c/Windows/system32/Wbem/ PATH: /c/Windows/system32/WindowsPowerShell/v1.0/ PATH: /d/VS2019/VC/Tools/Llvm/x64/bin/ PATH: /d/VS2019/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/ PATH: /d/VS2019/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ PATH: /d/VS2019/Common7/IDE/VC/Linux/bin/ConnectionManagerExe/ PATH: /d/VS2019/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ ... Skipped 3513 lines ... | These do not provoke an error unfortunately, instead are silently treated | as an "x". The following induces an error, until -std is added to get | proper ANSI mode. Curiously \x00 != x always comes out true, for an | array size at least. It is necessary to write \x00 == 0 to get something | that is true only with -std. */ | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | inside strings and character constants. */ | #define FOO(x) 'x' | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | | int test (int i, double x); | struct s1 {int (*f) (int a);}; | struct s2 {int (*f) (double a);}; | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | int, int); | | int | main (int argc, char **argv) | { | int ok = 0; | | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | | return ok; | } | configure:10288: compile cl.exe -std -c -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MD -Xcompiler -O2 -Xcompiler -Oi -Xcompiler -Gy -Xcompiler -Z7 -DWIN32 -D_WINDOWS -DNDEBUG conftest.c >&5 conftest.c conftest.c(20): fatal error C1189: #error: "Compiler does not advertise C89 conformance" cl : Command line warning D9002 : ignoring unknown option '-std' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' configure:10288: $? = 2 configure: failed program was: | /* 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 | #define HAVE_SPEED_CYCLECOUNTER 2 | /* end confdefs.h. */ | | /* Does the compiler advertise C89 conformance? | Do not test the value of __STDC__, because some compilers set it to 0 | while being otherwise adequately conformant. */ | #if !defined __STDC__ | # error "Compiler does not advertise C89 conformance" | #endif | | #include | #include | struct stat; | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ | struct buf { int x; }; | struct buf * (*rcsopen) (struct buf *, struct stat *, int); | static char *e (p, i) | char **p; | int i; | { | return p[i]; | } | static char *f (char * (*g) (char **, int), char **p, ...) | { | char *s; | va_list v; | va_start (v,p); | s = g (p, va_arg (v,int)); | va_end (v); | return s; | } | | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | function prototypes and stuff, but not \xHH hex character constants. | These do not provoke an error unfortunately, instead are silently treated | as an "x". The following induces an error, until -std is added to get | proper ANSI mode. Curiously \x00 != x always comes out true, for an | array size at least. It is necessary to write \x00 == 0 to get something | that is true only with -std. */ | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | inside strings and character constants. */ | #define FOO(x) 'x' | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | | int test (int i, double x); | struct s1 {int (*f) (int a);}; | struct s2 {int (*f) (double a);}; | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | int, int); | | int | main (int argc, char **argv) | { | int ok = 0; | | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | | return ok; | } | configure:10288: compile cl.exe -Ae -c -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MD -Xcompiler -O2 -Xcompiler -Oi -Xcompiler -Gy -Xcompiler -Z7 -DWIN32 -D_WINDOWS -DNDEBUG conftest.c >&5 conftest.c conftest.c(20): fatal error C1189: #error: "Compiler does not advertise C89 conformance" cl : Command line warning D9002 : ignoring unknown option '-Ae' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' configure:10288: $? = 2 configure: failed program was: | /* 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 | #define HAVE_SPEED_CYCLECOUNTER 2 | /* end confdefs.h. */ | | /* Does the compiler advertise C89 conformance? | Do not test the value of __STDC__, because some compilers set it to 0 | while being otherwise adequately conformant. */ | #if !defined __STDC__ | # error "Compiler does not advertise C89 conformance" | #endif | | #include | #include | struct stat; | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ | struct buf { int x; }; | struct buf * (*rcsopen) (struct buf *, struct stat *, int); | static char *e (p, i) | char **p; | int i; | { | return p[i]; | } | static char *f (char * (*g) (char **, int), char **p, ...) | { | char *s; | va_list v; | va_start (v,p); | s = g (p, va_arg (v,int)); | va_end (v); | return s; | } | | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | function prototypes and stuff, but not \xHH hex character constants. | These do not provoke an error unfortunately, instead are silently treated | as an "x". The following induces an error, until -std is added to get | proper ANSI mode. Curiously \x00 != x always comes out true, for an | array size at least. It is necessary to write \x00 == 0 to get something | that is true only with -std. */ | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | inside strings and character constants. */ | #define FOO(x) 'x' | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | | int test (int i, double x); | struct s1 {int (*f) (int a);}; | struct s2 {int (*f) (double a);}; | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | int, int); | | int | main (int argc, char **argv) | { | int ok = 0; | | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | | return ok; | } | configure:10288: compile cl.exe -Aa -D_HPUX_SOURCE -c -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MD -Xcompiler -O2 -Xcompiler -Oi -Xcompiler -Gy -Xcompiler -Z7 -DWIN32 -D_WINDOWS -DNDEBUG conftest.c >&5 conftest.c conftest.c(20): fatal error C1189: #error: "Compiler does not advertise C89 conformance" cl : Command line warning D9002 : ignoring unknown option '-Aa' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' configure:10288: $? = 2 configure: failed program was: | /* 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 | #define HAVE_SPEED_CYCLECOUNTER 2 | /* end confdefs.h. */ | | /* Does the compiler advertise C89 conformance? | Do not test the value of __STDC__, because some compilers set it to 0 | while being otherwise adequately conformant. */ | #if !defined __STDC__ | # error "Compiler does not advertise C89 conformance" | #endif | | #include | #include | struct stat; | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ | struct buf { int x; }; | struct buf * (*rcsopen) (struct buf *, struct stat *, int); | static char *e (p, i) | char **p; | int i; | { | return p[i]; | } | static char *f (char * (*g) (char **, int), char **p, ...) | { | char *s; | va_list v; | va_start (v,p); | s = g (p, va_arg (v,int)); | va_end (v); | return s; | } | | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | function prototypes and stuff, but not \xHH hex character constants. | These do not provoke an error unfortunately, instead are silently treated | as an "x". The following induces an error, until -std is added to get | proper ANSI mode. Curiously \x00 != x always comes out true, for an | array size at least. It is necessary to write \x00 == 0 to get something | that is true only with -std. */ | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | inside strings and character constants. */ | #define FOO(x) 'x' | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | | int test (int i, double x); | struct s1 {int (*f) (int a);}; | struct s2 {int (*f) (double a);}; | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | int, int); | | int | main (int argc, char **argv) | { | int ok = 0; | | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | | return ok; | } | configure:10288: compile cl.exe -Xc -D__EXTENSIONS__ -c -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MD -Xcompiler -O2 -Xcompiler -Oi -Xcompiler -Gy -Xcompiler -Z7 -DWIN32 -D_WINDOWS -DNDEBUG conftest.c >&5 conftest.c conftest.c(20): fatal error C1189: #error: "Compiler does not advertise C89 conformance" cl : Command line warning D9002 : ignoring unknown option '-Xc' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' configure:10288: $? = 2 configure: failed program was: | /* 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 | #define HAVE_SPEED_CYCLECOUNTER 2 | /* end confdefs.h. */ | | /* Does the compiler advertise C89 conformance? | Do not test the value of __STDC__, because some compilers set it to 0 | while being otherwise adequately conformant. */ | #if !defined __STDC__ | # error "Compiler does not advertise C89 conformance" | #endif | | #include | #include | struct stat; | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ | struct buf { int x; }; | struct buf * (*rcsopen) (struct buf *, struct stat *, int); | static char *e (p, i) | char **p; | int i; | { | return p[i]; | } | static char *f (char * (*g) (char **, int), char **p, ...) | { | char *s; | va_list v; | va_start (v,p); | s = g (p, va_arg (v,int)); | va_end (v); | return s; | } | | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | function prototypes and stuff, but not \xHH hex character constants. | These do not provoke an error unfortunately, instead are silently treated | as an "x". The following induces an error, until -std is added to get | proper ANSI mode. Curiously \x00 != x always comes out true, for an | array size at least. It is necessary to write \x00 == 0 to get something | that is true only with -std. */ | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | inside strings and character constants. */ | #define FOO(x) 'x' | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | | int test (int i, double x); | struct s1 {int (*f) (int a);}; | struct s2 {int (*f) (double a);}; | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | int, int); | | int | main (int argc, char **argv) | { | int ok = 0; | | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | | return ok; | } | configure:10301: result: unsupported configure:10330: checking whether compile cl.exe understands -c and -o together configure:10353: compile cl.exe -c conftest.c -o conftest2.obj Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30148 for x64 Copyright (C) Microsoft Corporation. All rights reserved. conftest.c configure:10356: $? = 0 configure:10353: compile cl.exe -c conftest.c -o conftest2.obj Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30148 for x64 Copyright (C) Microsoft Corporation. All rights reserved. conftest.c configure:10356: $? = 0 configure:10368: result: yes configure:10391: checking how to run the C preprocessor configure:10459: result: compile cl.exe -E configure:10473: compile cl.exe -E -DWIN32 -D_WINDOWS -DNDEBUG conftest.c Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30148 for x64 Copyright (C) Microsoft Corporation. All rights reserved. conftest.c configure:10473: $? = 0 configure:10488: compile cl.exe -E -DWIN32 -D_WINDOWS -DNDEBUG conftest.c Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30148 for x64 Copyright (C) Microsoft Corporation. All rights reserved. conftest.c conftest.c(15): fatal error C1083: Cannot open include file: 'ac_nonexistent.h': No such file or directory configure:10488: $? = 2 configure: failed program was: | /* 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 | #define HAVE_SPEED_CYCLECOUNTER 2 | /* end confdefs.h. */ | #include configure:10526: checking build system compiler compile cl.exe configure:10539: compile cl.exe conftest.c Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30148 for x64 Copyright (C) Microsoft Corporation. All rights reserved. configure:10542: $? = 0 ./../src/v6.2.1-0c723d4b6f.clean/configure: line 10544: ./a.out: No such file or directory ./../src/v6.2.1-0c723d4b6f.clean/configure: line 10544: ./b.out: No such file or directory ./../src/v6.2.1-0c723d4b6f.clean/configure: line 10544: ./a.exe: No such file or directory ./../src/v6.2.1-0c723d4b6f.clean/configure: line 10544: ./a_out.exe: No such file or directory configure:10550: result: yes configure:10636: checking for build system preprocessor configure:10666: result: compile cl.exe -E configure:10673: checking for build system executable suffix configure:10705: result: .exe configure:10711: checking whether build system compiler is ANSI configure:10725: compile cl.exe conftest.c Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30148 for x64 Copyright (C) Microsoft Corporation. All rights reserved. configure:10728: $? = 0 configure:10737: result: yes configure:10747: checking for build system compiler math library configure:10780: result: no configure:10931: checking for C++ compiler version configure:10940: compile cl.exe --version >&5 Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30148 for x64 Copyright (C) Microsoft Corporation. All rights reserved. cl : Command line warning D9002 : ignoring unknown option '--version' cl : Command line error D8003 : missing source filename configure:10951: $? = 2 configure:10940: compile cl.exe -v >&5 Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30148 for x64 Copyright (C) Microsoft Corporation. All rights reserved. cl : Command line warning D9002 : ignoring unknown option '-v' cl : Command line error D8003 : missing source filename configure:10951: $? = 2 configure:10940: compile cl.exe -V >&5 Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30148 for x64 Copyright (C) Microsoft Corporation. All rights reserved. cl : Command line error D8004 : '/V' requires an argument configure:10951: $? = 2 configure:10940: compile cl.exe -qversion >&5 Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30148 for x64 Copyright (C) Microsoft Corporation. All rights reserved. cl : Command line warning D9002 : ignoring unknown option '-qversion' cl : Command line error D8003 : missing source filename configure:10951: $? = 2 configure:10955: checking whether the compiler supports GNU C++ configure:10975: compile cl.exe -c -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -GR -Xcompiler -EHsc -Xcompiler -MP -Xcompiler -MD -Xcompiler -O2 -Xcompiler -Oi -Xcompiler -Gy -Xcompiler -Z7 -DWIN32 -D_WINDOWS -DNDEBUG conftest.cpp >&5 conftest.cpp conftest.cpp(20): error C2065: 'choke': undeclared identifier conftest.cpp(20): error C2146: syntax error: missing ';' before identifier 'me' conftest.cpp(20): error C2065: 'me': undeclared identifier cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' configure:10975: $? = 2 configure: failed program was: | /* 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 | #define HAVE_SPEED_CYCLECOUNTER 2 | /* end confdefs.h. */ | | int | main (void) | { | #ifndef __GNUC__ | choke me | #endif | | ; | return 0; | } configure:10985: result: no configure:10996: checking whether compile cl.exe accepts -g configure:11017: compile cl.exe -c -g -DWIN32 -D_WINDOWS -DNDEBUG conftest.cpp >&5 conftest.cpp Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30148 for x64 Copyright (C) Microsoft Corporation. All rights reserved. cl : Command line warning D9002 : ignoring unknown option '-g' configure:11017: $? = 0 configure: failed program was: | /* 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 | #define HAVE_SPEED_CYCLECOUNTER 2 | /* end confdefs.h. */ | | int | main (void) | { | | ; | return 0; | } configure:11033: compile cl.exe -c -DWIN32 -D_WINDOWS -DNDEBUG conftest.cpp >&5 conftest.cpp Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30148 for x64 Copyright (C) Microsoft Corporation. All rights reserved. configure:11033: $? = 0 configure: failed program was: | /* 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 | #define HAVE_SPEED_CYCLECOUNTER 2 | /* end confdefs.h. */ | | int | main (void) | { | | ; | return 0; | } configure:11050: compile cl.exe -c -g -DWIN32 -D_WINDOWS -DNDEBUG conftest.cpp >&5 conftest.cpp Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30148 for x64 Copyright (C) Microsoft Corporation. All rights reserved. cl : Command line warning D9002 : ignoring unknown option '-g' configure:11050: $? = 0 configure:11061: result: yes configure:11081: checking for compile cl.exe option to enable C++11 features configure:11096: compile cl.exe -c -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -GR -Xcompiler -EHsc -Xcompiler -MP -Xcompiler -MD -Xcompiler -O2 -Xcompiler -Oi -Xcompiler -Gy -Xcompiler -Z7 -DWIN32 -D_WINDOWS -DNDEBUG conftest.cpp >&5 conftest.cpp conftest.cpp(61): fatal error C1189: #error: "Compiler does not advertise C++11 conformance" cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' configure:11096: $? = 2 configure: failed program was: | /* 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 | #define HAVE_SPEED_CYCLECOUNTER 2 | /* end confdefs.h. */ | | // Does the compiler advertise C++98 conformance? | #if !defined __cplusplus || __cplusplus < 199711L | # error "Compiler does not advertise C++98 conformance" | #endif | | // These inclusions are to reject old compilers that | // lack the unsuffixed header files. | #include | #include | | // and are *not* freestanding headers in C++98. | extern void assert (int); | namespace std { | extern int strcmp (const char *, const char *); | } | | // Namespaces, exceptions, and templates were all added after "C++ 2.0". | using std::exception; | using std::strcmp; | | namespace { | | void test_exception_syntax() | { | try { | throw "test"; | } catch (const char *s) { | // Extra parentheses suppress a warning when building autoconf itself, | // due to lint rules shared with more typical C programs. | assert (!(strcmp) (s, "test")); | } | } | | template struct test_template | { | T const val; | explicit test_template(T t) : val(t) {} | template T add(U u) { return static_cast(u) + val; } | }; | | } // anonymous namespace | | | // Does the compiler advertise C++ 2011 conformance? | #if !defined __cplusplus || __cplusplus < 201103L | # error "Compiler does not advertise C++11 conformance" | #endif | | namespace cxx11test | { | constexpr int get_val() { return 20; } | | struct testinit | { | int i; | double d; | }; | | class delegate | { | public: | delegate(int n) : n(n) {} | delegate(): delegate(2354) {} | | virtual int getval() { return this->n; }; | protected: | int n; | }; | | class overridden : public delegate | { | public: | overridden(int n): delegate(n) {} | virtual int getval() override final { return this->n * 2; } | }; | | class nocopy | { | public: | nocopy(int i): i(i) {} | nocopy() = default; | nocopy(const nocopy&) = delete; | nocopy & operator=(const nocopy&) = delete; | private: | int i; | }; | | // for testing lambda expressions | template Ret eval(Fn f, Ret v) | { | return f(v); | } | | // for testing variadic templates and trailing return types | template auto sum(V first) -> V | { | return first; | } | template auto sum(V first, Args... rest) -> V | { | return first + sum(rest...); | } | } | | | int | main (int argc, char **argv) | { | int ok = 0; | | assert (argc); | assert (! argv[0]); | { | test_exception_syntax (); | test_template tt (2.0); | assert (tt.add (4) == 6.0); | assert (true && !false); | } | | | { | // Test auto and decltype | auto a1 = 6538; | auto a2 = 48573953.4; | auto a3 = "String literal"; | | int total = 0; | for (auto i = a3; *i; ++i) { total += *i; } | | decltype(a2) a4 = 34895.034; | } | { | // Test constexpr | short sa[cxx11test::get_val()] = { 0 }; | } | { | // Test initializer lists | cxx11test::testinit il = { 4323, 435234.23544 }; | } | { | // Test range-based for | int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, | 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; | for (auto &x : array) { x += 23; } | } | { | // Test lambda expressions | using cxx11test::eval; | assert (eval ([](int x) { return x*2; }, 21) == 42); | double d = 2.0; | assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); | assert (d == 5.0); | assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); | assert (d == 5.0); | } | { | // Test use of variadic templates | using cxx11test::sum; | auto a = sum(1); | auto b = sum(1, 2); | auto c = sum(1.0, 2.0, 3.0); | } | { | // Test constructor delegation | cxx11test::delegate d1; | cxx11test::delegate d2(); | cxx11test::delegate d3(45); | } | { | // Test override and final | cxx11test::overridden o1(55464); | } | { | // Test nullptr | char *c = nullptr; | } | { | // Test template brackets | test_template<::test_template> v(test_template(12)); | } | { | // Unicode literals | char const *utf8 = u8"UTF-8 string \u2500"; | char16_t const *utf16 = u"UTF-8 string \u2500"; | char32_t const *utf32 = U"UTF-32 string \u2500"; | } | | return ok; | } | configure:11114: result: none needed CXXFLAGS chosen by autoconf: -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -GR -Xcompiler -EHsc -Xcompiler -MP -Xcompiler -MD -Xcompiler -O2 -Xcompiler -Oi -Xcompiler -Gy -Xcompiler -Z7 configure:11205: checking C++ compiler compile cl.exe -DWIN32 -D_WINDOWS -DNDEBUG -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -GR -Xcompiler -EHsc -Xcompiler -MP -Xcompiler -MD -Xcompiler -O2 -Xcompiler -Oi -Xcompiler -Gy -Xcompiler -Z7 Test compile: configure:11219: compile cl.exe -DWIN32 -D_WINDOWS -DNDEBUG -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -GR -Xcompiler -EHsc -Xcompiler -MP -Xcompiler -MD -Xcompiler -O2 -Xcompiler -Oi -Xcompiler -Gy -Xcompiler -Z7 conftest.cc >&5 cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' conftest.cc configure:11222: $? = 0 configure:11226: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./../src/v6.2.1-0c723d4b6f.clean/configure: line 11227: ./a.out: No such file or directory ./../src/v6.2.1-0c723d4b6f.clean/configure: line 11227: ./b.out: No such file or directory ./../src/v6.2.1-0c723d4b6f.clean/configure: line 11227: ./a.exe: No such file or directory ./../src/v6.2.1-0c723d4b6f.clean/configure: line 11227: ./a_out.exe: No such file or directory configure:11229: $? = 0 Test compile: namespace configure:11259: compile cl.exe -DWIN32 -D_WINDOWS -DNDEBUG -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -GR -Xcompiler -EHsc -Xcompiler -MP -Xcompiler -MD -Xcompiler -O2 -Xcompiler -Oi -Xcompiler -Gy -Xcompiler -Z7 conftest.cc >&5 cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' conftest.cc configure:11262: $? = 0 configure:11266: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./../src/v6.2.1-0c723d4b6f.clean/configure: line 11267: ./a.out: No such file or directory ./../src/v6.2.1-0c723d4b6f.clean/configure: line 11267: ./b.out: No such file or directory ./../src/v6.2.1-0c723d4b6f.clean/configure: line 11267: ./a.exe: No such file or directory ./../src/v6.2.1-0c723d4b6f.clean/configure: line 11267: ./a_out.exe: No such file or directory configure:11269: $? = 0 Test compile: std iostream configure:11305: compile cl.exe -DWIN32 -D_WINDOWS -DNDEBUG -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -GR -Xcompiler -EHsc -Xcompiler -MP -Xcompiler -MD -Xcompiler -O2 -Xcompiler -Oi -Xcompiler -Gy -Xcompiler -Z7 conftest.cc >&5 cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' cl : Command line warning D9002 : ignoring unknown option '-Xcompiler' conftest.cc configure:11308: $? = 0 configure:11312: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest ./../src/v6.2.1-0c723d4b6f.clean/configure: line 11313: ./a.out: No such file or directory ./../src/v6.2.1-0c723d4b6f.clean/configure: line 11313: ./b.out: No such file or directory ./../src/v6.2.1-0c723d4b6f.clean/configure: line 11313: ./a.exe: No such file or directory ./../src/v6.2.1-0c723d4b6f.clean/configure: line 11313: ./a_out.exe: No such file or directory configure:11315: $? = 127 failed program was: /* This test rejects g++ 2.7.2 which doesn't have , only a pre-standard iostream.h. */ #include /* This test rejects OSF 5.1 Compaq C++ in its default pre-standard iostream mode, since that mode puts cout in the global namespace, not "std". */ void someoutput (void) { std::cout << 123; } int main (void) { return 0; } configure:11334: result: no, std iostream, program does not run configure:11350: error: C++ compiler not available, see config.log for details ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=x86_64-pc-mingw32 ac_cv_c_compiler_gnu=no ac_cv_cxx_compiler_gnu=no 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='-Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MD -Xcompiler -O2 -Xcompiler -Oi -Xcompiler -Gy -Xcompiler -Z7' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value='-DWIN32 -D_WINDOWS -DNDEBUG' ac_cv_env_CPP_FOR_BUILD_set=set ac_cv_env_CPP_FOR_BUILD_value='compile cl.exe -E' 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='-Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -GR -Xcompiler -EHsc -Xcompiler -MP -Xcompiler -MD -Xcompiler -O2 -Xcompiler -Oi -Xcompiler -Gy -Xcompiler -Z7' 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='-Xlinker -Xlinker -Xlinker -LD:/dev/vcpkg/installed/x64-windows/lib -Xlinker -Xlinker -Xlinker -machine:x64 -Xlinker -Xlinker -Xlinker -nologo -Xlinker -Xlinker -Xlinker -DEBUG -Xlinker -Xlinker -Xlinker -INCREMENTAL:NO -Xlinker -Xlinker -Xlinker -OPT:REF -Xlinker -Xlinker -Xlinker -OPT:ICF' 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_exeext=.exe ac_cv_func_memmove=yes ac_cv_func_memset=yes ac_cv_host=x86_64-pc-mingw32 ac_cv_objext=obj ac_cv_path_install='/usr/bin/install -c' ac_cv_path_mkdir=/usr/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_CPP='compile cl.exe -E' ac_cv_prog_ac_ct_CC='compile cl.exe' ac_cv_prog_ac_ct_STRIP=: ac_cv_prog_cc_c11=no ac_cv_prog_cc_c89=no ac_cv_prog_cc_c99=no ac_cv_prog_cc_g=yes ac_cv_prog_cxx_11=no ac_cv_prog_cxx_g=yes ac_cv_prog_cxx_stdcxx= ac_cv_prog_make_make_set=yes am_cv_make_support_nested_variables=yes am_cv_prog_cc_c_o=yes gl_cv_double_slash_root=yes gmp_cv_asm_w32=.word gmp_cv_c_for_build_ansi=yes gmp_cv_check_libm_for_build=no gmp_cv_prog_exeext_for_build=.exe ## ----------------- ## ## Output variables. ## ## ----------------- ## ABI='64' ACLOCAL='${SHELL} '\''/d/dev/vcpkg/buildtrees/gmp/src/v6.2.1-0c723d4b6f.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='-c --target=x86_64-pc-windows-msvc' AUTOCONF='${SHELL} '\''/d/dev/vcpkg/buildtrees/gmp/src/v6.2.1-0c723d4b6f.clean/missing'\'' autoconf' AUTOHEADER='${SHELL} '\''/d/dev/vcpkg/buildtrees/gmp/src/v6.2.1-0c723d4b6f.clean/missing'\'' autoheader' AUTOMAKE='${SHELL} '\''/d/dev/vcpkg/buildtrees/gmp/src/v6.2.1-0c723d4b6f.clean/missing'\'' automake-1.16' AWK='gawk' CALLING_CONVENTIONS_OBJS='' CC='compile cl.exe' CCAS='clang.exe' CC_FOR_BUILD='compile cl.exe' CFLAGS='-Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MD -Xcompiler -O2 -Xcompiler -Oi -Xcompiler -Gy -Xcompiler -Z7' CPP='compile cl.exe -E' CPPFLAGS='-DWIN32 -D_WINDOWS -DNDEBUG' CPP_FOR_BUILD='compile cl.exe -E' CSCOPE='cscope' CTAGS='ctags' CXX='compile cl.exe' CXXCPP='' CXXFLAGS='-Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -GR -Xcompiler -EHsc -Xcompiler -MP -Xcompiler -MD -Xcompiler -O2 -Xcompiler -Oi -Xcompiler -Gy -Xcompiler -Z7' CYGPATH_W='cygpath -w' DEFN_LONG_LONG_LIMB='#define _LONG_LONG_LIMB 1' DEFS='' DLLTOOL='link.exe -verbose -dll' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' ENABLE_STATIC_FALSE='' ENABLE_STATIC_TRUE='' ETAGS='etags' EXEEXT='.exe' EXEEXT_FOR_BUILD='.exe' FGREP='' FILECMD='' 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='-Xlinker -Xlinker -Xlinker -LD:/dev/vcpkg/installed/x64-windows/lib -Xlinker -Xlinker -Xlinker -machine:x64 -Xlinker -Xlinker -Xlinker -nologo -Xlinker -Xlinker -Xlinker -DEBUG -Xlinker -Xlinker -Xlinker -INCREMENTAL:NO -Xlinker -Xlinker -Xlinker -OPT:REF -Xlinker -Xlinker -Xlinker -OPT:ICF' 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} '\''/d/dev/vcpkg/buildtrees/gmp/src/v6.2.1-0c723d4b6f.clean/missing'\'' makeinfo' MANIFEST_TOOL='' MKDIR_P='/usr/bin/mkdir -p' NM='dumpbin.exe -symbols -headers' NMEDIT='' OBJDUMP='' OBJEXT='obj' 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='x86_64.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='compile cl.exe' 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/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='${prefix}/share/gmp' 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} /d/dev/vcpkg/buildtrees/gmp/src/v6.2.1-0c723d4b6f.clean/install-sh' libdir='${prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${prefix}/share/gmp' mkdir_p='$(MKDIR_P)' mpn_objects='' mpn_objs_in_libgmp='' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/D/dev/vcpkg/installed/x64-windows' program_transform_name='s,x,x,' psdir='${docdir}' runstatedir='${localstatedir}/run' sbindir='${prefix}/tools/gmp/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 #define HAVE_SPEED_CYCLECOUNTER 2 configure: exit 1 ```
D:\dev\vcpkg\buildtrees\gmp\config-x64-windows-rel-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 -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MD -Xcompiler -O2 -Xcompiler -Oi -Xcompiler -Gy -Xcompiler -Z7 -DWIN32 -D_WINDOWS -DNDEBUG... yes checking compiler compile cl.exe -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MD -Xcompiler -O2 -Xcompiler -Oi -Xcompiler -Gy -Xcompiler -Z7 -DWIN32 -D_WINDOWS -DNDEBUG has long long... yes checking for gcc... compile cl.exe checking whether the C compiler works... yes checking for C compiler default output file name... conftest.exe checking for suffix of executables... .exe checking whether we are cross compiling... no checking for suffix of object files... obj checking whether the compiler supports GNU C... no checking whether compile cl.exe accepts -g... yes checking for compile cl.exe option to enable C11 features... unsupported checking for compile cl.exe option to enable C99 features... unsupported checking for compile cl.exe option to enable C89 features... unsupported checking whether compile cl.exe understands -c and -o together... yes checking how to run the C preprocessor... compile cl.exe -E checking build system compiler compile cl.exe... conftest.c Microsoft (R) Incremental Linker Version 14.29.30148.0 Copyright (C) Microsoft Corporation. All rights reserved. /out:conftest.exe conftest.obj yes checking for build system preprocessor... compile cl.exe -E checking for build system executable suffix... (cached) .exe checking whether build system compiler is ANSI... conftest.c Microsoft (R) Incremental Linker Version 14.29.30148.0 Copyright (C) Microsoft Corporation. All rights reserved. /out:conftest.exe conftest.obj yes checking for build system compiler math library... (cached) no checking whether the compiler supports GNU C++... no checking whether compile cl.exe accepts -g... yes checking for compile cl.exe option to enable C++11 features... none needed checking C++ compiler compile cl.exe -DWIN32 -D_WINDOWS -DNDEBUG -Xcompiler -nologo -Xcompiler -W3 -Xcompiler -utf-8 -Xcompiler -GR -Xcompiler -EHsc -Xcompiler -MP -Xcompiler -MD -Xcompiler -O2 -Xcompiler -Oi -Xcompiler -Gy -Xcompiler -Z7... no, std iostream, program does not run ```
D:\dev\vcpkg\buildtrees\gmp\config-x64-windows-rel-err.log ``` configure: error: C++ compiler not available, see config.log for details ```
JonLiu1993 commented 9 months ago

Duplicate of https://github.com/microsoft/vcpkg/issues/34229