Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 819195 - app-office/gnucash-4.8: stabilisation (was: error: #warning "__STRICT_ANSI__ seems to have been undefined)
Summary: app-office/gnucash-4.8: stabilisation (was: error: #warning "__STRICT_ANSI__ ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Aaron W. Swenson
URL:
Whiteboard:
Keywords: CC-ARCHES
Depends on:
Blocks:
 
Reported: 2021-10-21 13:01 UTC by Fabio Rossi
Modified: 2021-12-09 06:39 UTC (History)
5 users (show)

See Also:
Package list:
app-office/gnucash-4.8 app-doc/gnucash-docs-4.8
Runtime testing required: ---
nattka: sanity-check+


Attachments
emerge-info.txt.bz2 (emerge-info.txt.bz2,8.32 KB, application/x-bzip)
2021-11-20 15:39 UTC, Fabio Rossi
no flags Details
gnucash-4.4-20211120-151912.log.gz (gnucash-4.4-20211120-151912.log.gz,23.57 KB, application/x-gzip)
2021-11-20 15:40 UTC, Fabio Rossi
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Rossi 2021-10-21 13:01:47 UTC
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
Comment 1 Fabio Rossi 2021-10-21 20:42:46 UTC
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
Comment 2 Aaron W. Swenson gentoo-dev 2021-11-20 13:52:17 UTC
(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?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-20 13:58:30 UTC
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
Comment 4 Fabio Rossi 2021-11-20 15:38:52 UTC
(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
Comment 5 Fabio Rossi 2021-11-20 15:39:23 UTC
Created attachment 753926 [details]
emerge-info.txt.bz2
Comment 6 Fabio Rossi 2021-11-20 15:40:05 UTC
Created attachment 753930 [details]
gnucash-4.4-20211120-151912.log.gz
Comment 7 NATTkA bot gentoo-dev 2021-12-08 01:20:31 UTC Comment hidden (obsolete)
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-08 22:59:49 UTC
x86 done
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-09 06:39:07 UTC
amd64 done

all arches done