Use $LDFLAGS as default for $ESMF_*LINKOPTS
#255
Replies: 4 comments
-
|
@theurich @oehmke |
Beta Was this translation helpful? Give feedback.
-
|
I think that this is probably a question for @theurich <https://github.com/theurich>, if it’s ok to wait until he has a chance to answer.
… On Jun 13, 2024, at 3:05 PM, Daniel Rosen ***@***.***> wrote:
@theurich <https://github.com/theurich> @oehmke <https://github.com/oehmke>
Does this seem system specific as it has to do with the GNU C library not being linked by the linker?
Or are we missing something in the build recipe for the ESMF_StringUTest executable?
mpif90
-m64
-mcmodel=small
-pthread
-Wl,--no-as-needed
-fopenmp
-L$SRC_DIR/lib/libO/Linux.gfortran.64.openmpi.default
-L$PREFIX/lib
-L$PREFIX/lib
-L$BUILD_PREFIX/bin/../lib/gcc/x86_64-conda-linux-gnu/12.3.0/
-Wl,-rpath,$SRC_DIR/lib/libO/Linux.gfortran.64.openmpi.default
-Wl,-rpath,$PREFIX/lib
-Wl,-rpath,$PREFIX/lib
-Wl,-rpath,$BUILD_PREFIX/bin/../lib/gcc/x86_64-conda-linux-gnu/12.3.0/
-o $SRC_DIR/test/testO/Linux.gfortran.64.openmpi.default/ESMF_StringUTest
ESMCI_StringSubr.o
ESMF_StringUTest.o
-lesmf
-lrt
-lstdc++
-ldl
-lnetcdff
-lnetcdf
-lpioc
—
Reply to this email directly, view it on GitHub <#255 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AE6A7U2MFB3WKF4CFOHCILLZHICSPAVCNFSM6AAAAABJFWZZKWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TONRXG44DS>.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
|
@theurich
|
Beta Was this translation helpful? Give feedback.
-
|
ESMF intentionally separates ESMF build configuration from the common user environment variables (i.e. CC, FC, LDFLAGS) using the ESMF_ prefix in order to make sure all configuration settings are explicitly set. Although it's a pain point for more experienced users it prevents less experienced users from mistakenly using unintentional build settings. We will update the Quick Start Build in the User's Guide with some clearer build instructions for using common user environment variables. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
On conda-forge, we recently ran into an issue when upgrading to OpenMPI 5 that ESMF tests were failing with a linking error:
After some lengthy discussion, it was discovered that the issue was that
$LDFLAGSwas not being passed along to the linker by default, and setting:fixed the issue. The feeling from a conda-forge maintainer (see https://github.com/conda-forge/esmf-feedstock/pull/117/files#r1634670892) was that this should probably be the default value within ESMF, so I'm proposing this change.
Beta Was this translation helpful? Give feedback.
All reactions