From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23044 invoked by alias); 27 Jul 2014 21:10:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 23011 invoked by uid 48); 27 Jul 2014 21:10:46 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/61928] a fortran90 program compiles on hopper at NERSC but not under gfortran 4.9.0 Date: Sun, 27 Jul 2014 21:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-07/txt/msg01786.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61928 Jerry DeLisle changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jvdelisle at gcc dot gnu.org --- Comment #3 from Jerry DeLisle --- With you attachment, I am getting this: /tmp/ccBACux5.o: In function `dgefa.2334': pr61928.f90:(.text+0x1282): undefined reference to `idamax_' /tmp/ccBACux5.o: In function `dgedi.2345': pr61928.f90:(.text+0x19fa): undefined reference to `dscal_' pr61928.f90:(.text+0x1aba): undefined reference to `daxpy_' pr61928.f90:(.text+0x1c2d): undefined reference to `daxpy_' pr61928.f90:(.text+0x1cbd): undefined reference to `dswap_' collect2: error: ld returned 1 exit status I did not link this with anything. The four last listed procedures listed are not defined in the attachment, although used. In subroutine dgefa, idamax is defined as an integer. If I delete that line, the undefined reference to idamax_ goes away. The last four references I suspect are in the BLAS library that I am not linked to at the moment.