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

[qt-base] build failure (icu is build for arm with x64-osx triplet) #16424

Closed
autoantwort opened this issue Feb 25, 2021 · 6 comments · Fixed by #16577
Closed

[qt-base] build failure (icu is build for arm with x64-osx triplet) #16424

autoantwort opened this issue Feb 25, 2021 · 6 comments · Fixed by #16577
Assignees
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist

Comments

@autoantwort
Copy link
Contributor

Host Environment

  • OS: macOS 11
  • Compiler: Apple clang version 12.0.0 (clang-1200.0.32.29) Target: arm64-apple-darwin20.3.0

To Reproduce
Steps to reproduce the behavior:
./vcpkg install qt-base

Failure logs

Starting package 26/26: qt5-base:x64-osx
Building package qt5-base[core]:x64-osx...
-- Figuring out qt target mkspec. Target arch x64
-- Target mkspec set to: macx-clang
-- 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.2/submodules/qtbase-everywhere-src-5.15.2.tar.xz -> qtbase-everywhere-src-5.15.2.tar.xz...
-- Extracting source /Users/leanderSchulten/git_projekte/Lichtsteuerung/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 /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/qt5-base/src/5.15.2-70178539f6.clean
objc[21913]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1f2474188) and ?? (0x1161ac2b8). One of the two will be used. Which one is undefined.
objc[21913]: Class AMSupportURLSession is implemented in both ?? (0x1f24741d8) and ?? (0x1161ac308). One of the two will be used. Which one is undefined.
2021-02-26 00:28:35.855 xcodebuild[21913:10168219] [MT] PluginLoading: Required plug-in compatibility UUID 2F1A5FFF-BFEB-4498-B2AC-1296A7454F81 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/VVDocumenter-Xcode.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2021-02-26 00:28:35.855 xcodebuild[21913:10168219] [MT] PluginLoading: Required plug-in compatibility UUID 2F1A5FFF-BFEB-4498-B2AC-1296A7454F81 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/ClangFormat.xcplugin' not present in DVTPlugInCompatibilityUUIDs
-- Detected OSX SDK Version: 11.1
-- Major.Minor OSX SDK Version: 11.1
-- Qt 5.15.2 only support OSX_DEPLOYMENT_TARGET up to 10.15
-- Enviromnent OSX SDK Version: 10.15
-- Configuring x64-osx-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:105 (message):
    Command failed: /Users/leanderSchulten/git_projekte/Lichtsteuerung/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 -sql-psql -icu -no-angle -openssl-linked -fontconfig -nomake examples -nomake tests -static LIBJPEG_LIBS=/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libjpeg.a ZLIB_LIBS=/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libz.a "LIBPNG_LIBS=/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libpng16d.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libz.a" PCRE2_LIBS=/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libpcre2-16.a "FREETYPE_LIBS=/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libfreetyped.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libbz2d.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libpng16d.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libz.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libbrotlidec-static.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libbrotlicommon-static.a" "ICU_LIBS=/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicui18n.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicutu.a  /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicuuc.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicuio.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicudata.a" QMAKE_LIBS_PRIVATE+=/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libbz2d.a QMAKE_LIBS_PRIVATE+=/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libpng16d.a "QMAKE_LIBS_PRIVATE+=/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicui18n.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicutu.a  /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicuuc.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicuio.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicudata.a" QMAKE_LIBS_PRIVATE+=/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libzstdd.a "PSQL_LIBS=/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libpq.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libpgport.a  /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libpgcommon.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libssl.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libcrypto.a -ldl -lpthread" "SQLITE_LIBS=/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libsqlite3.a -ldl -lpthread" "HARFBUZZ_LIBS=/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libharfbuzz.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libfreetyped.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libbz2d.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libpng16d.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libz.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libbrotlidec-static.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libbrotlicommon-static.a -framework ApplicationServices" "OPENSSL_LIBS=/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libssl.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libcrypto.a -ldl -lpthread" "FONTCONFIG_LIBS=/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libfontconfig.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libfreetyped.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libexpat.a -liconv" -debug -prefix /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx -hostprefix /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/tools/qt5/debug -hostlibdir /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/tools/qt5/debug/lib -hostbindir /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/tools/qt5/debug/bin -archdatadir /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/tools/qt5/debug -datadir /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/share/qt5/debug -plugindir /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/plugins -qmldir /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/qml -headerdir /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/include -libexecdir /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/tools/qt5/debug -bindir /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/bin -libdir /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib -I /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/include -L /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib -L /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/manual-link -platform macx-clang
    Working Directory: /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/qt5-base/x64-osx-dbg
    Error code: 3
    See logs for more information:
      /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/qt5-base/config-x64-osx-dbg-out.log
      /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/qt5-base/config-x64-osx-dbg-err.log

Call Stack (most recent call first):
  ports/qt5-base/cmake/configure_qt.cmake:126 (vcpkg_execute_required_process)
  ports/qt5-base/portfile.cmake:341 (configure_qt)
  scripts/ports.cmake:133 (include)


Error: Building package qt5-base:x64-osx failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `./vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: qt5-base:x64-osx
  Vcpkg version: 2021-01-13-unknownhash

Additionally, attach any relevant sections from the log files above.

config-x64-osx-dbg-err.log

relevant pieces:

> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -mmacosx-version-min=10.15 -Wl,-rpath,@executable_path/../Frameworks -o verifyspec verifyspec.o   -L/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib -L/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/manual-link   /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libbz2d.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libpng16d.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicui18n.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicutu.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicuuc.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicuio.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicudata.a /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libzstdd.a
> ld: warning: directory not found for option '-L/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/manual-link'
> ld: warning: ignoring file /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicui18n.a, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
> ld: warning: ignoring file /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicuio.a, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
> ld: warning: ignoring file /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicudata.a, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
> ld: warning: ignoring file /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicutu.a, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
> ld: warning: ignoring file /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libicuuc.a, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ERROR: Feature 'icu' was enabled, but the pre-condition 'libs.icu' failed.

So the real error seems to be that icu is build for arm64 while I am using the x64-osx triplet

Additional context
Add any other context about the problem here, such as what you have already tried to resolve the issue.

@JackBoosY
Copy link
Contributor

Hmm... I think this issue is related to #16306.

@JackBoosY
Copy link
Contributor

For triplet x64-osx, since Apple recently changed the macbook architecture to arm64, we may need to adapt this change in triplet.

@JackBoosY
Copy link
Contributor

cc @Neumann-A

@autoantwort
Copy link
Contributor Author

Imho we need a new triplet arm-osx (or macos or arm-mac, because the os name is now macOS and not OSX (we are at macOS 11 now)).
We need both triplets at the same time so that you can build universal binaries:

x86_app: main.c
    $(CC) main.c -o x86_app -target x86_64-apple-macos10.12
arm_app: main.c
    $(CC) main.c -o arm_app -target arm64-apple-macos11
universal_app: x86_app arm_app
    lipo -create -output universal_app x86_app arm_app

@JackBoosY
Copy link
Contributor

@autoantwort We have a community triplet arm64-osx, we will discuss changing it to official.

@JackBoosY JackBoosY added the category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed label Mar 1, 2021
@PhoebeHui
Copy link
Contributor

PhoebeHui commented Mar 4, 2021

We do plan to make this an official triplet, however we do not want to add it to the official list until we have support in CI. See #12259 (comment).

@JackBoosY JackBoosY added category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist and removed category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed labels May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist
Projects
None yet
4 participants