Error Reported When Compiling the sigio Module
Symptom
During the NCEPLIBS compilation and installation, the sigio module reports the following error:

Key Process and Cause Analysis
None
Conclusion and Solution
Add a flang branch.
- Modify the /nceplibs-sigio/src/CMakeLists.txt file.
- Modify the /nceplibs-sigio/src/CMakeLists.txt file.
vi /path/to/NCEPLIBS/NCEPLIBS-1.2.0/download/nceplibs-sigio/src/CMakeLists.txt
- Press i to enter the edit mode and add a new line above line 10:
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^(Flang)$") set(CMAKE_Fortran_FLAGS "-g -ffree-form -fconvert=big-endian -funroll-loops ${CMAKE_Fortran_FLAGS}") set(CMAKE_Fortran_FLAGS_RELEASE "-O2") set(CMAKE_Fortran_FLAGS_DEBUG "-ggdb -Wall") - Press Esc, type :wq!, and press Enter to save the file and exit.
- Modify the /nceplibs-sigio/src/CMakeLists.txt file.
- Perform the compilation again.
make
Parent topic: Troubleshooting
