You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
While compiling the NASTRAN-95 project on WSL Ubuntu, an error occurs in the Fortran file endsys.f due to an incorrect argument type passed to the link intrinsic function. This issue halts the build process at 22%.
Error Message:
[ 22%] Building Fortran object CMakeFiles/nasmis.dir/mis/endsys.f.o
/mnt/c/dev/NASTRAN-95/mis/endsys.f:263:17:
263 | CALL LINK (I,ITAB10(I76),0)
| 1
Error: ‘path1’ argument of ‘link’ intrinsic at (1) must be CHARACTER
gmake[2]: *** [CMakeFiles/nasmis.dir/build.make:5587: CMakeFiles/nasmis.dir/mis/endsys.f.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:91: CMakeFiles/nasmis.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2
Steps to Reproduce:
Clone the repository. and git check out 83469ca0548e6456f7c6db39a308248ed56642be
Initiate the build process with ./build.sh
Expected Behavior:
The code should compile without errors, allowing the build to complete successfully.
Actual Behavior:
The compilation fails with a type mismatch error for the link intrinsic function argument.
Possible Fix:
It appears that the link intrinsic expects a character type for its first argument, but an integer is being passed instead. Reviewing the usage of link and ensuring the correct data types are used might resolve this error.
Environment:
OS: Ubuntu WSL
Compiler: GNU GFortran 11.4.0
Build system: CMake
Additional Context:
This issue might be related to legacy Fortran practices that are not fully compatible with modern Fortran standards or compilers. A thorough check of the argument types and the intrinsic function's requirements could be beneficial.
The text was updated successfully, but these errors were encountered:
Description:
While compiling the NASTRAN-95 project on WSL Ubuntu, an error occurs in the Fortran file
endsys.f
due to an incorrect argument type passed to thelink
intrinsic function. This issue halts the build process at 22%.Error Message:
Steps to Reproduce:
git check out 83469ca0548e6456f7c6db39a308248ed56642be
./build.sh
Expected Behavior:
The code should compile without errors, allowing the build to complete successfully.
Actual Behavior:
The compilation fails with a type mismatch error for the
link
intrinsic function argument.Possible Fix:
It appears that the
link
intrinsic expects a character type for its first argument, but an integer is being passed instead. Reviewing the usage oflink
and ensuring the correct data types are used might resolve this error.Environment:
Additional Context:
This issue might be related to legacy Fortran practices that are not fully compatible with modern Fortran standards or compilers. A thorough check of the argument types and the intrinsic function's requirements could be beneficial.
The text was updated successfully, but these errors were encountered: