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

[harfbuzz] Build error on x64-windows #37763

Closed
geiseri opened this issue Mar 27, 2024 · 5 comments
Closed

[harfbuzz] Build error on x64-windows #37763

geiseri opened this issue Mar 27, 2024 · 5 comments
Assignees
Labels
category:question This issue is a question Stale

Comments

@geiseri
Copy link
Contributor

geiseri commented Mar 27, 2024

I am not sure if this is related to #36151, but when I try to build my project from visual studio using manifest mode I see the following error output:

1> [CMake] Building harfbuzz[core,freetype]:[email protected]#1...
1> [CMake] -- Installing port from location: C:\Users\geiseri\AppData\Local\vcpkg\registries\git-trees\1526ee7fd00ec5ec6eac90cc5c8b0c007d25f0f4
1> [CMake] -- Found Python version '3.11.5 at C:/Users/geiseri/AppData/Local/vcpkg/downloads/tools/python/python-3.11.5-x64/python.exe'
1> [CMake] -- Using meson: C:/Users/geiseri/AppData/Local/vcpkg/downloads/tools/meson-1.3.2-20de00/meson.py
1> [CMake] -- Using cached harfbuzz-harfbuzz-8.3.1.tar.gz.
1> [CMake] -- Extracting source C:/Users/geiseri/AppData/Local/vcpkg/downloads/harfbuzz-harfbuzz-8.3.1.tar.gz
1> [CMake] -- Applying patch fix-win32-build.patch
1> [CMake] -- Using source at C:/src/out/build/x64-debug-blh/vcpkg_installed/vcpkg/blds/harfbuzz/src/8.3.1-472e934e2c.clean
1> [CMake] -- Found external ninja('1.11.0').
1> [CMake] -- Getting CMake variables for x64-windows
1> [CMake] -- Configuring x64-windows-dbg
1> [CMake] CMake Error at scripts/cmake/z_vcpkg_setup_pkgconfig_path.cmake:5 (message):
1> [CMake]   BASE_DIRS is required.
1> [CMake] Call Stack (most recent call first):
1> [CMake]   C:/src/out/build/x64-debug-blh/vcpkg_installed/x64-windows/share/vcpkg-tool-meson/vcpkg_configure_meson.cmake:430 (z_vcpkg_setup_pkgconfig_path)
1> [CMake]   C:/Users/geiseri/AppData/Local/vcpkg/registries/git-trees/1526ee7fd00ec5ec6eac90cc5c8b0c007d25f0f4/portfile.cmake:67 (vcpkg_configure_meson)
1> [CMake]   scripts/ports.cmake:170 (include)
1> [CMake] error: building harfbuzz:x64-windows failed with: BUILD_FAILED
1> [CMake] Elapsed time to handle harfbuzz:x64-windows: 6.4 s
1> [CMake] Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
1> [CMake] Then check for known issues at:
1> [CMake]   https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+harfbuzz
1> [CMake] You can submit a new issue at:
1> [CMake]   https://github.com/microsoft/vcpkg/issues/new?title=[harfbuzz]+Build+error+on+x64-windows&body=Copy+issue+body+from+C%3A%2Fsrc%2Fout%2Fbuild%2Fx64-debug-blh%2Fvcpkg_installed%2Fvcpkg%2Fissue_body.md
1> [CMake] 
1> [CMake] -- Running vcpkg install - failed
1> [CMake] CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/vcpkg/scripts/buildsystems/vcpkg.cmake:899 (message):
1> [CMake]   vcpkg install failed.  See logs for more information:
1> [CMake]   C:\src\out\build\x64-debug-blh\vcpkg-manifest-install.log
1> [CMake] Call Stack (most recent call first):
1> [CMake]   C:/Program Files/Microsoft Visual Studio/2022/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/CMakeDetermineSystem.cmake:170 (include)
1> [CMake]   CMakeLists.txt:26 (project)
1> [CMake] CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
1> [CMake] CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
1> [CMake] -- Configuring incomplete, errors occurred!
1> 'C:\Windows\system32\cmd.exe' '/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\PROFESSIONAL\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe"  -G "Ninja"  -DX_VCPKG_APPLOCAL_DEPS_INSTALL:STRING="ON" -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" -DENABLE_GAVS_BRANDING:STRING="ON" -DENABLE_BLH_PASSWORD:STRING="ON" -DCMAKE_INSTALL_PREFIX:PATH="C:/src/out/install/x64-debug-blh" -DCMAKE_TOOLCHAIN_FILE:FILEPATH="C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\vcpkg/scripts/buildsystems/vcpkg.cmake"   -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\PROFESSIONAL\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "C:\src" 2>&1"' execution failed with error: ''C:\Windows\system32\cmd.exe' '/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\PROFESSIONAL\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe"  -G "Ninja"  -DX_VCPKG_APPLOCAL_DEPS_INSTALL:STRING="ON" -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" -DENABLE_GAVS_BRANDING:STRING="ON" -DENABLE_BLH_PASSWORD:STRING="ON" -DCMAKE_INSTALL_PREFIX:PATH="C:/src/out/install/x64-debug-blh" -DCMAKE_TOOLCHAIN_FILE:FILEPATH="C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\vcpkg/scripts/buildsystems/vcpkg.cmake"   -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\PROFESSIONAL\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "C:\src" 2>&1"' returned with exit code: 1'.

I do know that the last working baseline in my manifest was 215a2535590f1f63788ac9bd2ed58ad15e6afdff so before that pull.

What confuses me is that if I run vcpkg install from the project directory it will run to completion. I am wondering if it could also be related to #37615 then. I do have a python that is different installed in my path.

@Neumann-A
Copy link
Contributor

Do a git pull. I think the problem is that you are using a baseline which is newer than your vcpkg checkout and thus the scripts are outdated compared to the baseline.

@FrankXie05 FrankXie05 self-assigned this Mar 28, 2024
@FrankXie05 FrankXie05 added the category:question This issue is a question label Mar 28, 2024
@geiseri
Copy link
Contributor Author

geiseri commented Mar 28, 2024

I can confirm failure with baseline at be9eb6694585a8db137872b29fcad3619a5f893a and vcpkg checkout at 3c76dc55f8bd2b7f4824bcd860055094bfbbb9ea having the baseline back at 3c76dc55f8bd2b7f4824bcd860055094bfbbb9ea causes the build to complete. Between all changes I did a git clean -Xdf . in both my project directory and vcpkg as well as deleting %HOMEPATH%\AppData\Local\vcpkg. Are there other values I should check too?

@geiseri
Copy link
Contributor Author

geiseri commented Mar 28, 2024

What confuses me is that if I run vcpkg install from the project directory it will run to completion. I am wondering if it could also be related to #37615 then. I do have a python that is different installed in my path.

I just noticed this: 1> [CMake] CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/vcpkg/scripts/buildsystems/vcpkg.cmake:899 (message):. I did confirm my environment though: PS C:\src> echo $env:VCPKG_ROOT C:\Users\geiseri\vcpkg. Maybe visual studio is being helpful?

@geiseri
Copy link
Contributor Author

geiseri commented Apr 4, 2024

@Neumann-A It was because I had vcpkg installed from Visual Studio. Once I uninstalled the feature eveerything worked again. Is there a reccomendation to not use that feature in Visual Studio?

Copy link

github-actions bot commented May 3, 2024

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

@github-actions github-actions bot added the Stale label May 3, 2024
@geiseri geiseri closed this as completed May 3, 2024
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 Stale
Projects
None yet
Development

No branches or pull requests

3 participants