Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101606 - sprk.f:541: internal compiler error: in fold_convert, at fold-const.c:2003 (gcc-4)
Summary: sprk.f:541: internal compiler error: in fold_convert, at fold-const.c:2003 (g...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL: http://gcc.gnu.org/bugzilla/show_bug....
Whiteboard: 4.0.2-r3
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-06 20:58 UTC by vykk3
Modified: 2005-12-21 18:47 UTC (History)
0 users

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 vykk3 2005-08-06 20:58:51 UTC
Using gcc4 / gfortran:

gcc version 4.0.1 (Gentoo 4.0.1, pie-8.7.8)

Gentoo system on AMD XP3200+ fully updated.

Using source obtained from:

http://fire.nist.gov/fds/  --> downloads --> FDS 4.0.5 Source Files  -->Unix Tar
file.

There are some variables not declared PUBLIC in misc.f and radi.f that need to
be declaired (have patch files if you need them).

vw@witch1 ~/Jaimie/SOURCE_4.05 $ make
gfortran -c  sprk.f
sprk.f: In function 'insert_droplets':
sprk.f:541: internal compiler error: in fold_convert, at fold-const.c:2003
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
make: *** [sprk.o] Error 1

Statement that seems to be causing the problem is:

      PWT0 = FLOW_RATE*MAX(T-SH%T,0.01_EB)/MASS_SUM

This occurs also on a AMD 64 system under gentoo.

Thanks very much for your help, anything I can do, please let me know.

Thanks & take care, Vikki.


Reproducible: Always
Steps to Reproduce:
1.make

makefile is as:
================================================
# Makefile for Lahey Fortran and Gnu C on RedHat Linux

FFLAGS     = 
# FFLAGS     = -O2 -march=athlon-xp -fomit-frame-pointer -pipe
# FFLAGS     = -O --tpp --staticlink --nap --nchk --npca --nsav --ntrace
CFLAGS     = -O
obj     = fds4_linux
VPATH   = ../SOURCE
FCOMPL  = gfortran
# FCOMPL  = lf95
CCOMPL  = gcc

.SUFFIXES:
.SUFFIXES: .c .f .o

.f.o:
	$(FCOMPL) -c $(FFLAGS) $<
.c.o:
	$(CCOMPL) -c $(CFLAGS) $<

OBJECTS = mods.o \
          pois.o misc.o radi.o sprk.o \
          dump.o read.o mass.o  pres.o \
          divg.o init.o  \
          isob.o velo.o  main.o \

APPLIC: $(INLINE1) $(INLINE2) $(OBJECTS)
	$(FCOMPL) $(FFLAGS) -o $(obj) $(OBJECTS)

INLINE1 = mods.f
INLINE2 = pois.f misc.f radi.f
INLINE3 = divg.f init.f dump.f sprk.f read.f mass.f pres.f velo.f

mods.o : mods.f
pois.o : pois.f $(INLINE1)
misc.o : misc.f $(INLINE1) 
radi.o : radi.f $(INLINE1) 
sprk.o : sprk.f $(INLINE1)
divg.o : divg.f $(INLINE1)
mass.o : mass.f $(INLINE1) $(INLINE2)
init.o : init.f $(INLINE1) $(INLINE2)
read.o : read.f $(INLINE1)
pres.o : pres.f $(INLINE1) $(INLINE2)
velo.o : velo.f $(INLINE1)
dump.o : dump.f $(INLINE1) $(INLINE2)
main.o : main.f $(INLINE1) $(INLINE2) $(INLINE3)
isob.o : isob.c
================================================


Actual Results:  
See details above, it is consistant.

Expected Results:  
finished the compile :).

witch1 ~ # emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-4.0.1, glibc-2.3.5-r0,
2.6.12.3 i686)
=================================================================
System uname: 2.6.12.3 i686 AMD Athlon(tm) XP 3200+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.ccccom.com ftp://gentoo.ccccom.com
http://mirror.tucdemonic.org/gentoo/ http://cudlug.cudenver.edu/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
>>>>>NOTE-INTERNAL LAN NATTED OUT: SYNC="rsync://198.134.137.45/gentoo-portage"
USE="x86 3dnow X aalib alsa apm arts avi bash-completion berkdb bitmap-fonts
bonobo cdr crypt cups curl eds emboss encode esd fam flac foomaticdb fortran gd
gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib
ipv6 java jpeg junit kde libg++ libwww mad mikmod mmx mmx2 motif mozilla mp3
mpeg mysql ncurses nls ogg oggvorbis opengl oss pam pdflib perl png postgres
python qt quicktime readline scanner sdl slang speex spell ssl svga tcltk tcpd
tetex tiff truetype truetype-fonts type1-fonts usb vorbis xml xml2 xmms xv zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS

witch1 ~ #
Comment 1 Mark Loeser (RETIRED) gentoo-dev 2005-10-13 23:30:01 UTC
Could you please let me know if this is still a problem with gcc-4.0.2-r1?
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2005-12-21 18:47:11 UTC
Added to the patchset, thanks.