From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Nov 15 20:10:31 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36A1216A516 for ; Wed, 15 Nov 2006 20:10:31 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81C8F43D5E for ; Wed, 15 Nov 2006 20:10:08 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kAFKA8BT038775 for ; Wed, 15 Nov 2006 20:10:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kAFKA8X8038771; Wed, 15 Nov 2006 20:10:08 GMT (envelope-from gnats) Resent-Date: Wed, 15 Nov 2006 20:10:08 GMT Resent-Message-Id: <200611152010.kAFKA8X8038771@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Thomas Russo Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DC7C16A40F for ; Wed, 15 Nov 2006 20:01:42 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14FC343D55 for ; Wed, 15 Nov 2006 20:01:42 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id kAFK1fxl085351 for ; Wed, 15 Nov 2006 20:01:41 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id kAFK1fuV085350; Wed, 15 Nov 2006 20:01:41 GMT (envelope-from nobody) Message-Id: <200611152001.kAFK1fuV085350@www.freebsd.org> Date: Wed, 15 Nov 2006 20:01:41 GMT From: Thomas Russo To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: ports/105582: gfortran built by gcc-4.2.0_20061107 fails with undefined reference to "fmodl" X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2006 20:10:31 -0000 >Number: 105582 >Category: ports >Synopsis: gfortran built by gcc-4.2.0_20061107 fails with undefined reference to "fmodl" >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 15 20:10:07 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Thomas Russo >Release: FreeBSD 5.5-STABLE >Organization: Sandia National Laboratories >Environment: FreeBSD winston.sandia.gov 5.5-STABLE FreeBSD 5.5-STABLE #0: Thu Aug 31 15:50:24 MDT 2006 tvrusso@winston.sandia.gov:/usr/obj/usr/src/sys/WINSTON i386 >Description: After updating gcc42 port, found that our code's configure script began failing. Tracked it down to a failure in configure's probe for gfortran libraries (as probed by AC_F77_LIBRARY_LDFLAGS). The problem is that as soon as gfortran42 is invoked to build even the most trivial test program (as by configure) it reports an undefined reference to "fmodl" This behavior is new in the gcc-4.2.0_20061107 brought in by the most recent gcc42 port on 10 November 2006. The previous version was usable in the same application's configure script. This particular build is unusable. >How-To-Repeat: Install gcc42 port (version that installs gcc-4.2.0_20061107) using "make WITH_FORTRAN=true install" Create minimal test file, conftest.f: --------------- program main end --------------- Attempt to compile code: gfortran42 -o conftest conftest.f Will report: /usr/local/lib/gcc-4.2.0/gcc/i386-portbld-freebsd5.5/4.2.0/../../../libgfortran.so: undefined reference to `fmodl' collect2: ld returned 1 exit status Any other small test fortran program will fail. >Fix: >Release-Note: >Audit-Trail: >Unformatted: