Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20498 - squeak-3.2.5 doesn't compile when -fforce-addr is used
Summary: squeak-3.2.5 doesn't compile when -fforce-addr is used
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Jared H. Hudson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-05 15:26 UTC by dhx
Modified: 2003-12-03 08:55 UTC (History)
1 user (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 dhx 2003-05-05 15:26:53 UTC
Just tried to emerge dev-lang/squeak-3.2.5 which gave me the following error:

[...]
gcc -I/usr/X11R6/include -O3 -mcpu=pentium3 -march=pentium3 -fforce-addr
-fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt
-falign-functions=4 -pipe -fomit-frame-pointer -DLSB_FIRST=1  -DHAVE_CONFIG_H 
-DSQUEAK_BUILTIN_PLUGIN -I/var/tmp/portage/squeak-3.2.5/work/Squeak-3.2-5/build
-I/var/tmp/portage/squeak-3.2.5/work/Squeak-3.2-5/platforms/unix/vm
-I/var/tmp/portage/squeak-3.2.5/work/Squeak-3.2-5/platforms/Cross/vm
-I/usr/X11R6/include
-I/var/tmp/portage/squeak-3.2.5/work/Squeak-3.2-5/platforms/Cross/vm
-I/var/tmp/portage/squeak-3.2.5/work/Squeak-3.2-5/platforms/unix/vm
-I/var/tmp/portage/squeak-3.2.5/work/Squeak-3.2-5/src/vm 
-I/var/tmp/portage/squeak-3.2.5/work/Squeak-3.2-5/platforms/Cross/plugins/FilePlugin
  -c -o gnu-interp.o gnu-interp.c
gnu-interp.c: In function `okayFields':
gnu-interp.c:9855: 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[1]: *** [gnu-interp.o] Fehler 1
make: *** [vm/vm.a] Fehler 2
make: *** Warte auf noch nicht beendete Prozesse...
ar -rc B2DPlugin.a B2DPlugin.o
ranlib B2DPlugin.a
 
!!! ERROR: dev-lang/squeak-3.2.5 failed.
!!! Function src_compile, Line 43, Exitcode 2
!!! (no error message)


I compiled this single file (gnu-interp.c) without the -fforce-addr and it
worked flawlessly:

gcc -I/usr/X11R6/include -O3 -mcpu=pentium3 -march=pentium3 -fomit-frame-pointer
-funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -pipe
-fomit-frame-pointer -DLSB_FIRST=1  -DHAVE_CONFIG_H  -DSQUEAK_BUILTIN_PLUGIN
-I/var/tmp/portage/squeak-3.2.5/work/Squeak-3.2-5/build
-I/var/tmp/portage/squeak-3.2.5/work/Squeak-3.2-5/platforms/unix/vm
-I/var/tmp/portage/squeak-3.2.5/work/Squeak-3.2-5/platforms/Cross/vm
-I/usr/X11R6/include
-I/var/tmp/portage/squeak-3.2.5/work/Squeak-3.2-5/platforms/Cross/vm
-I/var/tmp/portage/squeak-3.2.5/work/Squeak-3.2-5/platforms/unix/vm
-I/var/tmp/portage/squeak-3.2.5/work/Squeak-3.2-5/src/vm 
-I/var/tmp/portage/squeak-3.2.5/work/Squeak-3.2-5/platforms/Cross/plugins/FilePlugin
  -c -o gnu-interp.o gnu-interp.c


Maybe the gotos in gnu-interp.c are causing this problem? 
I can't tell, but maybe -fforce-addr should be stripped in the ebuild...

dhx


Reproducible: Always
Steps to Reproduce:
1. add -fforce-addr to te compile flags
2. emerge squeak




Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
GENTOO_MIRRORS=" http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://212.219.56.146/sites/www.ibiblio.org/gentoo/
http://194.83.57.11/sites/www.ibiblio.org/gentoo/
http://194.83.57.15/sites/www.ibiblio.org/gentoo/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/home/portage"
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb
slang readline arts tetex nas bonobo svga tcltk java guile ruby mysql X sdl gpm
tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif
opengl mozilla cdr scanner aalib acpi apache2 dga directfb dvd fbcon flash gd
gtk2 jikes radeon samba sasl slp sse tiff usb wmf"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O3 -mcpu=pentium3 -march=pentium3 -fforce-addr -fomit-frame-pointer
-funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -pipe"
CXXFLAGS="-O3 -mcpu=pentium3 -march=pentium3 -fforce-addr -fomit-frame-pointer
-funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage/"
FEATURES="ccache sandbox userpriv usersandbox distcc buildpkg"
Comment 1 Jared H. Hudson (RETIRED) gentoo-dev 2003-08-06 01:54:42 UTC
This bug doesnt seem to be as clear cut as that, with these options (which include -fforce-addr) it compiles fine for me (but with your options it does not) I believe more than one thing is interacting and causing this.

There are my current compile options:
-march=athlon-mp -O3 -pipe -fforce-addr

Please look into the problem more, try different options and combinations of your compile flags and let me know what you find.

Thanks
Comment 2 Jared H. Hudson (RETIRED) gentoo-dev 2003-12-03 08:55:54 UTC
Done. Thanks.