schism-dev / schism-esmf

Earth System Modeling Framework cap for SCHISM
6 stars 6 forks source link

Compiling issue with gfortran #18

Closed danishyo closed 2 years ago

danishyo commented 2 years ago

Test with 1c586a6, ESMF 8.3.0.

The following are compiliing errors:

./libschismesmf.a(lap.F90.o): In function `dswap': lap.F90:(.text+0x0): multiple definition of dswap_' ./lib/libblas.a(dswap.o):dswap.f:(.text+0x0): first defined here ./libschism_esmf.a(lap.F90.o): In functionddot': lap.F90:(.text+0x180): multiple definition of `ddot' ./lib/libblas.a(ddot.o):ddot.f:(.text+0x0): first defined here ./libschismesmf.a(lap.F90.o): In function `dcopy': lap.F90:(.text+0x370): multiple definition of dcopy_' ./lib/libblas.a(dcopy.o):dcopy.f:(.text+0x0): first defined here ./libschism_esmf.a(lap.F90.o): In functionlsame': lap.F90:(.text+0x5a0): multiple definition of `lsame' ./lib/liblapack.a(lsame.o):lsame.f:(.text+0x0): first defined here ./libschismesmf.a(lap.F90.o): In function `dscal': lap.F90:(.text+0xcf0): multiple definition of dscal_' ./lib/libblas.a(dscal.o):dscal.f:(.text+0x0): first defined here ./libschism_esmf.a(lap.F90.o): In functionidamax': lap.F90:(.text+0x1170): multiple definition of `idamax' ./lib/libblas.a(idamax.o):idamax.f:(.text+0x0): first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:117: schism_pdaf] Error 1

danishyo commented 2 years ago

This issue is resolved at ce861ad by adding allow-multiple-definition option in Makefile.

platipodium commented 2 years ago

Is a Duplikat of #17