ports/105582: gfortran built by gcc-4.2.0_20061107 fails with undefined reference to "fmodl"

Thomas Russo tvrusso at sandia.gov
Wed Nov 15 20:10:31 UTC 2006


>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 at 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:



More information about the freebsd-ports-bugs mailing list