Vcpkg: [qt5-base:x64-windows] build failure

Created on 9 Jul 2020  路  14Comments  路  Source: microsoft/vcpkg

Host Environment

  • OS: Windows
  • Compiler: VS 2019 16.6.3 (latest version)

To Reproduce
Steps to reproduce the behavior:
./vcpkg upgrade --no-dry-run

Failure logs

cl : Command line warning D9025 : overriding '/Fo./' with '/Foqlibraryinfo_final.obj'
WARNING: Failure to find: C:/src/vcpkg/buildtrees/qt5-base/x64-windows-dbg/src/corelib/qt5cored_metatypes.json
WARNING: Failure to find: C:/src/vcpkg/buildtrees/qt5-base/x64-windows-dbg/src/corelib/qt5core_metatypes.json
Error: dependent 'C:\src\vcpkg\buildtrees\qt5-base\x64-windows-dbg\src\corelib\qt5cored_metatypes.json' does not exist.
jom: C:\src\vcpkg\buildtrees\qt5-base\x64-windows-dbg\src\corelib\Makefile [debug] Error 2
jom: C:\src\vcpkg\buildtrees\qt5-base\x64-windows-dbg\src\Makefile [sub-corelib-make_first] Error 2
jom: C:\src\vcpkg\buildtrees\qt5-base\x64-windows-dbg\Makefile [sub-src-make_first] Error 2

Additional context
Upgrading my vcpkg install folder today, with the QT5 port updated to 5.15 #11596 , lead to failure.
Re-launching the installation gives the same failure.
Other issues regarding latest qt5 update are also emerging from ci #12229 #11130

port-bug repro

All 14 comments

Other issues regarding latest qt5 update are also emerging from ci #12229 #11130

Nothing to see here. qt5-imageformats is sometimes a bit flaky and just need to be rerun and the qt5-base regression is a download failure of winflexbison.

I also get the warnings:

cl : Command line warning D9025 : overriding '/Fo./' with '/Foqlibraryinfo_final.obj'
WARNING: Failure to find: E:/qt/buildtrees/qt5-base/x64-windows-static-dbg/src/corelib/qt5cored_metatypes.json
WARNING: Failure to find: E:/qt/buildtrees/qt5-base/x64-windows-static-dbg/src/corelib/qt5core_metatypes.json
E:\qt\buildtrees\qt5-base\src\5.15.0-f256990b37.clean\src\corelib\kernel\qobjectdefs.h(0): Note: No relevant classes found. No output generated.
WARNING: Failure to find: E:/qt/buildtrees/qt5-base/x64-windows-static-dbg/src/gui/qt5guid_metatypes.json
WARNING: Failure to find: E:/qt/buildtrees/qt5-base/x64-windows-static-dbg/src/gui/qt5gui_metatypes.json
E:\qt\buildtrees\qt5-base\src\5.15.0-f256990b37.clean\src\network\access\qnetworkaccessdebugpipebackend_p.h(0): Note: No relevant classes found. No output generated.
WARNING: Failure to find: E:/qt/buildtrees/qt5-base/x64-windows-static-dbg/src/widgets/qt5widgetsd_metatypes.json
WARNING: Failure to find: E:/qt/buildtrees/qt5-base/x64-windows-static-dbg/src/widgets/qt5widgets_metatypes.json

but the build succeeds. I also see the *.json files in the buildtree being generated. hmm...

>CMake Error at /Users/vagrant/Data/installed/x64-osx/share/cmake/Qt5Core/Qt5CoreConfig.cmake:95 (message):
  Library not found: zstd
Call Stack (most recent call first):
  /Users/vagrant/Data/installed/x64-osx/share/cmake/Qt5Core/Qt5CoreConfig.cmake:285 (_qt5_Core_process_prl_file)
  /Volumes/data/work/1/s/scripts/buildsystems/vcpkg.cmake:415 (_find_package)
  /Users/vagrant/Data/installed/x64-osx/share/cmake/Qt5Gui/Qt5GuiConfig.cmake:231 (find_package)
  /Volumes/data/work/1/s/scripts/buildsystems/vcpkg.cmake:415 (_find_package)
  /Users/vagrant/Data/installed/x64-osx/share/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:231 (find_package)
  /Volumes/data/work/1/s/scripts/buildsystems/vcpkg.cmake:415 (_find_package)
  software/VO/AlternativeVO/CMakeLists.txt:7 (find_package)

From https://github.com/microsoft/vcpkg/pull/12229#issuecomment-656078755: Update qt5-base build-depends to include zstd. (Currently trying to find the place actually introducing zstd; actually it is a hidden dependency. Qt tests if it is available and if it is it will just use it without any way to deactivate/toggle it.....)

