Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libffi] Build error on x64-windows #43589

Closed
PorridgeMi opened this issue Feb 2, 2025 · 5 comments
Closed

[libffi] Build error on x64-windows #43589

PorridgeMi opened this issue Feb 2, 2025 · 5 comments
Assignees
Labels
category:question This issue is a question

Comments

@PorridgeMi
Copy link

Package: libffi:[email protected]

Host Environment

  • Host: x64-windows
  • Compiler: MSVC 19.42.34436.0
  • vcpkg-tool version: 2025-01-11-0f310537c75015100d200eb71b137f6376aad510
    vcpkg-scripts version: f3a67b0 2025-01-26 (6 days ago)

To Reproduce

vcpkg install boost

Failure logs

-- Using cached libffi-3.4.6.tar.gz.
-- Cleaning sources at C:/Program Files/vcpkg/buildtrees/libffi/src/libffi-3-5867c437e9.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Program Files/vcpkg/downloads/libffi-3.4.6.tar.gz
-- Applying patch dll-bindir.diff
-- Using source at C:/Program Files/vcpkg/buildtrees/libffi/src/libffi-3-5867c437e9.clean
-- Found external ninja('1.12.1').
-- Getting CMake variables for x64-windows
-- Getting CMake variables for x64-windows
-- Warning: Paths with embedded space may be handled incorrectly by configure:
   C:/Program Files/vcpkg/packages/libffi_x64-windows
   C:/Program Files/vcpkg/installed/x64-windows
   Please move the path to one without whitespaces!
-- Using cached msys2-autoconf-wrapper-20240607-1-any.pkg.tar.zst.
-- Using cached msys2-automake-wrapper-20240607-1-any.pkg.tar.zst.
-- Using cached msys2-binutils-2.43.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libtool-2.4.7-4-x86_64.pkg.tar.zst.
-- Using cached msys2-make-4.4.1-2-x86_64.pkg.tar.zst.
-- Using cached msys2-pkgconf-2.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-which-2.21-4-x86_64.pkg.tar.zst.
-- Using cached msys2-bash-5.2.037-1-x86_64.pkg.tar.zst.
-- Using cached msys2-coreutils-8.32-5-x86_64.pkg.tar.zst.
-- Using cached msys2-file-5.45-3-x86_64.pkg.tar.zst.
-- Using cached msys2-gawk-5.3.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-grep-1~3.0-6-x86_64.pkg.tar.zst.
-- Using cached msys2-gzip-1.13-1-x86_64.pkg.tar.zst.
-- Using cached msys2-diffutils-3.10-1-x86_64.pkg.tar.zst.
-- Using cached msys2-sed-4.9-1-x86_64.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.5.4-2-x86_64.pkg.tar.zst.
-- Using cached msys2-autoconf2.72-2.72-1-any.pkg.tar.zst.
-- Using cached msys2-automake1.16-1.16.5-1-any.pkg.tar.zst.
-- Using cached msys2-automake1.17-1.17-1-any.pkg.tar.zst.
-- Using cached msys2-libiconv-1.17-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libintl-0.22.4-1-x86_64.pkg.tar.zst.
-- Using cached msys2-zlib-1.3.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-tar-1.35-2-x86_64.pkg.tar.zst.
-- Using cached msys2-findutils-4.10.0-2-x86_64.pkg.tar.zst.
-- Using cached msys2-gmp-6.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-gcc-libs-13.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libbz2-1.0.8-4-x86_64.pkg.tar.zst.
-- Using cached msys2-liblzma-5.6.3-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libzstd-1.5.6-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libreadline-8.2.013-1-x86_64.pkg.tar.zst.
-- Using cached msys2-mpfr-4.2.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libpcre-8.45-4-x86_64.pkg.tar.zst.
-- Using cached msys2-m4-1.4.19-2-x86_64.pkg.tar.zst.
-- Using cached msys2-perl-5.38.2-2-x86_64.pkg.tar.zst.
-- Using cached msys2-ncurses-6.5.20240831-2-x86_64.pkg.tar.zst.
-- Using cached msys2-libxcrypt-4.4.36-1-x86_64.pkg.tar.zst.
-- Using msys root at C:/Program Files/vcpkg/downloads/tools/msys2/2db36fb050d01f45
-- Using cached msys2-mingw-w64-x86_64-pkgconf-1~2.3.0-1-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.5.4-2-x86_64.pkg.tar.zst.
-- Using msys root at C:/Program Files/vcpkg/downloads/tools/msys2/21caed2f81ec917b
-- Configuring x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: "C:/Program Files/vcpkg/downloads/tools/msys2/2db36fb050d01f45/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/libffi-3-5867c437e9.clean/configure --build=x86_64-pc-mingw32 \"--enable-portable-binary\" \"--disable-docs\" \"--disable-multi-os-directory\" \"CFLAGS=${CFLAGS} -DFFI_BUILDING_DLL\" \"CCAS=msvcc.sh -m64\" \"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/Program Files/vcpkg/installed/x64-windows/debug\" \"--bindir=\\${prefix}/../tools/libffi/debug/bin\" \"--sbindir=\\${prefix}/../tools/libffi/debug/sbin\" \"--libdir=\\${prefix}/lib\" \"--includedir=\\${prefix}/../include\" \"--datarootdir=\\${prefix}/share/libffi\""
    Working Directory: C:/Program Files/vcpkg/buildtrees/libffi/x64-windows-dbg
    Error code: 77
    See logs for more information:
      C:\Program Files\vcpkg\buildtrees\libffi\config-x64-windows-dbg-config.log
      C:\Program Files\vcpkg\buildtrees\libffi\config-x64-windows-dbg-out.log
      C:\Program Files\vcpkg\buildtrees\libffi\config-x64-windows-dbg-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:866 (vcpkg_execute_required_process)
  ports/libffi/portfile.cmake:49 (vcpkg_configure_make)
  scripts/ports.cmake:196 (include)



C:\Program Files\vcpkg\buildtrees\libffi\config-x64-windows-dbg-err.log
configure: error: in `/c/Program Files/vcpkg/buildtrees/libffi/x64-windows-dbg':
configure: error: C compiler cannot create executables
See `config.log' for more details
C:\Program Files\vcpkg\buildtrees\libffi\config-x64-windows-dbg-out.log
checking build system type... x86_64-pc-mingw32
checking host system type... x86_64-pc-mingw32
checking target system type... x86_64-pc-mingw32
checking for gsed... sed
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 for gcc... compile cl.exe
checking whether the C compiler works... no
C:\Program Files\vcpkg\buildtrees\libffi\config-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 libffi configure 3.4.6, which was
generated by GNU Autoconf 2.71.  Invocation command line was

  $ ./../src/libffi-3-5867c437e9.clean/configure --build=x86_64-pc-mingw32 --enable-portable-binary --disable-docs --disable-multi-os-directory 'CFLAGS=-Xcompiler -nologo -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MDd -Xcompiler -Z7 -Xcompiler -Ob0 -Xcompiler -Od -Xcompiler -RTC1 -DFFI_BUILDING_DLL' 'CCAS=msvcc.sh -m64' 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/Program Files/vcpkg/installed/x64-windows/debug' '--bindir=${prefix}/../tools/libffi/debug/bin' '--sbindir=${prefix}/../tools/libffi/debug/sbin' '--libdir=${prefix}/lib' '--includedir=${prefix}/../include' '--datarootdir=${prefix}/share/libffi'

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

hostname = Porridge
uname -m = x86_64
uname -r = 3.5.4-0bc1222b.x86_64
uname -s = MSYS_NT-10.0-26100
uname -v = 2024-09-04 18:28 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 (x86)/Windows Kits/10/bin/10.0.22621.0/x64/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/VC/VCPackages/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/TestWindow/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/bin/Roslyn/
PATH: /c/Program Files (x86)/Microsoft SDKs/Windows/v10.0A/bin/NETFX 4.8 Tools/x64/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/FSharp/Tools/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Team Tools/DiagnosticsHub/Collector/
PATH: /c/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64/
PATH: /c/Program Files (x86)/Windows Kits/10/bin/x64/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/
PATH: /c/Windows/Microsoft.NET/Framework64/v4.0.30319/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/Tools/
PATH: /c/Program Files/vcpkg/downloads/tools/powershell-core-7.2.24-windows/
PATH: /c/Program Files/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: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/Llvm/x64/bin/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/VC/Linux/bin/ConnectionManagerExe/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/VC/vcpkg/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/
PATH: /c/Program Files/vcpkg/buildtrees/libffi/src/libffi-3-5867c437e9.clean/
PATH: /c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/
PATH: /c/Program Files/vcpkg/downloads/tools/msys2/21caed2f81ec917b/mingw64/bin/


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

configure:3015: looking for aux files: ltmain.sh compile missing install-sh config.guess config.sub
configure:3028:  trying ./../src/libffi-3-5867c437e9.clean/
configure:3057:   ./../src/libffi-3-5867c437e9.clean/ltmain.sh found
configure:3057:   ./../src/libffi-3-5867c437e9.clean/compile found
configure:3057:   ./../src/libffi-3-5867c437e9.clean/missing found
configure:3039:   ./../src/libffi-3-5867c437e9.clean/install-sh found
configure:3057:   ./../src/libffi-3-5867c437e9.clean/config.guess found
configure:3057:   ./../src/libffi-3-5867c437e9.clean/config.sub found
configure:3178: checking build system type
configure:3193: result: x86_64-pc-mingw32
configure:3213: checking host system type
configure:3227: result: x86_64-pc-mingw32
configure:3247: checking target system type
configure:3261: result: x86_64-pc-mingw32
configure:3359: checking for gsed
configure:3395: result: sed
configure:3424: checking for a BSD-compatible install
configure:3497: result: /usr/bin/install -c
configure:3508: checking whether build environment is sane
configure:3563: result: yes
configure:3718: checking for a race-free mkdir -p
configure:3762: result: /usr/bin/mkdir -p
configure:3769: checking for gawk
configure:3790: found /usr/bin/gawk
configure:3801: result: gawk
configure:3812: checking whether make sets $(MAKE)
configure:3835: result: yes
configure:3865: checking whether make supports nested variables
configure:3883: result: yes
configure:4092: checking for gcc
configure:4124: result: compile cl.exe
configure:4477: checking for C compiler version
configure:4486: compile cl.exe --version >&5
Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34436 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:4497: $? = 2
configure:4486: compile cl.exe -v >&5
Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34436 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:4497: $? = 2
configure:4486: compile cl.exe -V >&5
Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34436 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line error D8004 : '/V' requires an argument
configure:4497: $? = 2
configure:4486: compile cl.exe -qversion >&5
Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34436 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:4497: $? = 2
configure:4486: compile cl.exe -version >&5
Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34436 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:4497: $? = 2
configure:4517: checking whether the C compiler works
configure:4539: compile cl.exe -Xcompiler -nologo -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MDd -Xcompiler -Z7 -Xcompiler -Ob0 -Xcompiler -Od -Xcompiler -RTC1 -DFFI_BUILDING_DLL -DWIN32 -D_WINDOWS -D_DEBUG -Xlinker -Xlinker -Xlinker -LIBPATH:C:/Program\ Files/vcpkg/installed/x64-windows/debug/lib -Xlinker -Xlinker -Xlinker -machine:x64 -Xlinker -Xlinker -Xlinker -nologo -Xlinker -Xlinker -Xlinker -debug -Xlinker -Xlinker -Xlinker -INCREMENTAL conftest.c -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -lcomdlg32 -ladvapi32 >&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 D9024 : unrecognized source file type 'Files/vcpkg/installed/x64-windows/debug/lib', object file assumed
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'
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 D9024 : unrecognized source file type 'Files/vcpkg/installed/x64-windows/debug/lib', object file assumed
cl : Command line warning D9002 : ignoring unknown option '-Xcompiler'
cl : Command line warning D9002 : ignoring unknown option '-Xcompiler'
conftest.c
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 D9024 : unrecognized source file type 'Files/vcpkg/installed/x64-windows/debug/lib', object file assumed
cl : Command line warning D9002 : ignoring unknown option '-Xcompiler'
cl : Command line warning D9024 : unrecognized source file type 'Files/vcpkg/installed/x64-windows/debug/lib', object file assumed
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'
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'
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'
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 D9024 : unrecognized source file type 'Files/vcpkg/installed/x64-windows/debug/lib', object file assumed
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 D9024 : unrecognized source file type 'Files/vcpkg/installed/x64-windows/debug/lib', object file assumed
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'
cl : Command line warning D9002 : ignoring unknown option '-Xcompiler'
cl : Command line warning D9024 : unrecognized source file type 'Files/vcpkg/installed/x64-windows/debug/lib', object file assumed
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 D9024 : unrecognized source file type 'Files/vcpkg/installed/x64-windows/debug/lib', object file assumed
cl : Command line warning D9002 : ignoring unknown option '-Xcompiler'
cl : Command line warning D9002 : ignoring unknown option '-Xcompiler'
cl : Command line warning D9024 : unrecognized source file type 'Files/vcpkg/installed/x64-windows/debug/lib', object file assumed
cl : Command line warning D9002 : ignoring unknown option '-Xcompiler'
cl : Command line warning D9002 : ignoring unknown option '-Xcompiler'
cl : Command line warning D9024 : unrecognized source file type 'Files/vcpkg/installed/x64-windows/debug/lib', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'Files/vcpkg/installed/x64-windows/debug/lib', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'Files/vcpkg/installed/x64-windows/debug/lib', object file assumed
LINK : warning LNK4044: unrecognized option '/Xlinker'; ignored
LINK : warning LNK4044: unrecognized option '/Xlinker'; ignored
LINK : warning LNK4044: unrecognized option '/Xlinker'; ignored
LINK : warning LNK4044: unrecognized option '/Xlinker'; ignored
LINK : warning LNK4044: unrecognized option '/Xlinker'; ignored
LINK : fatal error LNK1104: cannot open file 'Files\vcpkg\installed\x64-windows\debug\lib.obj'
configure:4543: $? = 2
configure:4583: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libffi"
| #define PACKAGE_TARNAME "libffi"
| #define PACKAGE_VERSION "3.4.6"
| #define PACKAGE_STRING "libffi 3.4.6"
| #define PACKAGE_BUGREPORT "http://github.com/libffi/libffi/issues"
| #define PACKAGE_URL ""
| #define PACKAGE "libffi"
| #define VERSION "3.4.6"
| /* end confdefs.h.  */
| 
| int
| main (void)
| {
| 
|   ;
|   return 0;
| }
configure:4588: error: in `/c/Program Files/vcpkg/buildtrees/libffi/x64-windows-dbg':
configure:4590: error: C compiler cannot create executables
See `config.log' for more details

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

ac_cv_build=x86_64-pc-mingw32
ac_cv_env_CCASFLAGS_set=
ac_cv_env_CCASFLAGS_value=
ac_cv_env_CCAS_set=set
ac_cv_env_CCAS_value='msvcc.sh -m64'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-DWIN32 -D_WINDOWS -D_DEBUG'
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_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_host=x86_64-pc-mingw32
ac_cv_path_ax_enable_builddir_sed=sed
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_CC='compile cl.exe'
ac_cv_prog_ac_ct_STRIP=:
ac_cv_prog_make_make_set=yes
ac_cv_target=x86_64-pc-mingw32
am_cv_make_support_nested_variables=yes
gl_cv_double_slash_root=yes

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

ACLOCAL='${SHELL} '\''/c/Program Files/vcpkg/buildtrees/libffi/src/libffi-3-5867c437e9.clean/missing'\'' aclocal-1.16'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_LTLDFLAGS=''
AM_RUNTESTFLAGS=''
AM_V='$(V)'
AR='ar-lib lib.exe'
AUTOCONF='${SHELL} '\''/c/Program Files/vcpkg/buildtrees/libffi/src/libffi-3-5867c437e9.clean/missing'\'' autoconf'
AUTOHEADER='${SHELL} '\''/c/Program Files/vcpkg/buildtrees/libffi/src/libffi-3-5867c437e9.clean/missing'\'' autoheader'
AUTOMAKE='${SHELL} '\''/c/Program Files/vcpkg/buildtrees/libffi/src/libffi-3-5867c437e9.clean/missing'\'' automake-1.16'
AWK='gawk'
BUILD_DOCS_FALSE=''
BUILD_DOCS_TRUE=''
CC='compile cl.exe'
CCAS='msvcc.sh -m64'
CCASDEPMODE=''
CCASFLAGS=''
CCDEPMODE=''
CFLAGS='-Xcompiler -nologo -Xcompiler -utf-8 -Xcompiler -MP -Xcompiler -MDd -Xcompiler -Z7 -Xcompiler -Ob0 -Xcompiler -Od -Xcompiler -RTC1 -DFFI_BUILDING_DLL'
CPPFLAGS='-DWIN32 -D_WINDOWS -D_DEBUG'
CSCOPE='cscope'
CTAGS='ctags'
CXX='compile cl.exe'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-Xcompiler -nologo -Xcompiler -utf-8 -Xcompiler -GR -Xcompiler -EHsc -Xcompiler -MP -Xcompiler -MDd -Xcompiler -Z7 -Xcompiler -Ob0 -Xcompiler -Od -Xcompiler -RTC1'
CYGPATH_W='cygpath -w'
DEFS=''
DEPDIR=''
DLLTOOL='link.exe -verbose -dll'
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ETAGS='etags'
EXEEXT=''
FFI_DEBUG_FALSE=''
FFI_DEBUG_TRUE=''
FFI_EXEC_TRAMPOLINE_TABLE=''
FFI_EXEC_TRAMPOLINE_TABLE_FALSE=''
FFI_EXEC_TRAMPOLINE_TABLE_TRUE=''
FGREP=''
FILECMD=''
GREP=''
HAVE_LONG_DOUBLE=''
HAVE_LONG_DOUBLE_VARIANT=''
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 -LIBPATH:C:/Program\ Files/vcpkg/installed/x64-windows/debug/lib -Xlinker -Xlinker -Xlinker -machine:x64 -Xlinker -Xlinker -Xlinker -nologo -Xlinker -Xlinker -Xlinker -debug -Xlinker -Xlinker -Xlinker -INCREMENTAL'
LIBFFI_BUILD_VERSIONED_SHLIB_FALSE=''
LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE=''
LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE=''
LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE=''
LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE=''
LIBFFI_BUILD_VERSIONED_SHLIB_TRUE=''
LIBOBJS=''
LIBS='-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -lcomdlg32 -ladvapi32'
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO='${SHELL} '\''/c/Program Files/vcpkg/buildtrees/libffi/src/libffi-3-5867c437e9.clean/missing'\'' makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/usr/bin/mkdir -p'
NM='dumpbin.exe -symbols -headers'
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OPT_LDFLAGS=''
OTOOL64=''
OTOOL=''
PACKAGE='libffi'
PACKAGE_BUGREPORT='http://github.com/libffi/libffi/issues'
PACKAGE_NAME='libffi'
PACKAGE_STRING='libffi 3.4.6'
PACKAGE_TARNAME='libffi'
PACKAGE_URL=''
PACKAGE_VERSION='3.4.6'
PATH_SEPARATOR=':'
PRTDIAG=''
RANLIB=':'
READELF=''
SECTION_LDFLAGS=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=':'
TARGET=''
TARGETDIR=''
TARGET_OBJ=''
TESTSUBDIR_FALSE=''
TESTSUBDIR_TRUE=''
VERSION='3.4.6'
ac_ct_AR=''
ac_ct_CC='compile cl.exe'
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCCAS_FALSE=''
am__fastdepCCAS_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
ax_enable_builddir_sed='sed'
bindir='${prefix}/../tools/libffi/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/libffi'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
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/Program Files/vcpkg/buildtrees/libffi/src/libffi-3-5867c437e9.clean/install-sh'\'''
libdir='${prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/C/Program Files/vcpkg/installed/x64-windows/debug'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${prefix}/../tools/libffi/debug/sbin'
sharedstatedir='${prefix}/com'
sys_symbol_underscore=''
sysconfdir='${prefix}/etc'
target='x86_64-pc-mingw32'
target_alias=''
target_cpu='x86_64'
target_os='mingw32'
target_vendor='pc'
tmake_file=''
toolexecdir=''
toolexeclibdir=''

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

