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 #42156

Open
esvogler opened this issue Nov 14, 2024 · 0 comments
Open

[harfbuzz] Build error on x64-windows #42156

esvogler opened this issue Nov 14, 2024 · 0 comments

Comments

@esvogler
Copy link

Just downloaded and installed the latest vcpkg on a x64 Windows 10 machine.
Visuual Studio 14.0 installed on the system.

Installing freetype with no problems, but installing harfbuzz failed.

vcpkg.exe install harfbuzz fails with the following error.

.\vcpkg.exe install harfbuzz
Computing installation plan...
The following packages will be built and installed:
harfbuzz[core,freetype]:x64-windows@10.1.0
Detecting compiler hash for triplet x64-windows...
Compiler found: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64 /cl.exe
Restored 0 package(s) from C:\Users\sven\AppData\Local\vcpkg\archives in 225 us. Use --debug to see more details.
Installing 1/1 harfbuzz[core,freetype]:x64-windows@10.1.0...
Building harfbuzz[core,freetype]:x64-windows@10.1.0...
-- Found Python version '3.12.7 at C:/Projects/vcpkg/downloads/tools/python/pyth on-3.12.7-x64/python.exe'
-- Using meson: C:/Projects/vcpkg/downloads/tools/meson-1.6.0-ac58a9/meson.py
-- Using cached harfbuzz-harfbuzz-10.1.0.tar.gz.
-- Cleaning sources at C:/Projects/vcpkg/buildtrees/harfbuzz/src/10.1.0-4a762381 cc.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Projects/vcpkg/downloads/harfbuzz-harfbuzz-10.1.0.tar.gz
-- Applying patch fix-win32-build.patch
-- Using source at C:/Projects/vcpkg/buildtrees/harfbuzz/src/10.1.0-4a762381cc.c lean
-- 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:/Projects/vcpkg/downloads/tools/msys2/21caed2f81ec917b
-- Configuring x64-windows-dbg
-- Getting CMake variables for x64-windows
-- Configuring x64-windows-dbg done
-- Configuring x64-windows-rel
-- Configuring x64-windows-rel done
-- Package x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: C:/Projects/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja .exe install -v
Working Directory: C:/Projects/vcpkg/buildtrees/harfbuzz/x64-windows-dbg
Error code: 1
See logs for more information:
C:\Projects\vcpkg\buildtrees\harfbuzz\package-x64-windows-dbg-out.log

Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-tool-meson/vcpkg_install_meson.cmake:33 (vcp kg_execute_required_process)
ports/harfbuzz/portfile.cmake:90 (vcpkg_install_meson)
scripts/ports.cmake:192 (include)

error: building harfbuzz:x64-windows failed with: BUILD_FAILED

In the log file the error is related to a not existing type error in some header files.

[1/75] "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe" "-DWIN32" "-D_WINDOWS" "-utf-8" "-GR" "-EHsc" "-MP" "-D_DEBUG" "-MDd" "-Z7" "-Ob0" "-Od" "-RTC1" "-Isrc\harfbuzz.dll.p" "-Isrc" "-I..\src\10.1.0-4a762381cc.clean\src" "-I." "-I..\src\10.1.0-4a762381cc.clean" "-IC:/Projects/vcpkg/installed/x64-windows/debug/../include" "-IC:/Projects/vcpkg/installed/x64-windows/debug/../include/libpng16" "-IC:/Projects/vcpkg/installed/x64-windows/include" "/MDd" "/nologo" "/showIncludes" "/utf-8" "/W2" "/EHs-c-" "/std:c++14" "/Zi" "/wd4244" "/bigobj" "/utf-8" "-DHAVE_CONFIG_H" "-nologo" "-DWIN32" "-D_WINDOWS" "-utf-8" "-GR" "-EHsc" "-MP" "-D_DEBUG" "-MDd" "-Z7" "-Ob0" "-Od" "-RTC1" "/bigobj" "-DHB_DLL_EXPORT" "/Fdsrc\harfbuzz.dll.p\hb-blob.cc.pdb" /Fosrc/harfbuzz.dll.p/hb-blob.cc.obj "/c" ../src/10.1.0-4a762381cc.clean/src/hb-blob.cc
FAILED: src/harfbuzz.dll.p/hb-blob.cc.obj
"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe" "-DWIN32" "-D_WINDOWS" "-utf-8" "-GR" "-EHsc" "-MP" "-D_DEBUG" "-MDd" "-Z7" "-Ob0" "-Od" "-RTC1" "-Isrc\harfbuzz.dll.p" "-Isrc" "-I..\src\10.1.0-4a762381cc.clean\src" "-I." "-I..\src\10.1.0-4a762381cc.clean" "-IC:/Projects/vcpkg/installed/x64-windows/debug/../include" "-IC:/Projects/vcpkg/installed/x64-windows/debug/../include/libpng16" "-IC:/Projects/vcpkg/installed/x64-windows/include" "/MDd" "/nologo" "/showIncludes" "/utf-8" "/W2" "/EHs-c-" "/std:c++14" "/Zi" "/wd4244" "/bigobj" "/utf-8" "-DHAVE_CONFIG_H" "-nologo" "-DWIN32" "-D_WINDOWS" "-utf-8" "-GR" "-EHsc" "-MP" "-D_DEBUG" "-MDd" "-Z7" "-Ob0" "-Od" "-RTC1" "/bigobj" "-DHB_DLL_EXPORT" "/Fdsrc\harfbuzz.dll.p\hb-blob.cc.pdb" /Fosrc/harfbuzz.dll.p/hb-blob.cc.obj "/c" ../src/10.1.0-4a762381cc.clean/src/hb-blob.cc
cl : Command line warning D9025 : overriding '/EHs' with '/EHs-'
cl : Command line warning D9025 : overriding '/EHc' with '/EHc-'
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
cl : Command line warning D9025 : overriding '/EHs-' with '/EHs'
cl : Command line warning D9025 : overriding '/EHc-' with '/EHc'
cl : Command line warning D9025 : overriding '/Zi' with '/Z7'
c:\projects\vcpkg\buildtrees\harfbuzz\src\10.1.0-4a762381cc.clean\src\hb-vector.hh(505): error C2039: 'cmp': is not a member of 'hb_user_data_array_t::hb_user_data_item_t'
c:\projects\vcpkg\buildtrees\harfbuzz\src\10.1.0-4a762381cc.clean\src\hb-object.hh(162): note: see declaration of 'hb_user_data_array_t::hb_user_data_item_t'
c:\projects\vcpkg\buildtrees\harfbuzz\src\10.1.0-4a762381cc.clean\src\hb-object.hh(48): note: see reference to class template instantiation 'hb_vector_t<item_t,false>' being compiled
with
[
item_t=hb_user_data_array_t::hb_user_data_item_t
]
c:\projects\vcpkg\buildtrees\harfbuzz\src\10.1.0-4a762381cc.clean\src\hb-object.hh(174): note: see reference to class template instantiation 'hb_lockable_set_t<hb_user_data_array_t::hb_user_data_item_t,hb_mutex_t>' being compiled
[2/75] "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe" "-DWIN32" "-D_WINDOWS" "-utf-8" "-GR" "-EHsc" "-MP" "-D_DEBUG" "-MDd" "-Z7" "-Ob0" "-Od" "-RTC1" "-Isrc\harfbuzz.dll.p" "-Isrc" "-I..\src\10.1.0-4a762381cc.clean\src" "-I." "-I..\src\10.1.0-4a762381cc.clean" "-IC:/Projects/vcpkg/installed/x64-windows/debug/../include" "-IC:/Projects/vcpkg/installed/x64-windows/debug/../include/libpng16" "-IC:/Projects/vcpkg/installed/x64-windows/include" "/MDd" "/nologo" "/showIncludes" "/utf-8" "/W2" "/EHs-c-" "/std:c++14" "/Zi" "/wd4244" "/bigobj" "/utf-8" "-DHAVE_CONFIG_H" "-nologo" "-DWIN32" "-D_WINDOWS" "-utf-8" "-GR" "-EHsc" "-MP" "-D_DEBUG" "-MDd" "-Z7" "-Ob0" "-Od" "-RTC1" "/bigobj" "-DHB_DLL_EXPORT" "/Fdsrc\harfbuzz.dll.p\hb-draw.cc.pdb" /Fosrc/harfbuzz.dll.p/hb-draw.cc.obj "/c" ../src/10.1.0-4a762381cc.clean/src/hb-draw.cc
FAILED: src/harfbuzz.dll.p/hb-draw.cc.obj
"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe" "-DWIN32" "-D_WINDOWS" "-utf-8" "-GR" "-EHsc" "-MP" "-D_DEBUG" "-MDd" "-Z7" "-Ob0" "-Od" "-RTC1" "-Isrc\harfbuzz.dll.p" "-Isrc" "-I..\src\10.1.0-4a762381cc.clean\src" "-I." "-I..\src\10.1.0-4a762381cc.clean" "-IC:/Projects/vcpkg/installed/x64-windows/debug/../include" "-IC:/Projects/vcpkg/installed/x64-windows/debug/../include/libpng16" "-IC:/Projects/vcpkg/installed/x64-windows/include" "/MDd" "/nologo" "/showIncludes" "/utf-8" "/W2" "/EHs-c-" "/std:c++14" "/Zi" "/wd4244" "/bigobj" "/utf-8" "-DHAVE_CONFIG_H" "-nologo" "-DWIN32" "-D_WINDOWS" "-utf-8" "-GR" "-EHsc" "-MP" "-D_DEBUG" "-MDd" "-Z7" "-Ob0" "-Od" "-RTC1" "/bigobj" "-DHB_DLL_EXPORT" "/Fdsrc\harfbuzz.dll.p\hb-draw.cc.pdb" /Fosrc/harfbuzz.dll.p/hb-draw.cc.obj "/c" ../src/10.1.0-4a762381cc.clean/src/hb-draw.cc
cl : Command line warning D9025 : overriding '/EHs' with '/EHs-'
cl : Command line warning D9025 : overriding '/EHc' with '/EHc-'
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
cl : Command line warning D9025 : overriding '/EHs-' with '/EHs'
cl : Command line warning D9025 : overriding '/EHc-' with '/EHc'
cl : Command line warning D9025 : overriding '/Zi' with '/Z7'
c:\projects\vcpkg\buildtrees\harfbuzz\src\10.1.0-4a762381cc.clean\src\hb-vector.hh(505): error C2039: 'cmp': is not a member of 'hb_user_data_array_t::hb_user_data_item_t'
c:\projects\vcpkg\buildtrees\harfbuzz\src\10.1.0-4a762381cc.clean\src\hb-object.hh(162): note: see declaration of 'hb_user_data_array_t::hb_user_data_item_t'
c:\projects\vcpkg\buildtrees\harfbuzz\src\10.1.0-4a762381cc.clean\src\hb-object.hh(48): note: see reference to class template instantiation 'hb_vector_t<item_t,false>' being compiled
with
[
item_t=hb_user_data_array_t::hb_user_data_item_t
]
c:\projects\vcpkg\buildtrees\harfbuzz\src\10.1.0-4a762381cc.clean\src\hb-object.hh(174): note: see reference to class template instantiation 'hb_lockable_set_t<hb_user_data_array_t::hb_user_data_item_t,hb_mutex_t>' being compiled
[3/75] "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe" "-DWIN32" "-D_WINDOWS" "-utf-8" "-GR" "-EHsc" "-MP" "-D_DEBUG" "-MDd" "-Z7" "-Ob0" "-Od" "-RTC1" "-Isrc\harfbuzz.dll.p" "-Isrc" "-I..\src\10.1.0-4a762381cc.clean\src" "-I." "-I..\src\10.1.0-4a762381cc.clean" "-IC:/Projects/vcpkg/installed/x64-windows/debug/../include" "-IC:/Projects/vcpkg/installed/x64-windows/debug/../include/libpng16" "-IC:/Projects/vcpkg/installed/x64-windows/include" "/MDd" "/nologo" "/showIncludes" "/utf-8" "/W2" "/EHs-c-" "/std:c++14" "/Zi" "/wd4244" "/bigobj" "/utf-8" "-DHAVE_CONFIG_H" "-nologo" "-DWIN32" "-D_WINDOWS" "-utf-8" "-GR" "-EHsc" "-MP" "-D_DEBUG" "-MDd" "-Z7" "-Ob0" "-Od" "-RTC1" "/bigobj" "-DHB_DLL_EXPORT" "/Fdsrc\harfbuzz.dll.p\hb-common.cc.pdb" /Fosrc/harfbuzz.dll.p/hb-common.cc.obj "/c" ../src/10.1.0-4a762381cc.clean/src/hb-common.cc
FAILED: src/harfbuzz.dll.p/hb-common.cc.obj

I have no idea how to fix this, tried several times re-installation of the whole vcpkg with no success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant