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

[qt5-base] build failure: qt5-base[core]:x64-linux -> 5.15.2 #19226

Closed
keepitsimplejim opened this issue Jul 29, 2021 · 5 comments · Fixed by #19668
Closed

[qt5-base] build failure: qt5-base[core]:x64-linux -> 5.15.2 #19226

keepitsimplejim opened this issue Jul 29, 2021 · 5 comments · Fixed by #19668
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@keepitsimplejim
Copy link

keepitsimplejim commented Jul 29, 2021

Host Environment

  • OS: x64-linux
  • Compiler: gcc (GCC) 11.1.1 20210531 (Red Hat 11.1.1-3)

To Reproduce
Steps to reproduce the behavior:
./vcpkg install --recurse qt5

**Failure logs** 
Computing installation plan...                                                                                                                                  
The following packages will be built and installed:                                                                                                             
    qt5[activeqt,core,declarative,essentials,imageformats,multimedia,networkauth,quickcontrols2,svg,tools]:x64-linux -> 5.15.2                                  
  * qt5-base[core]:x64-linux -> 5.15.2#9                                                                                                                        
  * qt5-declarative[core]:x64-linux -> 5.15.2                                                                                                                   
  * qt5-imageformats[core]:x64-linux -> 5.15.2                                                                                                                  
  * qt5-multimedia[core]:x64-linux -> 5.15.2                                                                                                                    
  * qt5-networkauth[core]:x64-linux -> 5.15.2                                                                                                                   
  * qt5-quickcontrols2[core]:x64-linux -> 5.15.2                                                                                                                
  * qt5-svg[core]:x64-linux -> 5.15.2                                                                                                                           
  * qt5-tools[core]:x64-linux -> 5.15.2                                                                                                                         
Additional packages (*) will be modified to complete this operation.                                                                                            
Detecting compiler hash for triplet x64-linux...                                                                                                                
Could not locate cached archive: /home/chris/.cache/vcpkg/archives/e4/e4541f892fb30bf27178c1c192eaa1edc63f7462ffe70de32498384a9fffb385.zip                      
Could not locate cached archive: /home/chris/.cache/vcpkg/archives/f1/f11b3930664f334266f2e50ee0c23b456e816139d54a4945d6bb349e8f3b9af6.zip                      
Could not locate cached archive: /home/chris/.cache/vcpkg/archives/72/72af6d30698ae4d1cd02649650a5593921fafa0301c7ffa31b10ab93e734910a.zip                      
Could not locate cached archive: /home/chris/.cache/vcpkg/archives/81/81eefde62483ee882b5703956ebe53663aadf910ebe5a52693a565ef61109377.zip                      
Could not locate cached archive: /home/chris/.cache/vcpkg/archives/75/75d0d91c0940aa32c5c9193a7dac5cf4626638e0654a88c359347c50d8bda978.zip                      
Could not locate cached archive: /home/chris/.cache/vcpkg/archives/0c/0c7265d30d76abdc6a56a4e5b2922a58bc7abf846243200850e74b107150494d.zip                      
Could not locate cached archive: /home/chris/.cache/vcpkg/archives/d8/d8740e96b4b9ab5ece4568cf132b109d2accde0135e0884531cb4fa204bbcd0f.zip                      
Could not locate cached archive: /home/chris/.cache/vcpkg/archives/52/52eef8e14c9d8a9cfed3913a935b54246e5d18ce22845e5baaeb56c3bbcfa528.zip                      
Could not locate cached archive: /home/chris/.cache/vcpkg/archives/d4/d4510a74d349592a8d7565faa4c679b4802cba954ab16196616d4d6a77b9939f.zip                      
Starting package 1/9: qt5-base:x64-linux                                                                                                                        
Building package qt5-base[core]:x64-linux...                                                                                                                    
CMake Warning at ports/qt5-base/portfile.cmake:11 (message):                                                                                                    
  qt5-base currently requires some packages from the system package manager,                                                                                    
  see https://doc.qt.io/qt-5/linux-requirements.html                                                                                                            
