[Bug 206655] net/mpich: fortran linking error

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jan 26 22:04:13 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206655

            Bug ID: 206655
           Summary: net/mpich: fortran linking error
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: tijl at FreeBSD.org
          Reporter: dolle.guillaume at gmail.com
             Flags: maintainer-feedback?(tijl at FreeBSD.org)
          Assignee: tijl at FreeBSD.org

Compiling with fortran option causes linking error.

To reproduce, compile a simple C hello world program using /usr/local/bin/mpicc
will produce this result:

```
c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is
deprecated
/usr/local/lib/gcc48/libgfortran.so.3: undefined reference to
`__getf2 at GCC_4.6.0'
/usr/local/lib/gcc48/libgfortran.so.3: undefined reference to
`__floatunditf at GCC_4.6.0'
/usr/local/lib/gcc48/libgfortran.so.3: undefined reference to
`__subtf3 at GCC_4.6.0'
/usr/local/lib/gcc48/libgfortran.so.3: undefined reference to
`__multf3 at GCC_4.6.0'
/usr/local/lib/gcc48/libgfortran.so.3: undefined reference to
`__unordtf2 at GCC_4.6.0'
/usr/local/lib/gcc48/libgfortran.so.3: undefined reference to
`__lttf2 at GCC_4.6.0'
/usr/local/lib/gcc48/libgfortran.so.3: undefined reference to
`__addtf3 at GCC_4.6.0'
/usr/local/lib/gcc48/libgfortran.so.3: undefined reference to
`__gttf2 at GCC_4.6.0'
/usr/local/lib/gcc48/libgfortran.so.3: undefined reference to
`__divtf3 at GCC_4.6.0'
/usr/local/lib/gcc48/libgfortran.so.3: undefined reference to
`__letf2 at GCC_4.6.0'
/usr/local/lib/gcc48/libgfortran.so.3: undefined reference to
`__netf2 at GCC_4.6.0'
/usr/local/lib/gcc48/libgfortran.so.3: undefined reference to
`__floatditf at GCC_4.6.0'
/usr/local/lib/gcc48/libgfortran.so.3: undefined reference to
`__trunctfdf2 at GCC_4.6.0'
/usr/local/lib/gcc48/libgfortran.so.3: undefined reference to
`__eqtf2 at GCC_4.6.0'
/usr/local/lib/gcc48/libgfortran.so.3: undefined reference to
`__floatsitf at GCC_4.6.0'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
```

It seems that these lines from the net/mpich port Makefile,
```
FORTRAN_CONFIGURE_ON=           \
         MPICH_LDFLAGS="-Wl,-rpath=${LOCALBASE}/lib/gcc${_GCC_VER} \
                        -L${LOCALBASE}/lib/gcc${_GCC_VER} -B${LOCALBASE}/bin"
```
are not taken into account.

Replacing MPICH_LDFLAGS by LDFLAGS seems to solve the problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list