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

a lot of (maybe all) packages depending on qt6 fail to cross-compile #3035

Open
breakgimme opened this issue Oct 1, 2024 · 5 comments
Open

Comments

@breakgimme
Copy link
Contributor

the packages i've tested fail during the configure stage due to it trying to launch a binary from a foreign architecture, even if the equivalent for the host architecture is installed
different packages seem to be failing in different stages, for example in the AUTOMOC stage (example: main/openmw) or while executing ECMQueryQt.cmake (example: main/karchive)
i've attached a log from my attempts of building these two packages

here's a list of packages i've attempted and failed to crossbuild:

  • main/openmw
  • main/karchive
  • main/kgraphviewer
  • main/konversation
  • main/texstudio
  • main/akonadi
log for main/openmw (target aarch64, host x86_64)

$ ./cbuild pkg main/openmw -a aarch64
0:00:00.029 => cbuild: clearing sysroot for aarch64...
0:00:00.791 => cbuild: cleaning world...
0:00:00.791 =>   -base-cross-aarch64=0.1-r2 -cmake=3.30.4-r0 -extra-cmake-modules=6.6.0-r0 -gettext=0.22.5-r1 -ninja=1.12.1-r0 -pkgconf=2.3.0-r1
0:00:00.928 => setting up sysroot for aarch64...
0:00:00.930 => cbuild: installing virtual provider for aarch64...
0:00:00.947 => openmw-0.47.0-r6: cleaning build directory...
0:00:01.318 => openmw-0.47.0-r6: start build (target: pkg), available hardening:
0:00:01.319 =>   +format +int +pie +ssp +var-init
0:00:01.319 =>   -bti -cet -cfi -cfi-genptr -cfi-icall -pac -scp -sst -vis
0:00:01.319 => openmw-0.47.0-r6: running fetch hook: 000_sources...
0:00:01.544 => cbuild: updating software in /home/adam/cports/bldroot container...
fetch https://repo.chimera-linux.org/current/main/x86_64/APKINDEX.tar.gz
fetch https://repo.chimera-linux.org/current/main/debug/x86_64/APKINDEX.tar.gz
OK: 533 MiB in 59 packages
fetch https://repo.chimera-linux.org/current/main/aarch64/APKINDEX.tar.gz
fetch https://repo.chimera-linux.org/current/main/debug/aarch64/APKINDEX.tar.gz
0:00:02.327 => cbuild: cleaning world...
0:00:02.327 => openmw-0.47.0-r6: building [cmake] for aarch64...
  [host] cmake: found (3.30.4-r0)
  [host] ninja: found (1.12.1-r0)
  [host] pkgconf: found (2.3.0-r1)
  [host] qt6-qtbase: found (6.7.3-r0)
  [host] qt6-qttools: found (6.7.3-r0)
  [host] base-cross-aarch64: found (0.1-r2)
  [target] boost-devel: found (1.86.0-r0)
  [target] ffmpeg-devel: found (7.1-r0)
  [target] libxt-devel: found (1.3.0-r0)
  [target] lz4-devel: found (1.10.0-r0)
  [target] mygui-devel: found (3.4.2-r4)
  [target] openal-soft-devel: found (1.23.1-r0)
  [target] openscenegraph-devel: found (3.6.5-r1)
  [target] qt6-qtbase-devel: found (6.7.3-r0)
  [target] sdl-devel: found (2.30.7-r0)
  [target] unshield-devel: found (1.5.1-r0)
0:00:02.503 => openmw-0.47.0-r6: installing host dependencies: base-cross-aarch64=0.1-r2, cmake=3.30.4-r0, ninja=1.12.1-r0, pkgconf=2.3.0-r1, qt6-qtbase=6.7.3-r0, qt6-qttools=6.7.3-r0
0:00:04.166 => openmw-0.47.0-r6: installing target dependencies: boost-devel=1.86.0-r0, ffmpeg-devel=7.1-r0, libxt-devel=1.3.0-r0, lz4-devel=1.10.0-r0, mygui-devel=3.4.2-r4, openal-soft-devel=1.23.1-r0, openscenegraph-devel=3.6.5-r1, qt6-qtbase-devel=6.7.3-r0, sdl-devel=2.30.7-r0, unshield-devel=1.5.1-r0
0:00:07.751 => openmw-0.47.0-r6: running extract hook: 000_sources...
0:00:08.633 => openmw-0.47.0-r6: running prepare hook: 000_script_wrapper...
0:00:08.639 => openmw-0.47.0-r6: running prepare hook: 001_prepare_users...
0:00:08.641 => openmw-0.47.0-r6: running patch hook: 000_patches...
0:00:08.645 => openmw-0.47.0-r6: patching: 1941.patch
0:00:08.647 => openmw-0.47.0-r6: patching: ffmpeg7.patch
0:00:08.649 => openmw-0.47.0-r6: patching: list.patch
0:00:08.651 => openmw-0.47.0-r6: patching: qt6.patch
0:00:08.653 => openmw-0.47.0-r6: patching: regexp.patch
0:00:08.656 => openmw-0.47.0-r6: patching: utf8.patch
0:00:08.660 => openmw-0.47.0-r6: patching: xxx-qt6-fixes.patch
0:00:08.666 => openmw-0.47.0-r6: running setup hook: 000_env_pkg_config...
0:00:08.667 => openmw-0.47.0-r6: running setup hook: 001_lang_vers...
0:00:08.669 => openmw-0.47.0-r6: running configure...
-- The C compiler identification is Clang 18.1.8
-- The CXX compiler identification is Clang 18.1.8
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /builddir/.cbuild-openmw/wrappers/aarch64-chimera-linux-musl-clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /builddir/.cbuild-openmw/wrappers/aarch64-chimera-linux-musl-clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring OpenMW...
-- Found OpenGL: /usr/aarch64-chimera-linux-musl/usr/lib/libGL.so
-- Found LZ4: /usr/aarch64-chimera-linux-musl/usr/lib/liblz4.so
CMake Warning at CMakeLists.txt:201 (find_package):
  By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5" (requested
  version 5.15) with any of the following names:

    Qt5Config.cmake
    qt5-config.cmake

  Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
  to a directory containing one of the above files.  If "Qt5" provides a
  separate development package or SDK, be sure it has been installed.


-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found WrapOpenGL: TRUE
-- Found XKB: /usr/aarch64-chimera-linux-musl/usr/lib/libxkbcommon.so (found suitable version "1.7.0", minimum required is "0.5.0")
-- Found WrapVulkanHeaders: /usr/aarch64-chimera-linux-musl/usr/include
-- Using Qt6
-- Warning: Qt6 support is experimental and incomplete
CMake Warning at /usr/share/cmake-3.30/Modules/FetchContent.cmake:2083 (message):
  Relative source directory specified.  This is not safe, as it depends on
  the calling directory scope.

    fetched/bullet
Call Stack (most recent call first):
  /usr/share/cmake-3.30/Modules/FetchContent.cmake:1978:EVAL:1 (__FetchContent_Populate)
  /usr/share/cmake-3.30/Modules/FetchContent.cmake:1978 (cmake_language)
  extern/CMakeLists.txt:9 (FetchContent_Populate)
  extern/CMakeLists.txt:54 (FetchContent_MakeAvailableExcludeFromAll)


Linux
OPENGL FOUND
/usr/aarch64-chimera-linux-musl/usr/lib/libGL.so/usr/aarch64-chimera-linux-musl/usr/lib/libGLU.so
CMake Warning at /usr/share/cmake-3.30/Modules/FetchContent.cmake:2083 (message):
  Relative source directory specified.  This is not safe, as it depends on
  the calling directory scope.

    fetched/recastnavigation