Call Stack (most recent call first):                                                                                                                            
  scripts/ports.cmake:141 (include)                                                                                                                             
                                                                                                                                                                
                                                                                                                                                                
CMake Warning at ports/qt5-base/portfile.cmake:12 (message):                                                                                                    
  qt5-base for qt5-x11extras requires several libraries from the system
  package manager.  Please refer to

    https://github.com/microsoft/vcpkg/blob/master/scripts/azure-pipelines/linux/provision-image.sh
    for a complete list of them.

Call Stack (most recent call first):
  scripts/ports.cmake:141 (include)


-- Figuring out qt target mkspec. Target arch x64
-- Target mkspec set to: linux-g++
-- Host mkspec not set. Qt's own buildsystem will try to figure out the host system
-- Using /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/downloads/qtbase-everywhere-src-5.15.2.tar.xz
-- Cleaning sources at /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/buildtrees/qt5-base/src/5.15.2-70178539f6.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/downloads/qtbase-everywhere-src-5.15.2.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/zstdd.patch
-- Applying patch patches/mysql_plugin_include.patch
-- Applying patch patches/mysql-configure.patch
-- Applying patch patches/Qt5BasicConfig.patch
-- Applying patch patches/Qt5PluginTarget.patch
-- Applying patch patches/create_cmake.patch
-- Applying patch patches/Qt5GuiConfigExtras.patch
-- Using source at /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/buildtrees/qt5-base/src/5.15.2-70178539f6.clean
-- Configuring x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/buildtrees/qt5-base/src/5.15.2-70178539f6.clean/configure -confirm-license -opensource -verbose -system-zlib -system-libjpeg -system-libpng -system-freetype -system-pcre -system-doubleconversion -system-sqlite -system-harfbuzz -icu -no-vulkan -no-angle -no-glib -openssl-linked -no-sql-psql -no-sql-mysql --vulkan=no -fontconfig -xcb-xlib -xcb -linuxfb -nomake examples -nomake tests -static LIBJPEG_LIBS=/home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libjpeg.a ZLIB_LIBS=/home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libz.a "LIBPNG_LIBS=/home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libpng16d.a /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libz.a" PCRE2_LIBS=/home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libpcre2-16.a "FREETYPE_LIBS=/home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libfreetyped.a /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libbz2d.a /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libpng16d.a /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libz.a /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libbrotlidec-static.a /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libbrotlicommon-static.a" "ICU_LIBS=/home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libicui18n.a /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libicutu.a  /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libicuuc.a /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libicuio.a /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libicudata.a" QMAKE_LIBS_PRIVATE+=/home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libbz2d.a QMAKE_LIBS_PRIVATE+=/home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libpng16d.a "QMAKE_LIBS_PRIVATE+=/home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libicui18n.a /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libicutu.a  /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libicuuc.a /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libicuio.a /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libicudata.a" QMAKE_LIBS_PRIVATE+=/home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libzstdd.a "SQLITE_LIBS=/home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libsqlite3.a -ldl -lpthread" "HARFBUZZ_LIBS=-lharfbuzz -lm -lfreetyped -lbz2d -lpng16d -lm -lz -lbrotlidec-static -lbrotlicommon-static" "OPENSSL_LIBS=/home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libssl.a /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libcrypto.a -ldl -lpthread" "FONTCONFIG_LIBS=/home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libfontconfig.a /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libfreetyped.a /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/libexpat.a -luuid" -debug -prefix /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux -hostprefix /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/tools/qt5/debug -hostlibdir /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/tools/qt5/debug/lib -hostbindir /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/tools/qt5/debug/bin -archdatadir /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/tools/qt5/debug -datadir /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/share/qt5/debug -plugindir /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/plugins -qmldir /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/qml -headerdir /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/include/qt5 -libexecdir /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/tools/qt5/debug -bindir /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/bin -libdir /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib -I /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/include -I /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/include/qt5 -L /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib -L /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/installed/x64-linux/debug/lib/manual-link -platform linux-g++
    Working Directory: /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/buildtrees/qt5-base/x64-linux-dbg
    Error code: 2
    See logs for more information:
      /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/buildtrees/qt5-base/config-x64-linux-dbg-out.log
      /home/chris/FreeCAD/workspace/FreeCAD/freecad-source/tools/vcpkg/buildtrees/qt5-base/config-x64-linux-dbg-err.log

