Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27766 - Mozilla-Firebird fails with gcc bug on PPC
Summary: Mozilla-Firebird fails with gcc bug on PPC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-02 05:37 UTC by David Holm (RETIRED)
Modified: 2004-02-15 05:05 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Holm (RETIRED) gentoo-dev 2003-09-02 05:37:14 UTC
I've been trying to install mozilla-firebird-0.6.1 on my Pegasos (PPC G3/600)
but it fails with an internal compiler error. I have tried to disable distcc and
I have tried using a simple CFLAG="-mcpu=750 -O3 -pipe" and "-mcpu=750 -O2 -pipe".

I'm getting the following error:
g++ -o nsSlidingString.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -D_IMPL_NS_
COM  -I../../dist/include/xpcom -I../../dist/include/string -I../../dist/include
 -I/var/tmp/portage/mozilla-firebird-0.6.1/work/mozilla/dist/include/nspr     -I
/usr/X11R6/include   -fPIC  -I/usr/X11R6/include -frtti -fno-handle-exceptions  
-Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor
-dtor-privacy -Wno-long-long -O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -ms
tring -Wno-return-type -w -Wno-return-type -w -Wno-return-type -w -s -fforce-add
r -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O2  -I/u
sr/X11R6/include -DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/
nsSlidingString.pp nsSlidingString.cpp
nsPrintfCString.cpp: In constructor `nsPrintfCString::nsPrintfCString(const 
   char*, ...)':
   nsPrintfCString.cpp:55: unrecognizable insn:
   (insn 17 16 18 (parallel[ 
               (set (mem:SI (reg/f:SI 116) [4 S4 A32])
                               (reg:SI 5 r5))
                                           (clobber (scratch:SI))
                                                       (set (mem:SI (reg/f:SI 11
7) [4 S4 A32])
                                                                       (reg:SI 6
 r6))
(set (mem:SI (reg/f:SI 118) [4 S4 A32])
(reg:SI 7 r7))
(set (mem:SI (reg/f:SI 119) [4 S4 A32])
(reg:SI 8 r8))
(set (mem:SI (reg/f:SI 120) [4 S4 A32])
(reg:SI 9 r9))
(set (mem:SI (reg/f:SI 121) [4 S4 A32])
(reg:SI 10 r10))
] ) -1 (insn_list 8 (insn_list 10 (insn_list 12 (insn_list 14 (insn_list 16 (nil
))))))
(expr_list:REG_DEAD (reg:SI 10 r10)
(expr_list:REG_DEAD (reg/f:SI 121)
(expr_list:REG_DEAD (reg:SI 9 r9)
(expr_list:REG_DEAD (reg/f:SI 120)
(expr_list:REG_DEAD (reg:SI 8 r8)
(expr_list:REG_DEAD (reg/f:SI 119)
(expr_list:REG_DEAD (reg:SI 7 r7)
(expr_list:REG_DEAD (reg/f:SI 118)
(expr_list:REG_DEAD (reg:SI 6 r6)
(expr_list:REG_DEAD (reg/f:SI 117)
(expr_list:REG_DEAD (reg:SI 5 r5)
(expr_list:REG_DEAD (reg/f:SI 116)
(expr_list:REG_UNUSED (scratch:SI)
(nil)))))))))))))))
nsPrintfCString.cpp:55: Internal compiler error in extract_insn, at recog.c:
2149
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
distcc[5929] ERROR: compile on 192.168.0.6 failed with exit code 1
gmake[3]: *** [nsPrintfCString.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firebird-0.6.1/work/mozill
a/string/src'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firebird-0.6.1/work/mozill
a/string'
gmake[1]: *** [tier_2] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firebird-0.6.1/work/mozill
a'
make: *** [default] Error 2



My emerge info:
Portage 2.0.48-r1 (default-ppc-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.21-ppc-dev ppc 
GENTOO_MIRRORS="ftp://ftp.uninett.no/pub/linux/Gentoo ftp://gentoo.linux.no/pub/
gentoo/ http://gentoo.linux.no/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linu
x/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi
g /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb:/usr/kde/3.1/share/config:/usr/
share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="oss dvd xv libwww jpeg nls mitshm gif imlib png truetype ppc cups foomaticd
b gdbm berkdb slang readline arts X sdl gpm tcpd pam ssl perl python esd oggvorb
is gnome gtk qt motif opengl acl alsa bindist cdr crypt curl dga directfb doc en
code faad fbcon fbdev fluidsynth gnomedb gstreamer gtk2 gtkhtml ipv6 java jikes 
ladcca lcms libg++ mad matroska mcal md5sum mikmod mng moznocompose moznoirc moz
nomail mozsvg mpeg mpi ncurses objc odbc offensive pdflib pic plotutils quicktim
e radeon ruby socks5 sox spell sqlite tcltk tetex tiff type1 wmf wxwindows Xaw3d
xinerama xml xml2 xmms xosd xvid zlib -kde -mozilla"
COMPILER="gcc3"
CHOST="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring"
CXXFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring"
ACCEPT_KEYWORDS="ppc ~ppc"
MAKEOPTS="-j6"
AUTOCLEAN="yes"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache distcc userpriv usersandbox cvs"
Comment 1 David Holm (RETIRED) gentoo-dev 2003-10-26 05:32:09 UTC
I get the same error with 0.7.
Comment 2 Paolo Sacconier 2003-11-08 17:17:07 UTC
I got the same error with 0.7 and 0.6.1 on my iBook2.
Comment 3 David Holm (RETIRED) gentoo-dev 2003-11-09 08:23:50 UTC
changing my CFLAGS from "-O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple
-mstring" to "-O2 -pipe -mcpu=750" solved the problem.
Comment 4 Marc Ozon 2003-12-02 21:30:11 UTC
I'm seeing the same sort of thing here (iBook 2.2, gcc 3.2.3-r3, glibc-2.3.2-r3, kernel 2.4.22-ben2 from stable ppc-sources) in trying to build several different things:  mozilla, gtk+, glib, gkrellm, tcptraceroute, and others.  In some cases, builds fail when -mpowerpc-gopt and/or -mpowerpc-gfxopt are in $CFLAGS (e.g., gtk+); in other cases, it seems to be linked to -mmultiple or -mstring (tcptraceroute).

For gtk+, glib, and others, these CFLAGS work for me:  "-Os -pipe -mcpu=750 -fsigned-char -fforce-addr -fomit-frame-pointer -fstack-protector -s".  Given that there seems to be something up here in ppc-land, I'll be leaving these as my $CFLAGS for now.  For mozilla (1.5-r1), however, I needed to use "-Os -pipe -mcpu=750 -fomit-frame-pointer -s" to get a successful build.
Comment 5 Luca Barbato gentoo-dev 2003-12-02 22:56:39 UTC
you should at least remove -fsigned-char.
Comment 6 Bartosch Pixa (RETIRED) gentoo-dev 2004-02-15 05:05:16 UTC
closing as this is more or less fixed, (dont use funky cflags kids)