Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919060 - dev-qt/qtquicktimeline-6.6.1 fails to build on riscv
Summary: dev-qt/qtquicktimeline-6.6.1 fails to build on riscv
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 918896
  Show dependency tree
 
Reported: 2023-12-02 19:26 UTC by Jakov Smolić
Modified: 2023-12-04 09:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
qlist dev-qt/qtdeclarative-6.6.1 (qtdeclarative-files,181.75 KB, text/plain)
2023-12-02 20:00 UTC, Jakov Smolić
Details
noquiet.patch (noquiet.patch,400 bytes, patch)
2023-12-02 20:17 UTC, Ionen Wolkens
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jakov Smolić archtester gentoo-dev 2023-12-02 19:26:45 UTC
* Package:    dev-qt/qtquicktimeline-6.6.1:6/6.6.1
 * Repository: gentoo
 * Maintainer: qt@gentoo.org
 * Upstream:   https://bugreports.qt.io/
 * USE:        elibc_glibc kernel_linux riscv
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking qtquicktimeline-everywhere-src-6.6.1.tar.xz to /var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work
>>> Source unpacked in /var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work
>>> Preparing source in /var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1_build"
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1_build"
cmake -C /var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_PUBLICBINDIR=/usr/bin -DQT_BUILD_TESTS=OFF -DQT_USE_DEFAULT_CMAKE_OPTIMIZATION_FLAGS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1_build/gentoo_toolchain.cmake /var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1
loading initial cache file /var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1_build/gentoo_common_config.cmake
-- The CXX compiler identification is GNU 13.2.1
-- The C compiler identification is GNU 13.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/riscv64-unknown-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/riscv64-unknown-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- 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  
[31mCMake Error at CMakeLists.txt:21 (message):
  Skipping the build as the condition "TARGET Qt::Quick" is not met.

[0m
-- Configuring incomplete, errors occurred!
 * ERROR: dev-qt/qtquicktimeline-6.6.1::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_configure
 *   environment, line 2223:  Called qt6-build_src_configure
 *   environment, line 2094:  Called cmake_src_configure
 *   environment, line 1083:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=dev-qt/qtquicktimeline-6.6.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-qt/qtquicktimeline-6.6.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1_build'
 * S: '/var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1'
Comment 1 Jakov Smolić archtester gentoo-dev 2023-12-02 19:27:37 UTC
# emerge --info:
Portage 3.0.55 (python 3.10.13-final-0, default/linux/riscv/20.0/rv64gc/lp64d/systemd, gcc-13, glibc-2.38-r7, 6.6.1-gentoo-riscv64 riscv64)
=================================================================
System uname: Linux-6.6.1-gentoo-riscv64-riscv64-with-glibc2.38
KiB Mem:    49054296 total,  31680592 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 29 Nov 2023 12:00:01 +0000
Head commit of repository gentoo: 0958d60361d2167f072673d0461c97e9a7b16467
sh bash 5.2_p21
ld GNU ld (Gentoo 2.41 p2) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p21::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.6::gentoo, 3.12.0_p1::gentoo
dev-lang/rust-bin:         1.73.0::gentoo
dev-util/cmake:            3.27.7::gentoo
dev-util/meson:            1.3.0::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          254.6::gentoo
sys-devel/autoconf:        2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r1::gentoo, 16.0.6::gentoo
sys-devel/gcc:             13.2.1_p20231014::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.6::gentoo
sys-devel/llvm:            15.0.7::gentoo, 16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="riscv ~riscv"
ACCEPT_LICENSE="@FREE"
CBUILD="riscv64-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="riscv64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=10"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j20 -l20"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl alsa bzip2 cli crypt dri fortran gdbm iconv ipv6 ncurses nls nptl openmp pam pcre readline riscv seccomp split-usr ssl systemd test-rust udev unicode xattr zlib" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_10 python3_11" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="fbdev v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SHELL, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Ionen Wolkens gentoo-dev 2023-12-02 19:36:26 UTC
Did qtdeclarative:6 (rdepend) get misinstalled somehow?

e.g. this should exist:
/usr/lib*/cmake/Qt6Quick/Qt6QuickConfig.cmake
Comment 3 Ionen Wolkens gentoo-dev 2023-12-02 19:42:21 UTC
...and Qt::Quick is not optional, so USE shouldn't change anything
Comment 4 Jakov Smolić archtester gentoo-dev 2023-12-02 19:59:41 UTC
(In reply to Ionen Wolkens from comment #2)
> Did qtdeclarative:6 (rdepend) get misinstalled somehow?
> 
> e.g. this should exist:
> /usr/lib*/cmake/Qt6Quick/Qt6QuickConfig.cmake

I see that /usr/lib64/cmake/Qt6Quick/Qt6QuickConfig.cmake exists, I can also attach qlist output for qtdeclarative
Comment 5 Jakov Smolić archtester gentoo-dev 2023-12-02 20:00:29 UTC
Created attachment 876447 [details]
qlist dev-qt/qtdeclarative-6.6.1
Comment 6 Ionen Wolkens gentoo-dev 2023-12-02 20:12:14 UTC
(In reply to Jakov Smolić from comment #5)
> Created attachment 876447 [details]
> qlist dev-qt/qtdeclarative-6.6.1
Hm, that looks identical to what I get on amd64. No idea why it's not able to find it then (riscv shouldn't affect anything for this).
Comment 7 Ionen Wolkens gentoo-dev 2023-12-02 20:17:36 UTC
Created attachment 876448 [details, diff]
noquiet.patch

Maybe try to see what it says with this patch, the "QUIET" is annoying.
Comment 8 Jakov Smolić archtester gentoo-dev 2023-12-02 20:36:20 UTC
(In reply to Ionen Wolkens from comment #7)
> Created attachment 876448 [details, diff] [details, diff]
> noquiet.patch
> 
> Maybe try to see what it says with this patch, the "QUIET" is annoying.

>>> Preparing source in /var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1_build"
 * Applying noquiet.patch ...                                                                                                     [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1_build"
cmake -C /var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_PUBLICBINDIR=/usr/bin -DQT_BUILD_TESTS=OFF -DQT_USE_DEFAULT_CMAKE_OPTIMIZATION_FLAGS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktime
line-everywhere-src-6.6.1_build/gentoo_toolchain.cmake /var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1
loading initial cache file /var/tmp/portage/dev-qt/qtquicktimeline-6.6.1/work/qtquicktimeline-everywhere-src-6.6.1_build/gentoo_common_config.cmake
-- The CXX compiler identification is GNU 13.2.1
-- The C compiler identification is GNU 13.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/riscv64-unknown-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/riscv64-unknown-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- 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 XKB: /usr/lib64/libxkbcommon.so (found suitable version "1.5.0", minimum required is "0.5.0")
-- Could NOT find Qt6OpenGL (missing: Qt6OpenGL_DIR)
CMake Warning at /usr/lib64/cmake/Qt6/Qt6Config.cmake:166 (find_package):
  Found package configuration file:

    /usr/lib64/cmake/Qt6Quick/Qt6QuickConfig.cmake

  but it set Qt6Quick_FOUND to FALSE so package "Qt6Quick" is considered to
  be NOT FOUND.  Reason given by package:

  Qt6Quick could not be found because dependency Qt6OpenGL could not be
  found.

  Configuring with --debug-find-pkg=Qt6OpenGL might reveal details why the
  package was not found.

  Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
  of the path variables that find_package uses to try and find the package.

Call Stack (most recent call first):
  CMakeLists.txt:17 (find_package)


CMake Warning at /usr/lib64/cmake/Qt6/Qt6Config.cmake:223 (message):
  Failed to find optional Qt component "Quick".

  Expected Config file at "/usr/lib64/cmake/Qt6Quick/Qt6QuickConfig.cmake"
  exists

Call Stack (most recent call first):
  CMakeLists.txt:17 (find_package)


CMake Error at CMakeLists.txt:21 (message):
  Skipping the build as the condition "TARGET Qt::Quick" is not met.


-- Configuring incomplete, errors occurred!
Comment 9 Ionen Wolkens gentoo-dev 2023-12-02 20:41:00 UTC
USE=opengl is matching on qtdeclarative and qtbase right?

(I mean it should, there's [opengl=], unless something strange happened)
Comment 10 Ionen Wolkens gentoo-dev 2023-12-02 20:45:52 UTC
In theory this can happen if portage does weird ordering when flippling flags on/off for testing and it ends up pulling qtquicktimeline before it rebuilds qtdeclarative.

e.g.
1. qtbase[opengl]
2. qtdeclarative[opengl]
3. qtbase[-opengl]
4. qtquicktimeline (too early)
5. qtdeclarative[-opengl] (match.. too late)
Comment 11 Ionen Wolkens gentoo-dev 2023-12-02 20:49:48 UTC
In other words, rebuilding qtdeclarative should fix it.

This is more of a portage issue than an issue with the package or anything that should prevent keywording.
Comment 12 Jakov Smolić archtester gentoo-dev 2023-12-03 20:47:15 UTC
(In reply to Ionen Wolkens from comment #11)
> In other words, rebuilding qtdeclarative should fix it.
> 
> This is more of a portage issue than an issue with the package or anything
> that should prevent keywording.

It was correct guess, qtdeclarative was built without USE=opengl, while qtbase was. Rebuilding qtdeclarative fixed this.
Comment 13 Ionen Wolkens gentoo-dev 2023-12-04 09:28:06 UTC
(technically still a valid issue, but not much I can do about it as long as portage allows packages to build against packages the depgraph is broken on, similar to bug #916098 that I'll leave open for now)
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-04 09:29:36 UTC
Newer portage should be better for this (>=portage-3.0.56) but also make sure you're using --complete-graph in EMERGE_DEFAULT_OPTS in tatt-like environments.