Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ninja fails to build qtbase
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 370

PostPosted: Fri Dec 20, 2024 3:36 pm    Post subject: ninja fails to build qtbase Reply with quote

Hi guys!
Can't update qtbase. Getting this error (the tail of emerge output):
Code:
[220/743] /usr/bin/x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -DPROEVALUATOR_FULL -DQMAKE_VERSION_STR=\"3.1\" -DQT_BUILD_QMAKE -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_HOST_DATADIR=\"lib64/qt6\" -DQT_HOST_MKSPEC=\"linux-g++\" -DQT_LEAN_HEADERS=1 -DQT_NO_AS_CONST -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QEXCHANGE -DQT_TARGET_MKSPEC=\"linux-g++\" -DQT_USE_QSTRINGBUILDER -DQT_WARN_DEPRECATED_UP_TO=0x070000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3/qmake -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3_build/qmake -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3/qmake/generators -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3/qmake/generators/mac -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3/qmake/generators/unix -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3/qmake/generators/win32 -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3/qmake/library -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3/mkspecs/linux-g++ -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3_build/include -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3_build/src/corelib -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3_build/include/QtCore/6.7.3 -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3_build/include/QtCore/6.7.3/QtCore -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3_build/include/QtCore  -march=native -O2 -pipe -std=c++17 -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -ffunction-sections -fdata-sections -Wsuggest-override -fcf-protection=full -fPIC -MD -MT qmake/CMakeFiles/qmake.dir/Unity/unity_0_cxx.cxx.o -MF qmake/CMakeFiles/qmake.dir/Unity/unity_0_cxx.cxx.o.d -o qmake/CMakeFiles/qmake.dir/Unity/unity_0_cxx.cxx.o -c /var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3_build/qmake/CMakeFiles/qmake.dir/Unity/unity_0_cxx.cxx
[221/743] /usr/bin/x86_64-pc-linux-gnu-g++ -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_NO_AS_CONST -DQT_NO_CAST_FROM_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QEXCHANGE -DQT_UIC -DQT_USE_QSTRINGBUILDER -DQT_WARN_DEPRECATED_UP_TO=0x070000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3_build/src/tools/uic/uic_autogen/include -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3/src/tools/uic -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3_build/src/tools/uic -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3/src/tools/uic/cpp -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3/src/tools/uic/python -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3/src/tools/uic/shared -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3/mkspecs/linux-g++ -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3_build/include -I/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3_build/include/QtCore  -march=native -O2 -pipe -std=c++17 -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -Wsuggest-override -fcf-protection=full -fPIC -MD -MT src/tools/uic/CMakeFiles/uic.dir/Unity/unity_0_cxx.cxx.o -MF src/tools/uic/CMakeFiles/uic.dir/Unity/unity_0_cxx.cxx.o.d -o src/tools/uic/CMakeFiles/uic.dir/Unity/unity_0_cxx.cxx.o -c /var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3_build/src/tools/uic/CMakeFiles/uic.dir/Unity/unity_0_cxx.cxx
ninja: build stopped: subcommand failed.
 * ERROR: dev-qt/qtbase-6.7.3-r2::gentoo failed (compile phase):
 *   ninja -v -j12 -l0 failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 2281:  Called cmake_src_compile
 *   environment, line  964:  Called cmake_build
 *   environment, line  931:  Called eninja
 *   environment, line 1413:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 *
 * If you need support, post the output of `emerge --info '=dev-qt/qtbase-6.7.3-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-qt/qtbase-6.7.3-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3_build'
 * S: '/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3'


Complete build log: https://pastebin.com/NEv8kggu
And make.conf: https://pastebin.com/LUDp70GJ

Apart from ninja error there is "FAILED" message in build.log (a bit above):
Code:
[210/743] : && /usr/bin/x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs     -Wl,--enable-new-dtags -fPIE -pie src/tools/qvkgen/CMakeFiles/qvkgen.dir/Unity/unity_0_cxx.cxx.o -o lib64/qt6/libexec/qvkgen  -Wl,-rpath,/var/tmp/portage/dev-qt/qtbase-6.7.3-r2/work/qtbase-everywhere-src-6.7.3_build/lib64:  lib64/libQt6Core.so.6.7.3 && :
FAILED: lib64/qt6/libexec/qvkgen

not sure is it related to ninja failure.

Seems it's not an OOM issue, just before crash moment free command reported 24Gb of RAM available. Compiling in tmpfs, j12. Tried j6 - the same error.

Any ideas, what's wrong?
_________________
GNU is Not Usable
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2884

PostPosted: Fri Dec 20, 2024 3:47 pm    Post subject: Reply with quote

This is the actual error:
Code:
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libicui18n.so.75: undefined reference to `__cxa_call_terminate@CXXABI_1.3.15'
This happens when GCC was downgraded, aka you (probably) built dev-libs/icu with gcc14, then went back to gcc13. This is not supported when C++ is involved, so I'd suggest to just go back to gcc14. If you really want to stay on gcc13, then you'd have to rebuild every packages formerly built with gcc14 that's linked with libstdc++ using gcc13 in a viable order (aka icu before qtbase, and so on if there's more problems -- non-issue if just go back to gcc14).

https://wiki.gentoo.org/wiki/Upgrading_GCC#undefined_reference_to_.60_cxa_call_terminate.40CXXABI_1.3.15.27
Back to top
View user's profile Send private message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 370

PostPosted: Fri Dec 20, 2024 5:39 pm    Post subject: Reply with quote

@lonen
Thank for your reply.
I rebuilt icu with my current gcc-13 and it fixed ninja issue. Than I ran emerge --info gcc and found that I have two versions of gcc installed.
I overlooked that gcc-14 was pulled in, and still have gcc-13 set active:
Code:
# gcc-config --list-profiles
 [1] x86_64-pc-linux-gnu-13 *
 [2] x86_64-pc-linux-gnu-14

I even don't know how it possible that some packages was built with gcc-14 if it even wasn't activated?

Anyway I rebuilt icu and then ninja error disapeared

Thanks.
_________________
GNU is Not Usable
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum