This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29621] lapack runs into infinite loop with -03
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Oct 2006 22:13:43 -0000
- Subject: [Bug fortran/29621] lapack runs into infinite loop with -03
- References: <bug-29621-13059@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from jvdelisle at gcc dot gnu dot org 2006-10-27 22:13 -------
Using gfortran: I get AOK, no infinite loop. See information that follows.
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc43/configure --prefix=/home/jerry/gcc/usr
--enable-languages=c,fortran --disable-libmudflap --enable-libgomp
--enable-maintainer-mode
Thread model: posix
gcc version 4.3.0 20061025 (experimental)
I built blas and lapack at -O3
I compiled testcase.f with -O3
I used the link line used in Comment #1.
The test program compiled, linked, and executed AOK on i686-linux
I am using ranlib 2.17 and ar 2.17
The next questionis what tool versions are you using.
I also used the make script from the lapack distribution with make.inc as
follows:
####################################################################
# LAPACK make include file. #
# LAPACK, Version 3.0 #
# June 30, 1999 #
####################################################################
#
SHELL = /bin/sh
#
# The machine (platform) identifier to append to the library names
#
PLAT = _gfc
#
# Modify the FORTRAN and OPTS definitions to refer to the
# compiler and desired compiler options for your machine. NOOPT
# refers to the compiler options desired when NO OPTIMIZATION is
# selected. Define LOADER and LOADOPTS to refer to the loader and
# desired load options for your machine.
#
FORTRAN = gfc
OPTS = -O3
DRVOPTS = $(OPTS)
NOOPT =
LOADER = gfc
LOADOPTS =
#
# The archiver and the flag(s) to use when building archive (library)
# If you system has no ranlib, set RANLIB = echo.
#
ARCH = ar
ARCHFLAGS= cr
RANLIB = ranlib
#
# The location of the libraries to which you will link. (The
# machine-specific, optimized BLAS library should be used whenever
# possible.)
#
BLASLIB = ../../blas$(PLAT).a
LAPACKLIB = lapack$(PLAT).a
TMGLIB = tmglib$(PLAT).a
EIGSRCLIB = eigsrc$(PLAT).a
LINSRCLIB = linsrc$(PLAT).a
I copied the resulting libraries to libraries matching the names you used.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29621