Summary: | dev-qt/qtquick3d-6.6.0 fails to build with gcc:14 (scene.cpp:(.text+<snip>): undefined reference to embree::BVH8Factory::BVH8QuantizedTriangle4(embree::Scene )) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Qt Bug Alias <qt> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ionen, kacper.slominski72, kostadinshishmanov |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | fixed in 6.6.2 | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 914580 | ||
Attachments: |
emerge-info.txt
dev-qt:qtquick3d-6.6.0:20231116-030107.log.xz emerge-history.txt environment etc.clang.tar.xz etc.portage.tar.xz qlist-info.txt temp.tar.xz |
Description
Toralf Förster
![]() Created attachment 874852 [details]
emerge-info.txt
Created attachment 874853 [details]
dev-qt:qtquick3d-6.6.0:20231116-030107.log.xz
Created attachment 874854 [details]
emerge-history.txt
Created attachment 874855 [details]
environment
Created attachment 874856 [details]
etc.clang.tar.xz
Created attachment 874857 [details]
etc.portage.tar.xz
Created attachment 874858 [details]
qlist-info.txt
Created attachment 874859 [details]
temp.tar.xz
Can only reproduce with gcc:14, albeit no idea what's going on here. (it does bundle embree at src/3rdparty/embree) I've tried some combinations of C{,XX}FLAGS flags and this seems to be caused by -march=native (or in my case, -march=znver2)? make.conf fragment: # COMMON_FLAGS="-O3 -march=znver2 -pipe -ggdb3" # original, bad # COMMON_FLAGS="" # 1. good # COMMON_FLAGS="-O3" # 2. good # COMMON_FLAGS="-O3 -march=znver2" # 3. bad # COMMON_FLAGS="-O3 -pipe" # 4. good COMMON_FLAGS="-O3 -pipe -ggdb3" # 5. good CFLAGS="${COMMON_FLAGS}" CXXFLAGS="${COMMON_FLAGS} -D_GLIBCXX_ASSERTIONS" gcc version: gcc version 14.0.1 20240124 (experimental) 3de031c96f28f19a68ea2080260d8fd2c78828ee (Gentoo 14.0.1 p, commit ddeac849ac4c3fecdf591ab6fb075cc6c5afdbff) (In reply to Kacper Słomiński from comment #10) > I've tried some combinations of C{,XX}FLAGS flags and this seems to be > caused by -march=native (or in my case, -march=znver2)? > > make.conf fragment: > > # COMMON_FLAGS="-O3 -march=znver2 -pipe -ggdb3" # original, bad > # COMMON_FLAGS="" # 1. good > # COMMON_FLAGS="-O3" # 2. good > # COMMON_FLAGS="-O3 -march=znver2" # 3. bad > # COMMON_FLAGS="-O3 -pipe" # 4. good > COMMON_FLAGS="-O3 -pipe -ggdb3" # 5. good > CFLAGS="${COMMON_FLAGS}" > CXXFLAGS="${COMMON_FLAGS} -D_GLIBCXX_ASSERTIONS" > > > gcc version: > > gcc version 14.0.1 20240124 (experimental) > 3de031c96f28f19a68ea2080260d8fd2c78828ee (Gentoo 14.0.1 p, commit > ddeac849ac4c3fecdf591ab6fb075cc6c5afdbff) just `-mavx -O2` seems to be enough for me to reproduce it. Just a guess given haven't really looked at this yet, but if it's related to -mavx then I'd suspect [1] and [2] being related. [1] is probably missing something with gcc:14 or something like that. [1] https://github.com/qt/qtquick3d/commit/7980cfd0 [2] https://github.com/qt/qtquick3d/blob/6b990522/src/3rdparty/embree/CMakeLists.txt#L64 Suppose that a lame workaround without disabling avx for the entire package or trying to figure out what needs disabling could be to just: qt_internal_extend_target(BundledEmbree COMPILE_OPTIONS -mno-avx) ftr this will be worked around alongside the 6.6.2 bump soon'ish, not planning to fix this in 6.6.1 The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a12ca228ddf576fece46b4c133ea311cf3c7e6be commit a12ca228ddf576fece46b4c133ea311cf3c7e6be Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2024-02-14 11:06:58 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2024-02-14 12:20:56 +0000 dev-qt/qtquick3d: add 6.6.2 Closes: https://bugs.gentoo.org/917407 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> dev-qt/qtquick3d/Manifest | 1 + dev-qt/qtquick3d/qtquick3d-6.6.2.ebuild | 47 +++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37bd373cd33c36f8dd44e71be25fa6ea24cf4588 commit 37bd373cd33c36f8dd44e71be25fa6ea24cf4588 Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2024-02-07 05:22:11 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2024-02-14 12:20:52 +0000 dev-qt/qtquick3d: fix build with gcc14 Bug: https://bugs.gentoo.org/917407 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> dev-qt/qtquick3d/files/qtquick3d-6.6.2-gcc14.patch | 23 ++++++++++++++++++++++ dev-qt/qtquick3d/qtquick3d-6.6.9999.ebuild | 4 ++++ dev-qt/qtquick3d/qtquick3d-6.7.9999.ebuild | 4 ++++ dev-qt/qtquick3d/qtquick3d-6.9999.ebuild | 4 ++++ 4 files changed, 35 insertions(+) |