Call Stack (most recent call first):
  /usr/share/cmake-3.30/Modules/FetchContent.cmake:1978:EVAL:1 (__FetchContent_Populate)
  /usr/share/cmake-3.30/Modules/FetchContent.cmake:1978 (cmake_language)
  extern/CMakeLists.txt:9 (FetchContent_Populate)
  extern/CMakeLists.txt:187 (FetchContent_MakeAvailableExcludeFromAll)


-- Found FFmpeg_AVCODEC 61.19.100
-- Found FFmpeg_AVFORMAT 61.7.100
-- Found FFmpeg_AVUTIL 59.39.100
-- Found FFmpeg_SWSCALE 8.3.100
-- Found FFmpeg_SWRESAMPLE 5.3.100
-- Found FFmpeg: /usr/aarch64-chimera-linux-musl/usr/lib/libavcodec.so;/usr/aarch64-chimera-linux-musl/usr/lib/libavformat.so;/usr/aarch64-chimera-linux-musl/usr/lib/libavutil.so;/usr/aarch64-chimera-linux-musl/usr/lib/libswscale.so;/usr/aarch64-chimera-linux-musl/usr/lib/libswresample.so  found components: AVCODEC AVFORMAT AVUTIL SWSCALE SWRESAMPLE
-- Found LIBUNSHIELD 
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Found osgDB: /usr/aarch64-chimera-linux-musl/usr/lib/libosgDB.so
-- Found osgViewer: /usr/aarch64-chimera-linux-musl/usr/lib/libosgViewer.so
-- Found osgText: /usr/aarch64-chimera-linux-musl/usr/lib/libosgText.so
-- Found osgGA: /usr/aarch64-chimera-linux-musl/usr/lib/libosgGA.so
-- Found osgParticle: /usr/aarch64-chimera-linux-musl/usr/lib/libosgParticle.so
-- Found osgUtil: /usr/aarch64-chimera-linux-musl/usr/lib/libosgUtil.so
-- Found osgFX: /usr/aarch64-chimera-linux-musl/usr/lib/libosgFX.so
-- Found osgShadow: /usr/aarch64-chimera-linux-musl/usr/lib/libosgShadow.so
-- Found osgAnimation: /usr/aarch64-chimera-linux-musl/usr/lib/libosgAnimation.so
-- Found osg: /usr/aarch64-chimera-linux-musl/usr/lib/libosg.so
-- Found OpenThreads: /usr/aarch64-chimera-linux-musl/usr/lib/libOpenThreads.so
-- Found OpenSceneGraph: /usr/aarch64-chimera-linux-musl/usr/lib/libosgDB.so;/usr/aarch64-chimera-linux-musl/usr/lib/libosgViewer.so;/usr/aarch64-chimera-linux-musl/usr/lib/libosgText.so;/usr/aarch64-chimera-linux-musl/usr/lib/libosgGA.so;/usr/aarch64-chimera-linux-musl/usr/lib/libosgParticle.so;/usr/aarch64-chimera-linux-musl/usr/lib/libosgUtil.so;/usr/aarch64-chimera-linux-musl/usr/lib/libosgFX.so;/usr/aarch64-chimera-linux-musl/usr/lib/libosgShadow.so;/usr/aarch64-chimera-linux-musl/usr/lib/libosgAnimation.so;/usr/aarch64-chimera-linux-musl/usr/lib/libosg.so;/usr/aarch64-chimera-linux-musl/usr/lib/libOpenThreads.so (found suitable version "3.6.5", minimum required is "3.4.0")
CMake Warning at /usr/share/cmake-3.30/Modules/FindBoost.cmake:1414 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  /usr/share/cmake-3.30/Modules/FindBoost.cmake:1539 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.30/Modules/FindBoost.cmake:2151 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:394 (find_package)


CMake Warning at /usr/share/cmake-3.30/Modules/FindBoost.cmake:1414 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  /usr/share/cmake-3.30/Modules/FindBoost.cmake:1539 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.30/Modules/FindBoost.cmake:2151 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:394 (find_package)


CMake Warning at /usr/share/cmake-3.30/Modules/FindBoost.cmake:1414 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  /usr/share/cmake-3.30/Modules/FindBoost.cmake:1539 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.30/Modules/FindBoost.cmake:2151 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:394 (find_package)


CMake Warning at /usr/share/cmake-3.30/Modules/FindBoost.cmake:1414 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  /usr/share/cmake-3.30/Modules/FindBoost.cmake:1539 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.30/Modules/FindBoost.cmake:2151 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:394 (find_package)


CMake Warning at /usr/share/cmake-3.30/Modules/FindBoost.cmake:1414 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  /usr/share/cmake-3.30/Modules/FindBoost.cmake:1539 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.30/Modules/FindBoost.cmake:2151 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:394 (find_package)


-- Found Boost: /usr/aarch64-chimera-linux-musl/usr/include (found suitable version "1.86.0", minimum required is "1.6.2") found components: system filesystem program_options iostreams regex
-- Found MyGUI 3.4.2
-- Found SDL2 2.30.7
-- Found OpenAL: /usr/aarch64-chimera-linux-musl/usr/lib/libopenal.so
CMake Warning at CMakeLists.txt:492 (message):
  Requested option OPENMW_LTO_BUILD not supported by this compiler: Change
  Dir: '/builddir/openmw-0.47.0/build/CMakeFiles/_CMakeLTOTest-CXX/bin'



  Run Build Command(s): /usr/bin/ninja -v

  [1/4] /builddir/.cbuild-openmw/wrappers/aarch64-chimera-linux-musl-clang++
  --target=aarch64-chimera-linux-musl
  --sysroot=/usr/aarch64-chimera-linux-musl
  -ffile-prefix-map=/builddir/openmw-0.47.0=.  -Wformat
  -Werror=format-security -ftrivial-auto-var-init=zero
  -fno-omit-frame-pointer
  -fsanitize=signed-integer-overflow,integer-divide-by-zero
  -fsanitize-trap=signed-integer-overflow,integer-divide-by-zero
  -fno-sanitize-recover -flto=thin -O2 -g2 -flto=thin -MD -MT
  CMakeFiles/foo.dir/foo.cpp.o -MF CMakeFiles/foo.dir/foo.cpp.o.d -o
  CMakeFiles/foo.dir/foo.cpp.o -c
  /builddir/openmw-0.47.0/build/CMakeFiles/_CMakeLTOTest-CXX/src/foo.cpp

  [2/4] /builddir/.cbuild-openmw/wrappers/aarch64-chimera-linux-musl-clang++
  --target=aarch64-chimera-linux-musl
  --sysroot=/usr/aarch64-chimera-linux-musl
  -ffile-prefix-map=/builddir/openmw-0.47.0=.  -Wformat
  -Werror=format-security -ftrivial-auto-var-init=zero
  -fno-omit-frame-pointer
  -fsanitize=signed-integer-overflow,integer-divide-by-zero
  -fsanitize-trap=signed-integer-overflow,integer-divide-by-zero
  -fno-sanitize-recover -flto=thin -O2 -g2 -flto=thin -MD -MT
  CMakeFiles/boo.dir/main.cpp.o -MF CMakeFiles/boo.dir/main.cpp.o.d -o
  CMakeFiles/boo.dir/main.cpp.o -c
  /builddir/openmw-0.47.0/build/CMakeFiles/_CMakeLTOTest-CXX/src/main.cpp

  [3/4] : && /usr/bin/cmake -E rm -f libfoo.a &&
  "CMAKE_CXX_COMPILER_AR-NOTFOUND" qc libfoo.a CMakeFiles/foo.dir/foo.cpp.o
  && "CMAKE_CXX_COMPILER_RANLIB-NOTFOUND" libfoo.a && :

  FAILED: libfoo.a

  : && /usr/bin/cmake -E rm -f libfoo.a && "CMAKE_CXX_COMPILER_AR-NOTFOUND"
  qc libfoo.a CMakeFiles/foo.dir/foo.cpp.o &&
  "CMAKE_CXX_COMPILER_RANLIB-NOTFOUND" libfoo.a && :

  /bin/sh: CMAKE_CXX_COMPILER_AR-NOTFOUND: not found

  ninja: build stopped: subcommand failed.





-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Configuring done (2.5s)
CMake Error: AUTOMOC for target components: Test run of "moc" executable "/usr/aarch64-chimera-linux-musl/usr/lib/qt6/libexec/moc" failed.
/usr/aarch64-chimera-linux-musl/usr/lib/qt6/libexec/moc -h

Unknown system error -8
CMake Generate step failed.  Build files cannot be regenerated correctly.
0:00:11.233 => A failure has occurred!
0:00:11.233 => Stack trace:
0:00:11.237 =>   /home/adam/cports/src/cbuild/core/build.py:515: in function 'build'
0:00:11.237 =>   /home/adam/cports/src/cbuild/core/build.py:700: in function '_build'
0:00:11.237 =>   /home/adam/cports/src/cbuild/core/build.py:278: in function 'invoke_configure'
0:00:11.237 =>   /home/adam/cports/src/cbuild/core/build.py:150: in function 'run_pkg_func'
0:00:11.237 =>   /home/adam/cports/src/cbuild/build_style/cmake.py:5: in function 'configure'
0:00:11.237 =>   /home/adam/cports/src/cbuild/util/cmake.py:91: in function 'configure'
0:00:11.237 =>   /home/adam/cports/src/cbuild/core/template.py:1814: in function 'do'
0:00:11.237 =>   /home/adam/cports/src/cbuild/core/chroot.py:838: in function 'enter'
0:00:11.237 => Raised exception:
0:00:11.237 =>   CalledProcessError: command '/usr/bin/bwrap --unshare-all --hostname cbuild --ro-bind /home/adam/cports/bldroot / --bind /home/adam/cports/bldroot/builddir /builddir --ro-bind /home/adam/cports/bldroot/destdir /destdir --ro-bind /home/adam/cports/sources /sources --dev /dev --proc /proc --tmpfs /run --tmpfs /tmp --tmpfs /var/tmp --new-session --die-with-parent --bind /home/adam/cports/cbuild_cache /cbuild_cache --uid 1337 --gid 1337 --chdir /builddir/openmw-0.47.0/build --ro-bind-data 5 /tmp/cbuild-lld-args linux64 -- cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=cross.cmake -DCMAKE_AR=/usr/bin/ar -DCMAKE_NM=/usr/bin/nm -DCMAKE_RANLIB=/usr/bin/ranlib -Wno-dev -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_TLS_VERIFY=ON -DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_LIBEXECDIR=libexec -DCMAKE_INSTALL_SBINDIR=bin -DCMAKE_INSTALL_BINDIR=bin --fresh -DBUILD_OPENCS=OFF -DOPENMW_USE_SYSTEM_BULLET=OFF -DOPENMW_LTO_BUILD=ON /builddir/openmw-0.47.0' failed with exit code 1
0:00:11.237 => Phase 'configure' failed for package 'openmw'.

log for main/karchive (target riscv64, host x86_64)

$ ./cbuild pkg main/karchive -a riscv64
0:00:00.027 => cbuild: clearing sysroot for riscv64...
0:00:00.259 => cbuild: cleaning world...
0:00:00.260 =>   -base-cross-aarch64=0.1-r2 -cmake=3.30.4-r0 -extra-cmake-modules=6.6.0-r0 -gettext=0.22.5-r1 -ninja=1.12.1-r0 -pkgconf=2.3.0-r1 -xsltproc=1.1.42-r0
0:00:00.421 => setting up sysroot for riscv64...
0:00:00.423 => cbuild: installing virtual provider for riscv64...
0:00:00.440 => karchive-6.6.0-r0: cleaning build directory...
0:00:00.587 => karchive-6.6.0-r0: start build (target: pkg), available hardening:
0:00:00.587 =>   +format +int +pie +ssp +var-init +vis
0:00:00.587 =>   -bti -cet -cfi -cfi-genptr -cfi-icall -pac -scp -sst
0:00:00.587 => karchive-6.6.0-r0: running fetch hook: 000_sources...
0:00:00.591 => cbuild: updating software in /home/adam/cports/bldroot container...
fetch https://repo.chimera-linux.org/current/main/x86_64/APKINDEX.tar.gz
fetch https://repo.chimera-linux.org/current/main/debug/x86_64/APKINDEX.tar.gz
OK: 533 MiB in 59 packages
fetch https://repo.chimera-linux.org/current/main/riscv64/APKINDEX.tar.gz
fetch https://repo.chimera-linux.org/current/main/debug/riscv64/APKINDEX.tar.gz
0:00:01.409 => cbuild: cleaning world...
0:00:01.409 => karchive-6.6.0-r0: building [cmake] for riscv64...
  [host] cmake: found (3.30.4-r0)
  [host] extra-cmake-modules: found (6.6.0-r0)
  [host] ninja: found (1.12.1-r0)
  [host] pkgconf: found (2.3.0-r1)
  [host] base-cross-riscv64: found (0.1-r2)
  [target] qt6-qtbase-devel: found (6.7.3-r0)
  [target] qt6-qttools-devel: found (6.7.3-r0)
  [target] zstd-devel: found (1.5.6-r2)
  [runtime] qt6-qtbase-devel>=0: found (6.7.3-r0)
0:00:01.585 => karchive-6.6.0-r0: installing host dependencies: base-cross-riscv64=0.1-r2, cmake=3.30.4-r0, extra-cmake-modules=6.6.0-r0, ninja=1.12.1-r0, pkgconf=2.3.0-r1
0:00:02.029 => karchive-6.6.0-r0: installing target dependencies: qt6-qtbase-devel=6.7.3-r0, qt6-qttools-devel=6.7.3-r0, zstd-devel=1.5.6-r2
0:00:04.263 => karchive-6.6.0-r0: running extract hook: 000_sources...
0:00:04.285 => karchive-6.6.0-r0: running prepare hook: 000_script_wrapper...
0:00:04.288 => karchive-6.6.0-r0: running prepare hook: 001_prepare_users...
0:00:04.290 => karchive-6.6.0-r0: running patch hook: 000_patches...
0:00:04.291 => karchive-6.6.0-r0: running setup hook: 000_env_pkg_config...
0:00:04.293 => karchive-6.6.0-r0: running setup hook: 001_lang_vers...
0:00:04.294 => karchive-6.6.0-r0: running configure...
-- The C compiler identification is Clang 18.1.8
-- The CXX compiler identification is Clang 18.1.8
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /builddir/.cbuild-karchive/wrappers/riscv64-chimera-linux-musl-clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /builddir/.cbuild-karchive/wrappers/riscv64-chimera-linux-musl-clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- 

CMake Warning at /usr/share/ECM/modules/ECMQueryQt.cmake:95 (message):
  Failed call: /usr/riscv64-chimera-linux-musl/usr/lib/qt6/bin/qtpaths
  --query QT_INSTALL_PREFIX
Call Stack (most recent call first):
  /usr/share/ECM/kde-modules/KDEInstallDirs6.cmake:197 (ecm_query_qt)
  /usr/share/ECM/kde-modules/KDEInstallDirs.cmake:15 (include)
  CMakeLists.txt:38 (include)


CMake Error at /usr/share/ECM/modules/ECMQueryQt.cmake:96 (message):
  Qt6 qtpaths call failed: Unknown system error -8
