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

Bug 64910

Summary: gcc: ICE while building openmotif on ppc
Product: Gentoo Linux Reporter: David Bélanger <dbelan2>
Component: New packagesAssignee: PPC Porters <ppc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: preprocessed file dumped

Description David Bélanger 2004-09-21 15:52:43 UTC
I cannot emerge openmotif.  I get some internal compiler error:

gcc -fno-stack-protector -O2 -fno-strict-aliasing -pipe -fsigned-char    -I../.. -I../../exports/include -I../../imports/x11/include  -Dlinux -D__powerpc__ -D_POSIX_C_SOURCE=199309L                           -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L                            -D_BSD_SOURCE -D_SVID_SOURCE -DNO_MESSAGE_CATALOG  -DFUNCPROTO=15 -DNARROWPROTO     -c -o mkcatdefs.o mkcatdefs.c
mkcatdefs.c: In function `mkcatdefs':
mkcatdefs.c:482: error: could not split insn
(insn:TI 1993 4 1992 (set (reg:SI 0 0)
        (const_int -2147487920 [0xffffffff7fffef50])) 249 {*movsi_internal1} (nil)
    (nil))
mkcatdefs.c:482: internal compiler error: in final_scan_insn, at final.c:2429
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /var/tmp/portage/openmotif-2.1.30-r5/temp/ccAzGolo.out file, please attach this to your bugreport.
make[3]: *** [mkcatdefs.o] Error 1


I tried with gcc 2.95.3, 3.3.3, 3.4.1.  With -O3 and -O2.  With and without -fno-strict-aliasing.  With and without -fno-stack-protector.  In all cases I keep getting this error.

Note: The make process of openmotif still goes on and emerge reports it as successfully merged.  However, libs are not built.  Only things like manpages are installed.




Reproducible: Always
Steps to Reproduce:
1. emerge openmotif
2.
3.

Actual Results:  

emerge reports successfully built.  However, compiler errors, libraries are not
built.

Expected Results:  

It should have built successfully.

Also, it should not continue and report success if part of compilation failed.

Portage 2.0.51_rc1 (default-ppc-2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.6.
7-gentoo-r14 ppc)
=================================================================
System uname: 2.6.7-gentoo-r14 ppc 750FX
Gentoo Base System version 1.5.3
distcc 2.17 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [e
nabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.3-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=750 -pipe"
CHOST="powerpc-unknown-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2
/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /
usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/s
hare/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/t
ex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=750 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distcc"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distri
butions/gentoo"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X arts berkdb dvd emacs esd gdbm gif gnome-libs gtk imlib jpeg kde libwww m
otif nls no_wxgtk1 oggvorbis opengl pam perl png ppc python qt readline ruby sdl
 ssl tcltk tcpd tetex truetype"
Comment 1 David Bélanger 2004-09-21 15:56:46 UTC
Created attachment 40132 [details]
preprocessed file dumped
Comment 2 Joe Jezak (RETIRED) gentoo-dev 2004-09-21 16:13:50 UTC
Can you try the build with the CFLAGS:

"-O0 -mtune=750 -pipe -fno-strict-aliasing"

using gcc 3.4.1?

Thanks
Comment 3 David Bélanger 2004-09-21 16:34:40 UTC
Same thing with: "-O0 -mtune=750 -pipe -fno-strict-aliasing"


gcc -O0 -mtune=750 -fno-strict-aliasing -pipe -fsigned-char    -I../.. -I../../exports/include -I../../imports/x11/include  -Dlinux -D__powerpc__ -D_POSIX_C_SOURCE=199309L                             -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L   -D_BSD_SOURCE -D_SVID_SOURCE -DNO_MESSAGE_CATALOG  -DFUNCPROTO=15 -DNARROWPROTO     -c -o mkcatdefs.o mkcatdefs.c
mkcatdefs.c: In function `mkcatdefs':
mkcatdefs.c:482: error: could not split insn
(insn 1517 1516 1518 (set (reg:SI 0 0)
        (const_int -2147487872 [0xffffffff7fffef80])) 249 {*movsi_internal1} (nil)
    (nil))
mkcatdefs.c:482: internal compiler error: in final_scan_insn, at final.c:2429
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /var/tmp/portage/openmotif-2.1.30-r5/temp/ccVXgpM1.out file, please attach this to your bugreport.
Comment 4 Joe Jezak (RETIRED) gentoo-dev 2004-09-21 17:19:59 UTC
Hmm, okay then, one thing that I noticed is that you're building with distcc, maybe that's causing problems?  Otherwise it looks similar to my configuration, which works.  Try building without distcc and the same CFLAGS (maybe put -O back to the level you originally had).

Thanks 
Comment 5 David Bélanger 2004-09-22 22:47:36 UTC
Small update:

I tried with ccache and distcc disabled and I was still having the same problem.

I can compile manually the file that does the ICE without the option: -D_XOPEN_SOURCE=500L

The ICE does not seem fatal to build libXm.  I was unable to build that openmotif lib initially because of a missing libXp.  Rebuilding xorg fixed that problem.

To summarize, that particular ICE does not prevent building the libs and they seem functional.  However, I am still having the ICE.

Comment 6 Joe Jezak (RETIRED) gentoo-dev 2004-09-26 21:20:00 UTC
I can replicate this bug now.  I'll see if I can figure out what's going on.
Comment 7 Luca Barbato gentoo-dev 2004-09-29 16:09:29 UTC
I'll try once I'm home
Comment 8 Luca Barbato gentoo-dev 2004-10-21 01:22:22 UTC
reproduced locally, looks like a gcc bug afterall
Comment 9 Luca Barbato gentoo-dev 2004-10-21 01:47:45 UTC
upstream bug opened
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18096
Comment 10 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2004-12-17 14:13:50 UTC
The error is still existing in gcc 3.4.3.
Comment 11 Heinrich Wendel (RETIRED) gentoo-dev 2005-02-01 11:02:11 UTC
try openmotif-2.2.3
Comment 12 Heinrich Wendel (RETIRED) gentoo-dev 2005-03-02 09:31:11 UTC
is this bug still valid?
Comment 13 Joe Jezak (RETIRED) gentoo-dev 2005-03-05 20:47:13 UTC
This no longer occurs with the stable version of OpenMotif.  Closing the bug.