- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'am using windows version fo ifort compiler with cygwin system. The link problem has been solved by editing the ifort.cfg configuration file, but it seems ifort still could not recognize unix-like paths which start with '/'. The following command line generates an error message:
> ifort -c /home/operation/test.f90 -o /home/operation/test.exe
ifort: command line warning #10006: ignoring unknown option '/home/operation/test.f90'
ifort: command line error: no files specified; for help type "ifort /help"
There willl be no error if relative path was used. Someone please help, thanks.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
See https://software.intel.com/en-us/articles/alias-method-for-using-intel-windows-compilers-under-cygwin-bash-shell/
There used to be a -unix option that told the ifort command to ignore forward slashes in paths, but it does not seem to be recognized in the current versions. Maybe Lorri will see this and comment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve Lionel (Ret.) wrote:
See https://software.intel.com/en-us/articles/alias-method-for-using-intel-w...
There used to be a -unix option that told the ifort command to ignore forward slashes in paths, but it does not seem to be recognized in the current versions. Maybe Lorri will see this and comment.
Thanks Steve, It seems as is, then I have to try some workaround maybe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
cygwin has utilities to translate path representations, if that is what you want. It's also possible to make Microsoft style paths using \ escape sequences, but it's ugly and error prone. In case you've forgotten what a posix shell does, the first \ is swallowed as an escape character.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tim P. wrote:
cygwin has utilities to translate path representations, if that is what you want. It's also possible to make Microsoft style paths using \ escape sequences, but it's ugly and error prone. In case you've forgotten what a posix shell does, the first \ is swallowed as an escape character.
Thanks Tim, now I'm able to compiler single Fortran source file using ifort. As metioned in the thread given by Steve above, in auto build system(autotools, cmake...etc.) there is still lack of support for ivf.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't know if this will be of use to you, but Code::Blocks is a very configurable cross-platform free IDE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
gib wrote:
I don't know if this will be of use to you, but Code::Blocks is a very configurable cross-platform free IDE.
Thanks gib, I'll have a try.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't know why cmake wouldn't work. I and others have used standard make for years. cygwin doesn't change any defaults; you could use builds set up in cygwin sources for examples. For example, a minimum override of detaults for make:
FC = ifort
CC = icl
FFLAGS = -O3 -fpp -align:array32byte -debug:inline-debug-info -Qunroll:4 -standard-semantics -Qopt-report-file=$*_opt.txt
.SUFFIXES: .obj .f90
although Microsoft link accepts .o with warnings.
The following isn't the way most people would go, but I use make rules like:
target: mains.obj subs.obj
mv mains.exe $@.exe
mv mains.pdb $@.pdb
.f90.obj:
$(FC) $(FFLAGS) -c $*.f90
cygwin build setups will show how to set up $@.exe correctly; it might be considered a bit ugly after you add -Fe$@
Actually, you can use either / or - in FFLAGS as the shell doesn't interpret inside there.
I think Steve L has indicated his disapproval of adding options like -assume:underscore,old_maxminloc -names:lowercase but they do work.
I don't know whether cmake for Windows has default rules which differ from the ones for cygwin or linux. If you don't install cygwin cmake, you should be able to run the Windows one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, Tim, standard make may work fine by using relative paths or other strategies but the big difference for cmake tool is that it would use absolute path in its generated make file which the windows version of ivf cannot recognize properly so it may sometimes fail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
RE: "-unix" switch
That is not supported with Intel Fortran; it was a legacy switch from the Digital/Compaq Visual Fortran days.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page