- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello All,
Could you possibly tell me when I would get the following errors while calling an OPEN statement?
42 |
severe (42): No such device FOR$IOS_NO_SUCDEV. A pathname included an invalid or unknown device name when an OPEN operation was attempted. |
43 |
severe (43): File name specification error FOR$IOS_FILNAMSPE. A pathname or file name given to an OPEN or INQUIRE statement was not acceptable to the Intel® Fortran RTL I/O system. |
Thank you for your help.
Daniel.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've inquired w/Development.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You have a file specification not acceptable to Windows (The Fortran I/O system really doesn't care.) How about you show us what filespec you're passing to OPEN, and perhaps also print it with Z format so we can see if there are invalid characters within.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve,
Unfortunately, the file that caused this issue was deleted by a different process.
We have tried many times to recreate the issue, but we have been unlucky so far.
If I manage to reproduce it, I will let you know.
Daniel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The issue pertains to the string passed as FILE= in the OPEN, not the actual file. I suggest adding some logging output when the OPEN fails.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Development offered:
Try to open some incorrect device. e.g. “/dev/log”
$ cat f.f90
open(1, file='/dev/log')
end
$ ifort f.f90 && ./a.out
forrtl: No such device or address
forrtl: severe (42): no such device, unit 1, file /dev/log
This specify that file name is incorrect. Example is filename of zero length:
$cat f.f90
open(1, file="")
end
$ ifort f.f90 && ./a.out
forrtl: severe (43): file name specification error, unit 1, file "Unknown"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve and Kevin - Thank you.
I have already added logging if this happens again.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page