- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all,
i'm using ifort 17.0.1.132 on CentOS 7.
when using "-warn all -check all", it produces files *__genmod.f90. These files break makefile, i don't understand why, as i don't use them.
[me@xcluster GRDv2]$ make cleaner
find: paths must precede expression: controleur__genmod.f90
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]
gnu makefile is 3.82.
Without this flag, everything is fine.
Thanks in advance
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you check this with a newer compiler? That files like this "break" the clean target of a makefile is rather trivial, and also trivial to fix. The question is why these files have been generated. Without a code example this is hard to say. The name of the files somehow might be suspicious that there might be submodules in your code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
>>The question is why these files have been generated.
-warn interfaces
Tells the compiler to check the interfaces of all SUBROUTINEs called and FUNCTIONs invoked in your compilation against a set of interface blocks stored separately from the source being compiled.
The compiler generates a compile-time message if the interface used to invoke a routine does not match the interface defined in a .mod file external to the source (that is, in a .mod generated by option gen-interfaces as opposed to a .mod file USEd in the source). The compiler looks for these .mods in the current directory or in the directory specified by the include (-I) or -module option. If interface mismatches occur, some will result in a compile-time error, others will only generate a warning.
By default, warn interfaces turns on option gen-interfaces. You can turn off that option by explicitly specifying option /gen-interfaces- (Windows*) or -no-gen-interfaces (Linux* and OS X*).
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jim is correct. I still don't see why they should break a makefile. Perhaps the __ in the filename triggers something.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could also add the option "-gen_interfaces nosource" to the command line. This tells the compiler not to generate those intermediate foo__genmod.f90 files.
--Lorri
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page