@JackBoosY why requires:repro?

@cenit Because I can't reproduce this issue on my machine:

PS F:\vcpkg> .\vcpkg.exe install qt5-base:x64-windows
Computing installation plan...
The following packages will be built and installed:
    qt5-base[core]:x64-windows
Starting package 1/1: qt5-base:x64-windows
Building package qt5-base[core]:x64-windows...
-- Figuring out qt target mkspec. Target arch x64
-- Target mkspec set to: win32-msvc
-- Host mkspec not set. Qt's own buildsystem will try to figure out the host system
-- Downloading http://download.qt.io/official_releases/qt/5.15/5.15.0/submodules/qtbase-everywhere-src-5.15.0.tar.xz...
-- Extracting source F:/vcpkg/downloads/qtbase-everywhere-src-5.15.0.tar.xz
cmd: F:/vcpkg/downloads/tools/cmake-3.17.2-windows/cmake-3.17.2-win32-x86/bin/cmake.exe;-E;tar;xjf;F:/vcpkg/downloads/qtbase-everywhere-src-5.15.0.tar.xz
-- Applying patch patches/winmain_pro.patch
-- Applying patch patches/windows_prf.patch
-- Applying patch patches/qt_app.patch
-- Applying patch patches/gui_configure.patch
-- Applying patch patches/icu.patch
-- Applying patch patches/xlib.patch
-- Applying patch patches/egl.patch
-- Applying patch patches/8c44d70.diff
-- Applying patch patches/Qt5BasicConfig.patch
-- Applying patch patches/Qt5PluginTarget.patch
-- Applying patch patches/create_cmake.patch
-- Applying patch patches/Qt5GuiConfigExtras.patch
-- Using source at F:/vcpkg/buildtrees/qt5-base/src/5.15.0-f256990b37.clean
-- Configuring x64-windows-dbg
cmd: F:/vcpkg/buildtrees/qt5-base/src/5.15.0-f256990b37.clean/configure.bat;-confirm-license;-opensource;-verbose;-system-zlib;-system-libjpeg;-system-libpng;-system-freetype;-system-pcre;-system-doubleconversion;-system-sqlite;-system-harfbuzz;-icu;-no-angle;-opengl;dynamic;-nomake;examples;-nomake;tests;LIBJPEG_LIBS=F:/vcpkg/installed/x64-windows/debug/lib/jpegd.lib;ZLIB_LIBS=F:/vcpkg/installed/x64-windows/debug/lib/zlibd.lib;LIBPNG_LIBS=F:/vcpkg/installed/x64-windows/debug/lib/libpng16d.lib F:/vcpkg/installed/x64-windows/debug/lib/zlibd.lib;PCRE2_LIBS=F:/vcpkg/installed/x64-windows/debug/lib/pcre2-16d.lib;FREETYPE_LIBS=F:/vcpkg/installed/x64-windows/debug/lib/freetyped.lib F:/vcpkg/installed/x64-windows/debug/lib/bz2d.lib F:/vcpkg/installed/x64-windows/debug/lib/libpng16d.lib F:/vcpkg/installed/x64-windows/debug/lib/zlibd.lib;ICU_LIBS=F:/vcpkg/installed/x64-windows/debug/lib/icuind.lib F:/vcpkg/installed/x64-windows/debug/lib/icutud.lib  F:/vcpkg/installed/x64-windows/debug/lib/icuucd.lib F:/vcpkg/installed/x64-windows/debug/lib/icuiod.lib F:/vcpkg/installed/x64-windows/debug/lib/icudtd.lib Advapi32.lib;QMAKE_LIBS_PRIVATE+=F:/vcpkg/installed/x64-windows/debug/lib/bz2d.lib;QMAKE_LIBS_PRIVATE+=F:/vcpkg/installed/x64-windows/debug/lib/libpng16d.lib;PSQL_LIBS=F:/vcpkg/installed/x64-windows/debug/lib/libpq.lib F:/vcpkg/installed/x64-windows/debug/lib/libssl.lib F:/vcpkg/installed/x64-windows/debug/lib/libcrypto.lib ws2_32.lib secur32.lib advapi32.lib shell32.lib crypt32.lib user32.lib gdi32.lib;SQLITE_LIBS=F:/vcpkg/installed/x64-windows/debug/lib/sqlite3.lib;HARFBUZZ_LIBS=F:/vcpkg/installed/x64-windows/debug/lib/harfbuzz.lib F:/vcpkg/installed/x64-windows/debug/lib/freetyped.lib F:/vcpkg/installed/x64-windows/debug/lib/bz2d.lib F:/vcpkg/installed/x64-windows/debug/lib/libpng16d.lib F:/vcpkg/installed/x64-windows/debug/lib/zlibd.lib;OPENSSL_LIBS=F:/vcpkg/installed/x64-windows/debug/lib/libssl.lib F:/vcpkg/installed/x64-windows/debug/lib/libcrypto.lib ws2_32.lib secur32.lib advapi32.lib shell32.lib crypt32.lib user32.lib gdi32.lib;-debug;-prefix;F:/vcpkg/installed/x64-windows;-extprefix;F:/vcpkg/installed/x64-windows;-hostprefix;F:/vcpkg/installed/x64-windows/tools/qt5/debug;-hostlibdir;F:/vcpkg/installed/x64-windows/tools/qt5/debug/lib;-hostbindir;F:/vcpkg/installed/x64-windows/tools/qt5/debug/bin;-archdatadir;F:/vcpkg/installed/x64-windows/tools/qt5/debug;-datadir;F:/vcpkg/installed/x64-windows/share/qt5/debug;-plugindir;F:/vcpkg/installed/x64-windows/debug/plugins;-qmldir;F:/vcpkg/installed/x64-windows/debug/qml;-headerdir;F:/vcpkg/installed/x64-windows/include;-libexecdir;F:/vcpkg/installed/x64-windows/tools/qt5/debug;-bindir;F:/vcpkg/installed/x64-windows/debug/bin;-libdir;F:/vcpkg/installed/x64-windows/debug/lib;-I;F:/vcpkg/installed/x64-windows/include;-L;F:/vcpkg/installed/x64-windows/debug/lib;-L;F:/vcpkg/installed/x64-windows/debug/lib/manual-link;-xplatform;win32-msvc
-- Configuring x64-windows-dbg done
-- Configuring x64-windows-rel
cmd: F:/vcpkg/buildtrees/qt5-base/src/5.15.0-f256990b37.clean/configure.bat;-confirm-license;-opensource;-verbose;-system-zlib;-system-libjpeg;-system-libpng;-system-freetype;-system-pcre;-system-doubleconversion;-system-sqlite;-system-harfbuzz;-icu;-no-angle;-opengl;dynamic;-nomake;examples;-nomake;tests;LIBJPEG_LIBS=F:/vcpkg/installed/x64-windows/lib/jpeg.lib;ZLIB_LIBS=F:/vcpkg/installed/x64-windows/lib/zlib.lib;LIBPNG_LIBS=F:/vcpkg/installed/x64-windows/lib/libpng16.lib F:/vcpkg/installed/x64-windows/lib/zlib.lib;PCRE2_LIBS=F:/vcpkg/installed/x64-windows/lib/pcre2-16.lib;FREETYPE_LIBS=F:/vcpkg/installed/x64-windows/lib/freetype.lib F:/vcpkg/installed/x64-windows/lib/bz2.lib F:/vcpkg/installed/x64-windows/lib/libpng16.lib F:/vcpkg/installed/x64-windows/lib/zlib.lib;ICU_LIBS=F:/vcpkg/installed/x64-windows/lib/icuin.lib F:/vcpkg/installed/x64-windows/lib/icutu.lib  F:/vcpkg/installed/x64-windows/lib/icuuc.lib F:/vcpkg/installed/x64-windows/lib/icuio.lib F:/vcpkg/installed/x64-windows/lib/icudt.lib Advapi32.lib;QMAKE_LIBS_PRIVATE+=F:/vcpkg/installed/x64-windows/lib/bz2.lib;QMAKE_LIBS_PRIVATE+=F:/vcpkg/installed/x64-windows/lib/libpng16.lib;PSQL_LIBS=F:/vcpkg/installed/x64-windows/lib/libpq.lib F:/vcpkg/installed/x64-windows/lib/libssl.lib F:/vcpkg/installed/x64-windows/lib/libcrypto.lib ws2_32.lib secur32.lib advapi32.lib shell32.lib crypt32.lib user32.lib gdi32.lib;SQLITE_LIBS=F:/vcpkg/installed/x64-windows/lib/sqlite3.lib;HARFBUZZ_LIBS=F:/vcpkg/installed/x64-windows/lib/harfbuzz.lib F:/vcpkg/installed/x64-windows/lib/freetype.lib F:/vcpkg/installed/x64-windows/lib/bz2.lib F:/vcpkg/installed/x64-windows/lib/libpng16.lib F:/vcpkg/installed/x64-windows/lib/zlib.lib;OPENSSL_LIBS=F:/vcpkg/installed/x64-windows/lib/libssl.lib F:/vcpkg/installed/x64-windows/lib/libcrypto.lib ws2_32.lib secur32.lib advapi32.lib shell32.lib crypt32.lib user32.lib gdi32.lib;-release;-prefix;F:/vcpkg/installed/x64-windows;-extprefix;F:/vcpkg/installed/x64-windows;-hostprefix;F:/vcpkg/installed/x64-windows/tools/qt5;-hostlibdir;F:/vcpkg/installed/x64-windows/tools/qt5/lib;-hostbindir;F:/vcpkg/installed/x64-windows/tools/qt5/bin;-archdatadir;F:/vcpkg/installed/x64-windows/tools/qt5;-datadir;F:/vcpkg/installed/x64-windows/share/qt5;-plugindir;F:/vcpkg/installed/x64-windows/plugins;-qmldir;F:/vcpkg/installed/x64-windows/qml;-headerdir;F:/vcpkg/installed/x64-windows/include;-libexecdir;F:/vcpkg/installed/x64-windows/tools/qt5;-bindir;F:/vcpkg/installed/x64-windows/bin;-libdir;F:/vcpkg/installed/x64-windows/lib;-I;F:/vcpkg/installed/x64-windows/include;-L;F:/vcpkg/installed/x64-windows/lib;-L;F:/vcpkg/installed/x64-windows/lib/manual-link;-xplatform;win32-msvc
-- Configuring x64-windows-rel done
-- Building x64-windows-dbg
cmd: F:/vcpkg/downloads/tools/jom/jom-1.1.3/jom.exe;/J;9
-- Fixing makefile installation path x64-windows-dbg
-- Installing x64-windows-dbg
cmd: F:/vcpkg/downloads/tools/jom/jom-1.1.3/jom.exe;/J;9;install
-- Package x64-windows-dbg done
-- Building x64-windows-rel
cmd: F:/vcpkg/downloads/tools/jom/jom-1.1.3/jom.exe;/J;9
-- Fixing makefile installation path x64-windows-rel
-- Installing x64-windows-rel
cmd: F:/vcpkg/downloads/tools/jom/jom-1.1.3/jom.exe;/J;9;install
-- Package x64-windows-rel done
-- Installing: F:/vcpkg/packages/qt5-base_x64-windows/share/qt5-base/copyright
-- Performing post-build validation
-- Performing post-build validation done
Building package qt5-base[core]:x64-windows... done
Installing package qt5-base[core]:x64-windows...
Installing package qt5-base[core]:x64-windows... done
Elapsed time for package qt5-base:x64-windows: 33.11 min

Total elapsed time: 33.11 min

The package qt5-base:x64-windows provides CMake targets:

    find_package(Qt5AccessibilitySupport CONFIG REQUIRED)
    target_link_libraries(main PRIVATE Qt::AccessibilitySupport Qt5::AccessibilitySupport Qt::AccessibilitySupportPrivate Qt5::AccessibilitySupportPrivate)

    find_package(Qt5Bootstrap CONFIG REQUIRED)
    target_link_libraries(main PRIVATE Qt::Bootstrap Qt5::Bootstrap Qt::BootstrapPrivate Qt5::BootstrapPrivate)

...

PS F:\vcpkg>

yes. I delete it.

@cenit is this still an issue? If yes could you attach both logs (err and out) ?

Have you tried without the symlink?

I see
IC:\Users\ssinigar\Codice\vcpkg_openmvg\buildtrees\qt5-base\src\5.15.0-f256990b37.clean\include\QtCore
And
IC:\src\vcpkg_openmvg\buildtrees\qt5-base\src\5.15.0-f256990b37.clean/include\QtCore

The first path is also very long.

I launched the build from C:\src, which is a subst of C:\Users\ssinigar\Codice, I don't know how it also expanded it to the full path. Also, no problem with any other port which has the infamous maximum path length
This also was a supported way, and it's very difficult also to propagate any change to it

How did you subst that? I always get a "invalid paramter error C:\src" if i try to subst C:\src <pathtosubst>

after testing your mklink is the reason it fails. If you directly use the base path it works. If you truly use a subst it also works. If you use mklink as a junction /J instead of a normal symlink it also works. So the symbolic link is the issue.

Let me investigate my own setup then. Thanks for taking time to already test many configs

@cenit: I assume you found a solution? (switching to nmake can also solve the problem but I only tested that manually outside the portfile which than run into other problems since the env was not correctly setup.)

Yes it was a symlink and not a junction. Strangely enough it fails mixing the two paths. I was able to complete the build from the original (even if longer) folder

Was this page helpful?
0 / 5 - 0 ratings

Related issues

husseinalihazime picture husseinalihazime  路  3Comments

invy picture invy  路  3Comments

grandprixgp picture grandprixgp  路  3Comments

pkeir picture pkeir  路  3Comments

jack17529 picture jack17529  路  3Comments