Call Stack (most recent call first):
  ports/qt5-base/cmake/configure_qt.cmake:127 (vcpkg_execute_required_process)
  ports/qt5-base/portfile.cmake:363 (configure_qt)
  scripts/ports.cmake:141 (include)

config-x64-linux-dbg-err.log
config-x64-linux-dbg-out.log

Additional context

Initial failed due to autopoint not being installed so had to run sudo dnf install gettext-devel

@autoantwort
Copy link
Contributor

Try apt-get install autopoint

@nicolasfella
Copy link
Contributor

The build fails because of a missing #include <limits>. I fixed a similar error in https://codereview.qt-project.org/c/qt/qtbase/+/355632 but this seems to be a different one

@nicolasfella
Copy link
Contributor

nicolasfella commented Aug 11, 2021

This patch to qtbase should fix it. I will check if it applies to Qt6 and submit upstream, but upstream is closed for 5.15 development

diff --git a/src/corelib/global/qendian.h b/src/corelib/global/qendian.h
index 257efbbdbe..05f11d6f81 100644
--- a/src/corelib/global/qendian.h
+++ b/src/corelib/global/qendian.h
@@ -47,6 +47,7 @@
 // include stdlib.h and hope that it defines __GLIBC__ for glibc-based systems
 #include <stdlib.h>
 #include <string.h>
+#include <limits>
 
 #ifdef min // MSVC
 #undef min
diff --git a/src/corelib/global/qfloat16.h b/src/corelib/global/qfloat16.h
index c7a9c87af3..3287d7cbf2 100644
--- a/src/corelib/global/qfloat16.h
+++ b/src/corelib/global/qfloat16.h
@@ -44,6 +44,7 @@
 #include <QtCore/qglobal.h>
 #include <QtCore/qmetatype.h>
 #include <string.h>
+#include <limits>
 
 #if defined(QT_COMPILER_SUPPORTS_F16C) && defined(__AVX2__) && !defined(__F16C__)
 // All processors that support AVX2 do support F16C too. That doesn't mean
diff --git a/src/corelib/text/qbytearraymatcher.h b/src/corelib/text/qbytearraymatcher.h
index 0eedfc1d20..f5f9bef7b8 100644
--- a/src/corelib/text/qbytearraymatcher.h
+++ b/src/corelib/text/qbytearraymatcher.h
@@ -42,6 +42,8 @@
 
 #include <QtCore/qbytearray.h>
 
+#include <limits>
+
 QT_BEGIN_NAMESPACE
 
 

@nicolasfella
Copy link
Contributor

The build fails because of a missing #include <limits>. I fixed a similar error in https://codereview.qt-project.org/c/qt/qtbase/+/355632 but this seems to be a different one

Qt6 is already fixed

@JackBoosY JackBoosY added category:port-bug The issue is with a library, which is something the port should already support and removed category:question This issue is a question labels Aug 12, 2021
@JackBoosY
Copy link
Contributor

cc @Neumann-A

nicolasfella added a commit to nicolasfella/vcpkg that referenced this issue Aug 20, 2021
This is needed to build with GCC11

Fixes microsoft#19226
BillyONeal pushed a commit that referenced this issue Sep 16, 2021
* [qt] Add patches to fix missing includes

This is needed to build with GCC11

Fixes #19226

* bump version

* version

Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants