I get a build failure with gcc 11.2.0, it's working fine with gcc-10 FAILED: libgnucash/backend/dbi/CMakeFiles/gncmod-backend-dbi.dir/gnc-backend-dbi.cpp.o /usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ALL_NO_LIB -DBOOST_DATE_TIME_DYN_LINK -DBOOST_REGEX_DYN_LINK -DG_LOG_DOMAIN=\"gnc.backend.dbi\" -DHAVE_CONFIG_H -DHAVE_GUILE22 -D_GNU_SOURCE -Dgncmod_backend_dbi_EXPORTS -I/var/tmp/portage/app-office/gnucash-4.4/work/gnucash-4.4/libgnucash/backend/sql -I/var/tmp/portage/app-office/gnucash-4.4/work/gnucash-4.4/libgnucash/engine -Icommon -I/var/tmp/portage/app-office/gnucash-4.4/work/gnucash-4.4/common -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/var/tmp/portage/app-office/gnucash-4.4/work/gnucash-4.4/borrowed/libc -Ilibgnucash/core-utils -I/var/tmp/portage/app-office/gnucash-4.4/work/gnucash-4.4/libgnucash/core-utils -Wno-error=deprecated-declarations -Werror -Wall -Wmissing-declarations -Wno-unused -Wno-error=parentheses -march=core2 -O2 -pipe -fPIC -std=c++17 -MD -MT libgnucash/backend/dbi/CMakeFiles/gncmod-backend-dbi.dir/gnc-backend-dbi.cpp.o -MF libgnucash/backend/dbi/CMakeFiles/gncmod-backend-dbi.dir/gnc-backend-dbi.cpp.o.d -o libgnucash/backend/dbi/CMakeFiles/gncmod-backend-dbi.dir/gnc-backend-dbi.cpp.o -c /var/tmp/portage/app-office/gnucash-4.4/work/gnucash-4.4/libgnucash/backend/dbi/gnc-backend-dbi.cpp In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/type_traits:38, from /usr/include/glib-2.0/glib/gatomic.h:31, from /usr/include/glib-2.0/glib/gthread.h:32, from /usr/include/glib-2.0/glib/gasyncqueue.h:32, from /usr/include/glib-2.0/glib.h:32, from /var/tmp/portage/app-office/gnucash-4.4/work/gnucash-4.4/libgnucash/engine/qof.h:73, from /var/tmp/portage/app-office/gnucash-4.4/work/gnucash-4.4/libgnucash/backend/dbi/gnc-backend-dbi.cpp:51: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/x86_64-pc-linux-gnu/bits/c++config.h:573:2: error: #warning "__STRICT_ANSI__ seems to have been undefined; this is not supported" [-Werror=cpp] 573 | #warning "__STRICT_ANSI__ seems to have been undefined; this is not supported" | ^~~~~~~ cc1plus: all warnings being treated as errors
this issue has been addressed upstream with https://github.com/Gnucash/gnucash/commit/12ad4fadae007b23df8cd0b6eb09c16c75b0e202#diff-0332e9e49f461c1babfabc356bad2eab17ec5886801346fcff8827e590e02701 but after applying that patch there is another issue which affects also latest 4.8.0
(In reply to Fabio Rossi from comment #1) > this issue has been addressed upstream with > https://github.com/Gnucash/gnucash/commit/ > 12ad4fadae007b23df8cd0b6eb09c16c75b0e202#diff- > 0332e9e49f461c1babfabc356bad2eab17ec5886801346fcff8827e590e02701 > > but after applying that patch there is another issue which affects also > latest 4.8.0 Hmm, I didn't encounter this issue with 4.8. Would you try it with the 4.8 ebuild in tree?
Please do include the full build.log and emerge --info in future so we can try figure out what makes things fail for you - it's not always super obvious even if it looks like it
(In reply to Aaron W. Swenson from comment #2) > (In reply to Fabio Rossi from comment #1) > > this issue has been addressed upstream with > > https://github.com/Gnucash/gnucash/commit/ > > 12ad4fadae007b23df8cd0b6eb09c16c75b0e202#diff- > > 0332e9e49f461c1babfabc356bad2eab17ec5886801346fcff8827e590e02701 > > > > but after applying that patch there is another issue which affects also > > latest 4.8.0 > > Hmm, I didn't encounter this issue with 4.8. Would you try it with the 4.8 > ebuild in tree? When I experienced this bug I was trying to upgrade (without success) from 4.2 to 4.4, 4.5 or even 4.8 (last one was not in the tree yet). There were two problems, the first one described in this bug report which is valid only for version 4.4 with gcc-11 and can be solved by applying the patch above mentioned from upstream. gnucash >=4.5 has already that patch applied of course :-) The second problem is described in bug #762661, solved by following the advice in https://bugs.gentoo.org/762661#c26 (it was necessary to uninstall 4.2). IMHO the build process of gnucash uses files through guile, if available, outside the image dir so when 4.2 is installed and building another version some sort of incompatibility happens. (In reply to Sam James from comment #3) > Please do include the full build.log and emerge --info in future so we can > try figure out what makes things fail for you - it's not always super > obvious even if it looks like it I didn't because the error was clear and I found the upstream patch to solve the problem. Anyway, I have attached them right now
Created attachment 753926 [details] emerge-info.txt.bz2
Created attachment 753930 [details] gnucash-4.4-20211120-151912.log.gz
Sanity check failed: > app-office/gnucash-4.8 > pdepend amd64 dev profile default/linux/amd64/17.0/x32 (2 total) > ~app-doc/gnucash-docs-4.8 > pdepend amd64 stable profile default/linux/amd64/17.1 (24 total) > ~app-doc/gnucash-docs-4.8
x86 done
amd64 done all arches done