Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

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
 
Top