conda: Macros: add '-L' argument to the linker command#418
Conversation
On Linux, compiling CICE in serial mode under the conda environment currently fails as the linker does not find the NetCDF libraries. Compiling in parallel mode does work as the MPI compilation wrappers seem to pass the necessary flag to the linker under the hood. Explicitely tell the linker the location of the libraries using the `SLIBS` variable in the Macros file. To be on the safe side, also do it on macOS.
|
@apcraig since I now have "triage" permission I can add labels and directly ask for reviews, super! |
|
Actually this is kind of a workaround, as it would work out of the box if our script were not using Tcsh: if you take a look at This means that if we do I'll see if I can open an issue on the repo for the conda-forge compilers to ask if they would be willing to add activation scripts for Csh (one can always ask !). |
eclare108213
left a comment
There was a problem hiding this comment.
Serial CICE did not work when I tried it on my laptop a couple of months ago, and I hope that this fixes the problem. Makefiles are not my forte, so I'll let @apcraig approve.
|
asked here: conda-forge/compilers-feedstock#20 (comment) |
PR checklist
add '-L' argument to the linker command under conda
P. Blain
No test suite run. Tested this on my Ubuntu 17.04 system.
On Linux, compiling CICE in serial mode under the conda environment
currently fails as the linker does not find the NetCDF libraries.
Compiling in parallel mode does work as the MPI compilation wrappers
seem to pass the necessary flag to the linker under the hood.
Explicitely tell the linker the location of the libraries using the
SLIBSvariable in the Macros file. To be on the safe side, also do iton macOS.