microsoft / vcpkg

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

[libffi] Build error on x64-windows #42458

Open mohitdev06 opened 2 days ago

mohitdev06 commented 2 days ago

Operating system

windows

Compiler

MSVC 2019

Steps to reproduce the behavior

**Describe the bug**
The `libffi` package fails to build on x64-windows using vcpkg.

**Environment**
- OS: Windows 10
- Compiler: MSVC 2019

**To Reproduce**
Steps to reproduce the behavior:
1. Clone the vcpkg repository: `git clone https://github.com/microsoft/vcpkg.git`
2. Navigate to the vcpkg directory: `cd vcpkg`
3. Bootstrap vcpkg: `.\bootstrap-vcpkg.bat`
4. Install the `libffi` package: `vcpkg install libffi:x64-windows`
5. See error

**Expected behavior**
The `libffi` package should build successfully without errors.

**Failure logs**
Please attach any relevant log files from the following paths:
- `C:\Users\Mohit Debnath\vcpkg\buildtrees\libffi\config-x64-windows-dbg-config.log`
- `C:\Users\Mohit Debnath\vcpkg\buildtrees\libffi\config-x64-windows-dbg-out.log`
- `C:\Users\Mohit Debnath\vcpkg\buildtrees\libffi\config-x64-windows-dbg-err.log`

**Additional context**
Add any other context about the problem here.

Failure logs

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)

error: building libffi:x64-windows failed with: BUILD_FAILED See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information. Elapsed time to handle libffi:x64-windows: 14 s Please ensure you're using the latest port files with git pull and vcpkg update. Then check for known issues at: https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+libffi You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?title=[libffi]+Build+error+on+x64-windows&body=Copy+issue+body+from+C%3A%2FUsers%2FMohit%20Debnath%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

Additional context

No response

MonicaLiu0311 commented 1 day ago
Please attach any relevant log files from the following paths:
- `C:\Users\Mohit Debnath\vcpkg\buildtrees\libffi\config-x64-windows-dbg-config.log`
- `C:\Users\Mohit Debnath\vcpkg\buildtrees\libffi\config-x64-windows-dbg-out.log`
- `C:\Users\Mohit Debnath\vcpkg\buildtrees\libffi\config-x64-windows-dbg-err.log`

Please provide the detailed log.