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

Error running link command: No such file or directory

xyli@geo_uio_no

New Member
Dear all,

Have you ever seen the following error when compiling the code?
Attached please kindly find the log file.

System: Ubuntu 18.04.2 LTS

$ create_newcase --case /opt/uio/cesm/cases/FKESSLER_190513 --compset FKESSLER --res T31_g37 --machine espresso --run-unsupported
$ ./case.setup
$ ./case.build


f951: Warning: Nonexistent include directory '/opt/uio/cesm/work/FKESSLER_190513/bld/gnu/mpich/nodebug/nothreads/mct/noesmf/c1a1l1i1o1r1g1w1e1/include' [-Wmissing-include-dirs]
Error running link command: No such file or directory
make[2]: *** [pio/CMakeFiles/pio.dir/build.make:526: pio/libpio.a] Error 2
make[1]: *** [CMakeFiles/Makefile2:94: pio/CMakeFiles/pio.dir/all] Error 2
make: *** [Makefile:87: all] Error 2
 
Hi xiangyu,I have a similar problem (using CESM 2.1.0) alltough I'm also running into other issues. Were you able to solve this?When I try to build a case I get warnings like: Warning: Nonexistent include directory "/work/users/tki/cesm/scratch/QPC6_test_2/bld/gnu/openmpi/nodebug/nothreads/mct/noesmf/c1a1l1i1o1r1g1w1e1/include"But later on I run into other more serious errors so I don't know what the actual reason for the failure is.I've attached our machine configuration and the buildlog output if you or someone else wants to look and has an idea. 
 

jedwards

CSEG and Liaisons
Staff member
THose warnings should just be warnings and not cause a failure - Tracy you didn't tell us the actual problem or post any attachments.  
 
Hi jedwards,I hadn't seen that I have to click "display" for the attachment but it should be there now.The error is:
Code:
/work/users/tki/cesm_2_1_0_new/cime/src/externals/pio1/pio/nf_mod.F90:1761.26:

                   ierr = nf90_def_var_deflate(File%fh,vardesc%varid,0,1,1)
                          1
Error: Function 'nf90_def_var_deflate' at (1) has no IMPLICIT type
make[2]: *** [pio/CMakeFiles/pio.dir/build.make:140: pio/CMakeFiles/pio.dir/nf_mod.F90.o] Error 1
make[2]: *** Waiting for unfinished jobs....
 
 
Dear All,I'm getting the same issue during my case build. Could you solve the problem?My Errors is almost the samef951: Warning: Nonexistent include directory ‘/home/as2/CESM/projects/scratch/denemeI2000Clm50VicSecond/bld/gnu/mpich/nodebug/nothreads/mct/noesmf/c1a1l1i1o1r1g1w1e1/include’ [-Wmissing-include-dirs]/home/as2/CESM/cesm/cime/src/externals/pio1/pio/nf_mod.F90:1761:26:                     ierr = nf90_def_var_deflate(File%fh,vardesc%varid,0,1,1)                          1Error: Function ‘nf90_def_var_deflate’ at (1) has no IMPLICIT type/home/as2/CESM/cesm/cime/src/externals/pio1/pio/ionf_mod.F90:205:24:                     comm=File%iosystem%io_comm, info=File%iosystem%info)                        1Error: Keyword argument ‘comm’ at (1) is not in the procedure/home/as2/CESM/cesm/cime/src/externals/pio1/pio/ionf_mod.F90:207:61:                   ierr = nf90_open(fname, amode, File%fh,info=File%iosystem%info)                                                             1Error: Keyword argument ‘info’ at (1) is not in the procedure/home/as2/CESM/cesm/cime/src/externals/pio1/pio/ionf_mod.F90:83:20: kind regards
 

jedwards

CSEG and Liaisons
Staff member
This looks like a cmake error - I see CMAKE_AR-NOTFOUND in your pio.bldlog. I have no idea why cmake can't find ar.
 
Top