Bug 40237 - Internal compiler error building Cuba library
Summary: Internal compiler error building Cuba library
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 4.2.4
: P3 normal
Target Milestone: 4.3.3
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-24 18:52 UTC by Igor Pashev
Modified: 2009-05-24 19:11 UTC (History)
1 user (show)

See Also:
Host: i486-slackware-linux
Target: i486-slackware-linux
Build: i486-slackware-linux
Known to work: 4.3.3
Known to fail: 4.2.4
Last reconfirmed:


Attachments
the preprocessed file (63.39 KB, text/plain)
2009-05-24 18:55 UTC, Igor Pashev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Pashev 2009-05-24 18:52:53 UTC
http://www.feynarts.de/cuba/
Cuba 1.6 from 10 of may 2009

========================
# ./configure
========================
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for long double with more range or precision than double... yes
checking for powl... yes
checking for erf... yes
checking for variable-size arrays... yes
checking for qmake... qmake
configure: creating ./config.status
config.status: creating makefile
config.status: creating config.h

======================
# make
======================
gcc -O3 -fomit-frame-pointer -ffast-math -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/vegas -c -o Vegas.o ./src/vegas/Vegas.c
ar rv libcuba.a Vegas.o
ar: creating libcuba.a
a - Vegas.o
rm -f Vegas.o
gcc -O3 -fomit-frame-pointer -ffast-math -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/vegas -DUNDERSCORE -c -o Vegas_.o ./src/vegas/Vegas.c
ar rv libcuba.a Vegas_.o
a - Vegas_.o
rm -f Vegas_.o
gcc -O3 -fomit-frame-pointer -ffast-math -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/vegas -DLONGLONGINT -c -o llVegas.o ./src/vegas/Vegas.c
ar rv libcuba.a llVegas.o
a - llVegas.o
rm -f llVegas.o
gcc -O3 -fomit-frame-pointer -ffast-math -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/vegas -DLONGLONGINT -DUNDERSCORE -c -o llVegas_.o ./src/vegas/Vegas.c
ar rv libcuba.a llVegas_.o
a - llVegas_.o
rm -f llVegas_.o
gcc -O3 -fomit-frame-pointer -ffast-math -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/suave -c -o Suave.o ./src/suave/Suave.c
ar rv libcuba.a Suave.o
a - Suave.o
rm -f Suave.o
gcc -O3 -fomit-frame-pointer -ffast-math -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/suave -DUNDERSCORE -c -o Suave_.o ./src/suave/Suave.c
ar rv libcuba.a Suave_.o
a - Suave_.o
rm -f Suave_.o
gcc -O3 -fomit-frame-pointer -ffast-math -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/suave -DLONGLONGINT -c -o llSuave.o ./src/suave/Suave.c
ar rv libcuba.a llSuave.o
a - llSuave.o
rm -f llSuave.o
gcc -O3 -fomit-frame-pointer -ffast-math -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/suave -DLONGLONGINT -DUNDERSCORE -c -o llSuave_.o ./src/suave/Suave.c
ar rv libcuba.a llSuave_.o
a - llSuave_.o
rm -f llSuave_.o
gcc -O3 -fomit-frame-pointer -ffast-math -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/divonne -c -o Divonne.o ./src/divonne/Divonne.c
./src/divonne/Explore.c: In function 'Explore':
./src/divonne/Explore.c:17: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [libcuba.a(Divonne.o)] Error 1

*****************************************
Removing -O option do solves the problem.
*****************************************
Comment 1 Igor Pashev 2009-05-24 18:55:04 UTC
Created attachment 17911 [details]
the preprocessed file

gcc -O3 --save-temps  -ffast-math -DHAVE_CONFIG_H -I./src/common -I. -I. -I./src/divonne -c -o Divonne.o ./src/divonne/Divonne.c
Comment 2 Richard Biener 2009-05-24 19:00:17 UTC
Fixed in at least 4.3.3.
Comment 3 Igor Pashev 2009-05-24 19:11:07 UTC
Good :-)
Will upgrade.