Call Stack (most recent call first):
  /usr/share/ECM/kde-modules/KDEInstallDirs6.cmake:197 (ecm_query_qt)
  /usr/share/ECM/kde-modules/KDEInstallDirs.cmake:15 (include)
  CMakeLists.txt:38 (include)


-- Configuring incomplete, errors occurred!
0:00:04.663 => A failure has occurred!
0:00:04.663 => Stack trace:
0:00:04.665 =>   /home/adam/cports/src/cbuild/core/build.py:515: in function 'build'
0:00:04.665 =>   /home/adam/cports/src/cbuild/core/build.py:700: in function '_build'
0:00:04.665 =>   /home/adam/cports/src/cbuild/core/build.py:278: in function 'invoke_configure'
0:00:04.665 =>   /home/adam/cports/src/cbuild/core/build.py:150: in function 'run_pkg_func'
0:00:04.665 =>   /home/adam/cports/src/cbuild/build_style/cmake.py:5: in function 'configure'
0:00:04.665 =>   /home/adam/cports/src/cbuild/util/cmake.py:91: in function 'configure'
0:00:04.665 =>   /home/adam/cports/src/cbuild/core/template.py:1814: in function 'do'
0:00:04.665 =>   /home/adam/cports/src/cbuild/core/chroot.py:838: in function 'enter'
0:00:04.665 => Raised exception:
0:00:04.665 =>   CalledProcessError: command '/usr/bin/bwrap --unshare-all --hostname cbuild --ro-bind /home/adam/cports/bldroot / --bind /home/adam/cports/bldroot/builddir /builddir --ro-bind /home/adam/cports/bldroot/destdir /destdir --ro-bind /home/adam/cports/sources /sources --dev /dev --proc /proc --tmpfs /run --tmpfs /tmp --tmpfs /var/tmp --new-session --die-with-parent --bind /home/adam/cports/cbuild_cache /cbuild_cache --uid 1337 --gid 1337 --chdir /builddir/karchive-6.6.0/build --ro-bind-data 5 /tmp/cbuild-lld-args linux64 -- cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=cross.cmake -DCMAKE_AR=/usr/bin/ar -DCMAKE_NM=/usr/bin/nm -DCMAKE_RANLIB=/usr/bin/ranlib -Wno-dev -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_TLS_VERIFY=ON -DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_LIBEXECDIR=libexec -DCMAKE_INSTALL_SBINDIR=bin -DCMAKE_INSTALL_BINDIR=bin --fresh /builddir/karchive-6.6.0' failed with exit code 1
0:00:04.665 => Phase 'configure' failed for package 'karchive'.

@nekopsykose
Copy link
Member

every single one of them fails to cross compile, yes. it's not unexpected and there's nobody interested in making it work (since cross compiling is not a primary focus and it being broken is not seen as a bug)

@nekopsykose
Copy link
Member

if you know what magic to pass to cmake for qt cross to work and for it to use 'host moc/uic , etc tools' then maybe it's fixable

@breakgimme
Copy link
Contributor Author

oh, i understand, sorry for making the issue
i discovered this while packaging something that depends on qt6 and thought it was something unknown/a regression as none of the packages were marked as !cross
should i close this issue?

@q66
Copy link
Member

q66 commented Oct 1, 2024

you can keep it open but i don't think i'll make any attempt at fixing it (anybody else is free to though)

(also there is probably a lot more other packages that fail to crosscompile, it's not something unique to qt6 because i don't usually test cross at all)

@nekopsykose
Copy link
Member

nekopsykose commented Oct 1, 2024

they should perhaps be marked as !cross, but i think marking things fundamentally uncrossable because 'all are qt' is a bit bad, since then there's a lot of work to later unset it if that (single) issue is fixed. it's easier to just not touch it even though it's known-broken..

(i think the same thing for gobject-introspection- if they add an actual fix upstream then we have to remove !cross in 100 places, which isn't super meaningful)

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

3 participants