[mpich-discuss] undefined reference to `__muldc3'

Dave Goodell goodell at mcs.anl.gov
Wed Aug 1 16:53:25 CDT 2012


What sort of machine is this?

That's a link error when trying to link in software floating point emulation code, which in GCC lives in libgcc or libgcc_s:

http://gcc.gnu.org/onlinedocs/gccint/Soft-float-library-routines.html#Soft-float-library-routines

I am under the impression that these should typically be linked in automatically for you when using GCC, but it looks like you are using the Sun compiler instead.  Maybe try adding "-lc" and/or "-lm" to the mpif90 link line?

-Dave

On Aug 1, 2012, at 4:24 PM CDT, Ted Sariyski wrote:

> The same error without -j
> --Ted
> 
> On 08/01/2012 05:22 PM, Anthony Chan wrote:
>> mpich2-1.4.1p1 does not support parallel make which is
>> available in 1.5 and later releases, so try to build mpich2
>> with just "make" without -j.
>> 
>> ----- Original Message -----
>>> Hi,
>>> I compiled mpich2-1.4.1p1 with the following script:
>>> 
>>> export FC=sunf90
>>> export F77=sun77
>>> export CC=suncc
>>> export CXX=sunCC
>>> make distclean
>>> ./configure --prefix=/opt/mpich2-1.4.1p1_sun
>>> make -j 6
>>> 
>>> Compilation and installation went clean, but when compile the example
>>> under examples/f90 i get:
>>> 
>>> make
>>> ../../bin/mpif90 -o pi3f90 pi3f90.o -lrt -lpthread
>>> /home/tsariysk/mpich2-1.4.1p1/lib/libmpich.a(opprod.o): In function
>>> `MPIR_PROD':
>>> opprod.c:(.text+0x858): undefined reference to `__muldc3'
>>> opprod.c:(.text+0xa28): undefined reference to `__mulsc3'
>>> opprod.c:(.text+0x1083): undefined reference to `__mulxc3'
>>> make: *** [pi3f90] Error 2
>>> 
>>> I also tried to use the system c and c++ compilers, but the error
>>> persists. What do I miss here?
>>> 
>>> I'll highly appreciate any help.
>>> Thanks,
>>> --Ted
>>> _______________________________________________
>>> mpich-discuss mailing list mpich-discuss at mcs.anl.gov
>>> To manage subscription options or unsubscribe:
>>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>> _______________________________________________
>> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
>> To manage subscription options or unsubscribe:
>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
> 
> _______________________________________________
> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss



More information about the mpich-discuss mailing list