Closed K20shores closed 1 year ago
Given this dockerfile:
FROM nvcr.io/nvidia/nvhpc:23.1-devel-cuda_multi-ubuntu22.04 RUN apt update \ && apt -y install \ curl \ && apt clean RUN curl -LO https://github.com/jacobwilliams/json-fortran/archive/8.2.0.tar.gz \ && tar -zxvf 8.2.0.tar.gz \ && cd json-fortran-8.2.0 \ && export FC=nvfortran \ && mkdir build \ && cd build \ && cmake -D SKIP_DOC_GEN:BOOL=TRUE .. \ && make install
Trying to build, nvfortran fails with this error:
#0 2.453 Scanning dependencies of target jsonfortran #0 2.466 [ 7%] Building Fortran object CMakeFiles/jsonfortran.dir/src/json_kinds.F90.o #0 2.634 [ 14%] Building Fortran object CMakeFiles/jsonfortran.dir/src/json_parameters.F90.o #0 2.662 NVFORTRAN-S-0026-Unmatched quote (/json-fortran-8.2.0/src/json_parameters.F90: 61) #0 2.663 0 inform, 0 warnings, 1 severes, 0 fatal for json_parameters #0 2.664 make[2]: *** [CMakeFiles/jsonfortran.dir/build.make:88: CMakeFiles/jsonfortran.dir/src/json_parameters.F90.o] Error 2 #0 2.665 make[1]: *** [CMakeFiles/Makefile2:134: CMakeFiles/jsonfortran.dir/all] Error 2 #0 2.665 make: *** [Makefile:146: all] Error 2
Well, if you use 8.3.0, it works.
Given this dockerfile:
Trying to build, nvfortran fails with this error: