ivan-pi / fc8

Fortran CHIP-8 interpreter
GNU General Public License v3.0
7 stars 1 forks source link

Build issues with NAG Fortran compiler #4

Open ivan-pi opened 1 year ago

ivan-pi commented 1 year ago

nagfor:

$ make
Scanning dependencies of target eggx-procall-2003
[ 20%] Building Fortran object CMakeFiles/eggx-procall-2003.dir/src/procall.f90.o
NAG Fortran Compiler Release 7.1(Hanzomon) Build 7101
[NAG Fortran Compiler normal termination]
[ 20%] Built target eggx-procall-2003
Scanning dependencies of target FC8
Consolidate compiler generated dependencies of target FC8
[ 40%] Building Fortran object CMakeFiles/FC8.dir/src/FC8_vm.F90.o
NAG Fortran Compiler Release 7.1(Hanzomon) Build 7101
Warning: xy/FC8/src/FC8_vm.F90, line 161: Unused local variable B1
Warning: xy/FC8/src/FC8_vm.F90, line 161: Unused local variable B2
Warning: xy/FC8/src/FC8_vm.F90, line 484: Unused interface for procedure OP8XY5
Warning: xy/FC8/src/FC8_vm.F90, line 579: Unused local variable SX
Warning: xy/FC8/src/FC8_vm.F90, line 579: Unused local variable SY
Warning: xy/FC8/src/FC8_vm.F90, line 607: INT32 explicitly imported into FC8_VM but not used
Warning: xy/FC8/src/FC8_vm.F90, line 607: PSET explicitly imported into FC8_VM but not used
Questionable: xy/FC8/src/FC8_vm.F90, line 607: Variable SOUND_TIMER set but never referenced
Warning: xy/FC8/src/FC8_vm.F90, line 405: Intrinsic TRANSFER has partly undefined result
[NAG Fortran Compiler normal termination, 9 warnings]
[ 60%] Building Fortran object CMakeFiles/FC8.dir/src/FC8.f90.o
NAG Fortran Compiler Release 7.1(Hanzomon) Build 7101
Warning: xy/FC8/src/FC8.f90, line 77: Unused local variable BYTE
Warning: xy/FC8/src/FC8.f90, line 77: Unused local variable INST
Warning: xy/FC8/src/FC8.f90, line 77: Unused local variable KEY
Warning: xy/FC8/src/FC8.f90, line 77: Unused local variable ROM_UNIT
Warning: xy/FC8/src/FC8.f90, line 17: Unused PARAMETER MAX_ITER
Error: xy/FC8/src/FC8.f90, line 26: KIND value (8) does not specify a valid representation method
Errors in declarations, no further processing for FC8
[NAG Fortran Compiler error termination, 1 error, 5 warnings]
make[2]: *** [CMakeFiles/FC8.dir/build.make:75: CMakeFiles/FC8.dir/src/FC8.f90.o] Error 2
make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/FC8.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
ivan-pi commented 1 year ago

It now builds. Some warnings remain. Issues remain when linking to eggx.

~/fc8-2/build$ make FC8
[ 20%] Building Fortran object CMakeFiles/eggx-procall-2003.dir/src/procall.f90.o
NAG Fortran Compiler Release 7.1(Hanzomon) Build 7101
[NAG Fortran Compiler normal termination]
[ 20%] Built target eggx-procall-2003
[ 40%] Building Fortran object CMakeFiles/FC8.dir/src/FC8_vm.F90.o
NAG Fortran Compiler Release 7.1(Hanzomon) Build 7101
Questionable: /fc8-2/src/FC8_vm.F90, line 801: Variable FONTIDX set but never referenced
Warning: /fc8-2/src/FC8_vm.F90, line 801: INT32 explicitly imported into FC8_VM but not used
Warning: /fc8-2/src/FC8_vm.F90, line 801: PSET explicitly imported into FC8_VM but not used
Questionable: /fc8-2/src/FC8_vm.F90, line 801: Variable SOUND_TIMER set but never referenced
Warning: /fc8-2/src/FC8_vm.F90, line 141: Intrinsic TRANSFER has partly undefined result
Warning: /fc8-2/src/FC8_vm.F90, line 147: Intrinsic TRANSFER has partly undefined result
Warning: /fc8-2/src/FC8_vm.F90, line 153: Intrinsic TRANSFER has partly undefined result
Warning: /fc8-2/src/FC8_vm.F90, line 162: Intrinsic TRANSFER has partly undefined result
Warning: /fc8-2/src/FC8_vm.F90, line 572: Intrinsic TRANSFER has partly undefined result
Extension(F2018): /fc8-2/src/FC8_vm.F90, line 724: ERROR STOP statement in PURE procedure UNKNOWN_OPCODE
Extension(F2018): /fc8-2/src/FC8_vm.F90, line 724: Stop-code is not constant
[NAG Fortran Compiler normal termination, 11 warnings]
[ 60%] Building Fortran object CMakeFiles/FC8.dir/src/FC8.f90.o
NAG Fortran Compiler Release 7.1(Hanzomon) Build 7101
Warning: /fc8-2/src/FC8.f90, line 17: Unused PARAMETER MAX_ITER
[NAG Fortran Compiler normal termination, 1 warning]
[ 80%] Building C object CMakeFiles/FC8.dir/src/randint8.c.o
[100%] Linking Fortran executable FC8