building error

zongrax

New Member
Dear all, I created a case with I1850CLM50SpCru compset, and I got a build error:
ERROR: BUILD FAIL: buildexe failed, cat /hard/dongwz/cesm/3/bld/cesm.bldlog.200628-222937
>cat /hard/dongwz/cesm/3/bld/cesm.bldlog.200628-222937
/usr/bin/ld: cannot find -lblas
/usr/bin/ld: cannot find -llapack
collect2: error: ld returned 1 exit status
/home/dongwz/cesm/cime/scripts/3/Tools/Makefile:866: recipe for target '/hard/dongwz/cesm/3/bld/cesm.exe' failed
make: *** [/hard/dongwz/cesm/3/bld/cesm.exe] Error 1
This is my compilers.xml code:
<SLIBS>
<append>-L/home/dongwz/opt-gnu/lib -lhdf5 -lhdf5_hl -lcurl</append>
<append>-L/home/dongwz/opt-gnu/netcdf-gnu -lnetcdff -lnetcdf</append>
<append>-L/usr/lib/x86_64-linux-gnu -lblas -llapack</append>
</SLIBS>
Thanks in advance for your help.
Best,
Dong
 

fischer

CSEG and Liaisons
Staff member
Hi Dong,

Is lblas and llapack installed on your system? And are the libblas.so and liblapack.so in /usr/lib/x86_64-linux-gnu?

Thanks
Chris
 

zongrax

New Member
Hi Dong,

Is lblas and llapack installed on your system? And are the libblas.so and liblapack.so in /usr/lib/x86_64-linux-gnu?

Thanks
Chris
Hi, Chris,

Thanks for your answer, I think you are right, the administrator told me that the libblas.so and liblapack.so are in /usr/lib/x86_64-linux-gnu, although I didn't find them, and I have successfully compiled on another machine with blas and lapack installed, many thanks.

Best,
Dong
 
Back
Top