-
Notifications
You must be signed in to change notification settings - Fork 112
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Compiling fpm with the NAG Fortran compiler currently fails.
- work around compiler error encountered in NAG for
fpm_command_line.f90
(Fix compilation with NAG #753) - update TOML Fortran to include
recursive
attribute in serializer (Fix missing recursive attribute required by NAG toml-f/toml-f#113) - fix usage of optional argument when not present (Fix compilation with NAG #753)
- fix error in test suite for namelist IO
- fix signed integer overflow error in file checksum
- correctly resolve module duplicates
Test compilation still fails at namelist IO
cli_test.f90 failed.
[ 5%]Compiling...
NAG Fortran Compiler Release 7.1(Hanzomon) Build 7111
Warning: test/cli_test/cli_test.f90, line 196: Unused dummy variable NAME
Warning: test/cli_test/cli_test.f90, line 250: CMD_BUILD explicitly imported into PARSE but not used
Warning: test/cli_test/cli_test.f90, line 250: CMD_CLEAN explicitly imported into PARSE but not used
Warning: test/cli_test/cli_test.f90, line 250: CMD_INSTALL explicitly imported into PARSE but not used
Warning: test/cli_test/cli_test.f90, line 250: CMD_NEW explicitly imported into PARSE but not used
Warning: test/cli_test/cli_test.f90, line 250: CMD_RUN explicitly imported into PARSE but not used
[NAG Fortran Compiler normal termination, 6 warnings]
test/cli_test/cli_test.f90: In function ‘main_IP_parse’:
test/cli_test/cli_test.f90:246:39: error: ‘host’ undeclared (first use in this function); did you mean ‘cosl’?
write(lun,nml=act_cli,delim='quote')
^
cosl
test/cli_test/cli_test.f90:246:39: note: each undeclared identifier is reported only once for each function it appears in
Neither the symbol host
nor cosl
are present in the current scope or any scope of the file.
Runtime error due to integer overflow when calculating the file hash
fpm run --compiler nagfor -- build
...
Runtime Error: ./src/fpm_strings.f90, line 198: INTEGER(int64) overflow for 16777619 * 36342609442804091
Program terminated by fatal error
./src/fpm_strings.f90, line 198: Error occurred in FPM_STRINGS:FNV_1A_CHAR
./src/fpm_strings.f90, line 212: Called by FPM_STRINGS:FNV_1A_STRING_T
./src/fpm_source_parsing.f90, line 483: Called by FPM_SOURCE_PARSING:PARSE_C_SOURCE
./src/fpm_sources.f90, line 41: Called by FPM_SOURCES:PARSE_SOURCE
./src/fpm_sources.f90, line 99: Called by FPM_SOURCES:ADD_SOURCES_FROM_DIR
./src/fpm.f90, line 131: Called by FPM:BUILD_MODEL
./src/fpm.f90, line 296: Called by FPM:CMD_BUILD
app/main.f90, line 72: Called by MAIN
I think we actually want an overflow and wrap around here since we are using a signed integer to store a byte sequence.
Erroneous duplicated modules found
fpm run --profile release --compiler nagfor -- run
Project is up to date
Warning: Module test_filesystem in test/fpm_test/test_filesystem.f90 is a duplicate
Warning: Module test_installer in test/fpm_test/test_installer.f90 is a duplicate
Warning: Module test_toml in test/fpm_test/test_toml.f90 is a duplicate
Warning: Module testsuite in test/fpm_test/testsuite.f90 is a duplicate
Warning: Module test_backend in test/fpm_test/test_backend.f90 is a duplicate
Warning: Module test_manifest in test/fpm_test/test_manifest.f90 is a duplicate
Warning: Module test_module_dependencies in test/fpm_test/test_module_dependencies.f90 is a duplicate
Warning: Module test_package_dependencies in test/fpm_test/test_package_dependencies.f90 is a duplicate
Warning: Module test_source_parsing in test/fpm_test/test_source_parsing.f90 is a duplicate
Warning: Module test_versioning in test/fpm_test/test_versioning.f90 is a duplicate
<ERROR>*build_model*:Error: One or more duplicate module names found.
STOP: 1
Looks like the NAG compiled binary fails to correctly resolve the module names.
Expected Behaviour
NAG compiled fpm can build fpm.
Version of fpm
0.6.0
Platform and Architecture
Linux
Additional Information
cc @rouson
Related:
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working