microsoft / vcpkg

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

[opencascade] build failure #35476

Closed Bzz2745 closed 10 months ago

Bzz2745 commented 11 months ago

Operating system

Windows 11

Compiler

MSVC vc143

Steps to reproduce the behavior

`vcpkg install  vcpkg install opencascade[freeimage,rapidjson,samples,tbb]:x64-windows --clean-after-build --binarysource=clear`

Failure logs

Computing installation plan...
The following packages will be built and installed:
    opencascade[core,freeimage,freetype,rapidjson,samples,tbb]:x64-windows -> 7.7.2#2
Detecting compiler hash for triplet x64-windows...
Installing 1/1 opencascade:x64-windows...
Building opencascade[core,freeimage,freetype,rapidjson,samples,tbb]:x64-windows...
-- Downloading https://github.com/Open-Cascade-SAS/OCCT/archive/V7_7_2.tar.gz -> Open-Cascade-SAS-OCCT-V7_7_2.tar.gz...
-- Extracting source C:/vcpkg/downloads/Open-Cascade-SAS-OCCT-V7_7_2.tar.gz
-- Applying patch dependencies.patch
-- Applying patch drop-bin-letter-d.patch
-- Applying patch fix-pdb-find.patch
-- Applying patch fix-install-prefix-path.patch
-- Applying patch install-include-dir.patch
-- Using source at C:/vcpkg/buildtrees/opencascade/src/V7_7_2-5faf513493.clean
-- Found external ninja('1.11.0').
-- Configuring x64-windows
-- Building x64-windows-dbg
CMake Warning at scripts/cmake/vcpkg_execute_build_process.cmake:65 (message):
  Please ensure your system has sufficient memory.
Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/opencascade/portfile.cmake:52 (vcpkg_cmake_install)
  scripts/ports.cmake:170 (include)

-- Restarting build without parallelism
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: C:/vcpkg/downloads/tools/cmake-3.27.1-windows/cmake-3.27.1-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j13
    Working Directory: C:/vcpkg/buildtrees/opencascade/x64-windows-dbg
    See logs for more information:
      C:\vcpkg\buildtrees\opencascade\install-x64-windows-dbg-out.log
      C:\vcpkg\buildtrees\opencascade\install-x64-windows-dbg-out-1.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/opencascade/portfile.cmake:52 (vcpkg_cmake_install)
  scripts/ports.cmake:170 (include)

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

[2316/5599] C:\PROGRA~1\MICROS~2\2022\Enterprise\VC\Tools\MSVC\14.37.32822\bin\Hostx64\x64\cl.exe   /TP -DHAVE_FREEIMAGE -DHAVE_FREETYPE -DHAVE_OPENGL -DHAVE_OPENGL_EXT -DHAVE_RAPIDJSON -DHAVE_TBB -DTBB_USE_DEBUG -DTKV3d_EXPORTS -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_UNICODE -IC:\vcpkg\buildtrees\opencascade\x64-windows-dbg\include\opencascade -external:IC:\vcpkg\installed\x64-windows\include -external:W0 /nologo   /W4 /utf-8 /GR /EHa /MP  /fp:precise /fp:precise /wd"26812" /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -D__V3d_DLL -D__Select3D_DLL -D__Prs3d_DLL -D__StdPrs_DLL -D__SelectBasics_DLL -D__SelectMgr_DLL -D__PrsMgr_DLL -D__AIS_DLL -D__StdSelect_DLL -D__DsgPrs_DLL -D__PrsDim_DLL /showIncludes /Fosrc\TKV3d\CMakeFiles\TKV3d.dir\__\V3d\V3d_Plane.cxx.obj /Fdsrc\TKV3d\CMakeFiles\TKV3d.dir\ /FS -c C:\vcpkg\buildtrees\opencascade\src\V7_7_2-5faf513493.clean\src\V3d\V3d_Plane.cxx
[2317/5599] cmd.exe /C "cd . && C:\vcpkg\downloads\tools\cmake-3.27.1-windows\cmake-3.27.1-windows-i386\bin\cmake.exe -E vs_link_dll --intdir=src\TKService\CMakeFiles\TKService.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\10.0.22621.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\10.0.22621.0\x64\mt.exe --manifests  -- C:\PROGRA~1\MICROS~2\2022\Enterprise\VC\Tools\MSVC\14.37.32822\bin\Hostx64\x64\link.exe  @CMakeFiles\TKService.rsp  /out:win64\vc14\bind\TKService.dll /implib:win64\vc14\libd\TKService.lib /pdb:win64\vc14\bin\TKService.pdb /dll /version:7.7 /machine:x64 /nologo    /debug /INCREMENTAL  && cd ."
FAILED: win64/vc14/bind/TKService.dll win64/vc14/libd/TKService.lib 
cmd.exe /C "cd . && C:\vcpkg\downloads\tools\cmake-3.27.1-windows\cmake-3.27.1-windows-i386\bin\cmake.exe -E vs_link_dll --intdir=src\TKService\CMakeFiles\TKService.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\10.0.22621.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\10.0.22621.0\x64\mt.exe --manifests  -- C:\PROGRA~1\MICROS~2\2022\Enterprise\VC\Tools\MSVC\14.37.32822\bin\Hostx64\x64\link.exe  @CMakeFiles\TKService.rsp  /out:win64\vc14\bind\TKService.dll /implib:win64\vc14\libd\TKService.lib /pdb:win64\vc14\bin\TKService.pdb /dll /version:7.7 /machine:x64 /nologo    /debug /INCREMENTAL  && cd ."
LINK Pass 1: command "C:\PROGRA~1\MICROS~2\2022\Enterprise\VC\Tools\MSVC\14.37.32822\bin\Hostx64\x64\link.exe @CMakeFiles\TKService.rsp /out:win64\vc14\bind\TKService.dll /implib:win64\vc14\libd\TKService.lib /pdb:win64\vc14\bin\TKService.pdb /dll /version:7.7 /machine:x64 /nologo /debug /INCREMENTAL /MANIFEST /MANIFESTFILE:src\TKService\CMakeFiles\TKService.dir/intermediate.manifest src\TKService\CMakeFiles\TKService.dir/manifest.res" failed (exit code 1104) with the following output:
LINK : fatal error LNK1104: cannot open file 'FreeImage.lib'

Additional context

install-x64-windows-dbg-out.log

I have already installed freeimage with vcpkg but didn't find freeimage.lib.

MonicaLiu0311 commented 11 months ago

Confirm, repro locally.

PS G:\vcpkg> ./vcpkg version
vcpkg package management program version 2023-11-16-4c1df40a3c5c5e18de299a99e9accb03c2a82e1e

See LICENSE.txt for license information.
dg0yt commented 11 months ago

The needed debug link lib is FreeImaged.lib

Bzz2745 commented 11 months ago

FreeImaged.lib This file still not exist after I installed freeimage.

dg0yt commented 11 months ago

It exists in debug/lib.

Bzz2745 commented 11 months ago

It exists in debug/lib.

I have find that file now, but the bug still exist.

dg0yt commented 11 months ago

Yes.