/* confdefs.h */
#define PACKAGE_NAME "libffi"
#define PACKAGE_TARNAME "libffi"
#define PACKAGE_VERSION "3.4.6"
#define PACKAGE_STRING "libffi 3.4.6"
#define PACKAGE_BUGREPORT "http://github.com/libffi/libffi/issues"
#define PACKAGE_URL ""
#define PACKAGE "libffi"
#define VERSION "3.4.6"

configure: exit 77
@UfaiX04
Copy link

UfaiX04 commented Feb 3, 2025

Getting same error

@JonLiu1993 JonLiu1993 added the requires:repro The issue is not currently repro-able label Feb 5, 2025
@JonLiu1993
Copy link
Member

Thanks for posting this issue. Please make sure you have the following installed.

  • Visual Studio Desktop development with C++.
  • Windows 10 SDK or Windows 11 SDK.

@JonLiu1993 JonLiu1993 added category:question This issue is a question and removed requires:repro The issue is not currently repro-able labels Feb 5, 2025
@PorridgeMi
Copy link
Author

Yes ,I have them installed already

Image

Image

@JonLiu1993
Copy link
Member

@PorridgeMi, Could you please re-clone vcpkg in a path without spaces and try that?
C:\Program Files\vcpkg

@PorridgeMi
Copy link
Author

It got success ! Thank you for helping me. I'm very sorry dor disturb you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

3 participants