Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 14808

Summary: GnuCash 1.6.8 compilation breakage
Product: Gentoo Linux Reporter: Per Cederberg <per>
Component: New packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: mholzer
Priority: High    
Version: 1.4_rc2   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Per Cederberg 2003-01-30 17:32:50 UTC
I experience a compilation breakage when compiling GnuCash 1.6.8 with gcc 3.2.1
(r6). I have a recently installed 1.4.rc2 system with all installed packages up
to date. The error printed is attached below. No errors were reported previous
to this one (as far as I could see):

--- START LISTING ---

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./calculation   -I./engine   -I./guile  
-I./register    -O3 -mcpu=i686 -march=i686 -funroll-loops -frerun-cse-after-loop
-frerun-loop-opt -pipe -Wall -Wunused  -Wall -Wno-unused
-Werror-implicit-function-declaration -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include
-I/usr/include/orbit-1.0 -I/usr/include -c SplitLedger.c
SplitLedger.c: In function `gnc_find_split_in_reg_by_memo':
SplitLedger.c:5164: Internal compiler error in verify_local_live_at_start, at
flow.c:586
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
make[3]: *** [SplitLedger.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/gnucash-1.6.8/work/gnucash-1.6.8/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnucash-1.6.8/work/gnucash-1.6.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnucash-1.6.8/work/gnucash-1.6.8'
make: *** [all-recursive-am] Error 2

!!! ERROR: app-office/gnucash-1.6.8 failed.
!!! Function src_compile, Line 63, Exitcode 2
!!! (no error message)

--- END LISTING ---

The probable reason for the breakage are my optimization settings:

CFLAGS="-O3 -mcpu=i686 -march=i686 -funroll-loops -frerun-cse-after-loop
-frerun-loop-opt -pipe"

When removing all the -fxxx settings and using -O2 the compilation works:

CFLAGS="-O2 -mcpu=i686 -march=i686 -pipe"

I suspect that the gnucash ebuild should be modified to filter out the offending
optimization setting(s) (whichever that may be). Perhaps the gcc folks should
also be informed about the error (if they support -O3 optimizations).
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-01-31 18:48:13 UTC
Leonardo: use the flag-o-matic to change and remove unwanted flags
Comment 2 foser (RETIRED) gentoo-dev 2003-03-03 19:38:09 UTC
added some more filter magic, should be safer now.
Comment 3 Aric LeDell 2003-03-16 17:04:12 UTC
Typo in fix from comment #3; the ebuild in portage has a syntax error on line 38:
     filter-flag "-O3" "-O2"
needs to be
     filter-flags "-O3" "-O2"

I'm not sure if I should reopen this bug (bugzilla doesn't seem to let me), 
or just rely on Martin Holzer to change the ebuild.

P.S., this typo was propogated to the gnucash-1.8.x ebuilds proposed in 
another bug#
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-03-16 17:16:51 UTC
fixed in cvs

thx