Date: Tue, 26 Jan 2016 22:04:12 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 206655] net/mpich: fortran linking error Message-ID: <bug-206655-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206655 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@FreeBSD.org Reporter: dolle.guillaume@gmail.com Flags: maintainer-feedback?(tijl@FreeBSD.org) Assignee: tijl@FreeBSD.org Compiling with fortran option causes linking error. To reproduce, compile a simple C hello world program using /usr/local/bin/m= picc 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@GCC_4.6.0' /usr/local/lib/gcc48/libgfortran.so.3: undefined reference to `__floatunditf@GCC_4.6.0' /usr/local/lib/gcc48/libgfortran.so.3: undefined reference to `__subtf3@GCC_4.6.0' /usr/local/lib/gcc48/libgfortran.so.3: undefined reference to `__multf3@GCC_4.6.0' /usr/local/lib/gcc48/libgfortran.so.3: undefined reference to `__unordtf2@GCC_4.6.0' /usr/local/lib/gcc48/libgfortran.so.3: undefined reference to `__lttf2@GCC_4.6.0' /usr/local/lib/gcc48/libgfortran.so.3: undefined reference to `__addtf3@GCC_4.6.0' /usr/local/lib/gcc48/libgfortran.so.3: undefined reference to `__gttf2@GCC_4.6.0' /usr/local/lib/gcc48/libgfortran.so.3: undefined reference to `__divtf3@GCC_4.6.0' /usr/local/lib/gcc48/libgfortran.so.3: undefined reference to `__letf2@GCC_4.6.0' /usr/local/lib/gcc48/libgfortran.so.3: undefined reference to `__netf2@GCC_4.6.0' /usr/local/lib/gcc48/libgfortran.so.3: undefined reference to `__floatditf@GCC_4.6.0' /usr/local/lib/gcc48/libgfortran.so.3: undefined reference to `__trunctfdf2@GCC_4.6.0' /usr/local/lib/gcc48/libgfortran.so.3: undefined reference to `__eqtf2@GCC_4.6.0' /usr/local/lib/gcc48/libgfortran.so.3: undefined reference to `__floatsitf@GCC_4.6.0' c++: error: linker command failed with exit code 1 (use -v to see invocatio= n) ``` It seems that these lines from the net/mpich port Makefile, ``` FORTRAN_CONFIGURE_ON=3D \ MPICH_LDFLAGS=3D"-Wl,-rpath=3D${LOCALBASE}/lib/gcc${_GCC_VER} \ -L${LOCALBASE}/lib/gcc${_GCC_VER} -B${LOCALBASE}/bi= n" ``` are not taken into account. Replacing MPICH_LDFLAGS by LDFLAGS seems to solve the problem. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206655-13>