Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access='append' is a GNU extension #36

Closed
vmagnin opened this issue Feb 28, 2024 · 0 comments
Closed

access='append' is a GNU extension #36

vmagnin opened this issue Feb 28, 2024 · 0 comments
Labels
invalid This doesn't seem right
Milestone

Comments

@vmagnin
Copy link
Owner

vmagnin commented Feb 28, 2024

When compiling with GFortran -std=f2018 options, access='append' is not accepted.

$ fpm build --flag "-Ofast -march=native -mtune=native -Wall -Wextra -std=f2018"
...
colormaps_info.f90                     failed.
[ 39%] Compiling...
build/dependencies/forcolormap/src/colormaps_info.f90:319:61:

  319 |             open(newunit=nunit, file=trim(file_name), access='append', status='unknown', action='write')
	  |                                                             1
Error: GNU Extension: ACCESS specifier in OPEN statement at (1) has value ‘APPEND’
build/dependencies/forcolormap/src/colormaps_info.f90:338:61:

  338 |             open(newunit=nunit, file=trim(file_name), access='append', status='unknown', action='write')
	  |                                                             1
Error: GNU Extension: ACCESS specifier in OPEN statement at (1) has value ‘APPEND’
...

Indeed, access should be sequential (default), direct or stream. We should use instead the specifier position='append':

open(newunit=nunit, file=trim(file_name), position='append', status='unknown', action='write')
@vmagnin vmagnin added the invalid This doesn't seem right label Feb 28, 2024
@vmagnin vmagnin added this to the 0.9 milestone Feb 28, 2024
@vmagnin vmagnin closed this as completed Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant