- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@call "c:\Program Files\Intel\Compiler\11.1\038\bin\ifortvars.bat" ia32 vs2008
This produces the expected message that the build environment has been set. Compilation proceeds without problem until the link step, where I get the following error message:
ifort: error #10037: could not find 'link'
When I compile from within the "Fortran Build Environment" shell that comes with IVF, the program compiles and links without error.
I modified my batch file to include several "set" commands bracketing the @call command as follows:
set > before.txt
@call "c:\Program Files\Intel\Compiler\11.1\038\bin\ifortvars.bat" ia32 vs2008
set > after.txt
before.txt and after.txt show the status of all environment variables prior to and after invoking the ifortvars.bat file. I also executed the following line from within the supplied "Fortran Build Environment" shell:
set > intel_build.txt
which shows the (successful) environment created by the build shell.
I noted the following diferences between the environment variables listed in after.txt and those in intel_build.txt:
1. The CPATH and FPATH variables have repeated entries in them in after.txt, but the directories appear only once in intel_build.txt. Note that these variables are not listed at all (do not exist) in the before.txt environment.
2. There are several Microsoft Visual Studio 9 directories listed in the PATH, INCLUDE and LIB variables in intel_build.txt that are absent in after.txt. I suspect this is the cause of the link failure.
3. The variables VCINSTALLDIR and VSINSTALLDIR that are defined in intel_build.txt are missing from after.txt.
Is there some simple fix other than my creating a new batch file to call from my compilation script to set these variables?
I've attached the three text files in case you want to examine them.
Thanks,
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please also do this. Open VS2008, select Help > About. Click the Copy Info button. Paste the result into a reply (or into a text file you attach.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As of 11.1, it does - or at least can be specified. This allows you to choose which VS version to set up for on the command line rather than using the one the installer chose. The symptoms here suggest that the installer did not recognize the VS2008 installation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please also do this. Open VS2008, select Help > About. Click the Copy Info button. Paste the result into a reply (or into a text file you attach.)
Hi, Steve. Thanks for looking at this. ifortvars.txt is attached
The Help -> About -> Copy Info copies the following to the clipboard:
Microsoft Visual Studio 2008
Version 9.0.21022.8 RTM
Microsoft .NET Framework
Version 3.5 SP1
Installed Edition: IDE Standard
Hotfix for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU (KB945282) KB945282
This hotfix is for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/945282.
Hotfix for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU (KB946040) KB946040
This hotfix is for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946040.
Hotfix for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU (KB946308) KB946308
This hotfix is for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946308.
Hotfix for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU (KB946344) KB946344
This hotfix is for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946344.
Hotfix for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU (KB946581) KB946581
This hotfix is for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946581.
Hotfix for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU (KB947173) KB947173
This hotfix is for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947173.
Hotfix for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU (KB947540) KB947540
This hotfix is for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947540.
Hotfix for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU (KB947789) KB947789
This hotfix is for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947789.
Hotfix for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU (KB952241) KB952241
This hotfix is for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/952241.
Intel Visual Fortran Compiler Integration Package ID: w_cprof_p_11.1.038
Intel Visual Fortran Compiler Integration for Microsoft Visual Studio* 2008, 11.1.3463.2008, Copyright (C) 2002-2009 Intel Corporation
* Other names and brands may be claimed as the property of others.
--Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
---------------------------------------------------------------
The batch file takes two arguments:
ia32: Compiler and libraries for IA-32 architecture only
ia32_intel64: Compiler running on IA-32 architecture that generates code for Intel 64 architecture; uses Intel 64 architecture libraries
ia32_ia64: Compiler running on IA-32 architecture that generates code for IA-64 architecture; uses IA-64 architecture libraries
intel64: Compiler and libraries for Intel 64 architecture only
ia64: Compiler and libraries for IA-64 architectures only
vs2005: Microsoft Visual Studio 2005
vs2008: Microsoft Visual Studio 2008
If
-------------------------------------------------------------------------------------------------------------------------
Perhaps it should warn that using the second argument casues problems?
Thanks again.
--Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Steve,
I set the Fortran build environment by running IFortVars.bat. I got the error as follows:
C:A>IFortVars
ERROR: Unknown switch ''
Accepted values: ia32, ia32_intel64, intel64, ia32_ia64, ia64
The IFortVars.bat is copyed as follows:
@echo off
Rem
Rem Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
Rem
Rem The information and source code contained herein is the exclusive property
Rem of Intel Corporation and may not be disclosed, examined, or reproduced in
Rem whole or in part without explicit written authorization from the Company.
Rem
IF (%2)==() GOTO ARG1
IF {%2} EQU {vs2008} (
if {%1} EQU {ia32} (
@call "C:Program FilesIntelCompiler11.138binia32ifortvars_ia32.bat" %2
if exist "C:Program FilesIntelCompiler11.138tbbia32vc9bintbbvars.bat" @call "C:Program FilesIntelCompiler11.138tbbia32vc9bintbbvars.bat"
if exist "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvars32.bat" @call "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvars32.bat"
if exist "C:Program FilesIntelCompiler11.138ippia32toolsenvippenv.bat" @call "C:Program FilesIntelCompiler11.138ippia32toolsenvippenv.bat"
if exist "%FNL_DIR%ia32binfnlsetup.bat" @call "%FNL_DIR%ia32binfnlsetup.bat"
exit /B 0
)
if {%1} EQU {ia32_intel64} (
@call "C:Program FilesIntelCompiler11.138binia32_intel64ifortvars_ia32_intel64.bat" %2
if exist "C:Program FilesIntelCompiler11.138tbbem64tvc9bintbbvars.bat" @call "C:Program FilesIntelCompiler11.138tbbem64tvc9bintbbvars.bat"
if exist "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvarsem64t.bat" @call "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvarsem64t.bat"
if exist "C:Program FilesIntelCompiler11.138ippem64ttoolsenvippenvem64t.bat" @call "C:Program FilesIntelCompiler11.138ippem64ttoolsenvippenvem64t.bat"
if exist "%FNL_DIR%intel64binfnlsetup.bat" @call "%FNL_DIR%intel64binfnlsetup.bat"
exit /B 0
)
if {%1} EQU {intel64} (
@call "C:Program FilesIntelCompiler11.138binintel64ifortvars_intel64.bat" %2
if exist "C:Program FilesIntelCompiler11.138tbbem64tvc9bintbbvars.bat" @call "C:Program FilesIntelCompiler11.138tbbem64tvc9bintbbvars.bat"
if exist "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvarsem64t.bat" @call "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvarsem64t.bat"
if exist "C:Program FilesIntelCompiler11.138ippem64ttoolsenvippenvem64t.bat" @call "C:Program FilesIntelCompiler11.138ippem64ttoolsenvippenvem64t.bat"
if exist "%FNL_DIR%intel64binfnlsetup.bat" @call "%FNL_DIR%intel64binfnlsetup.bat"
exit /B 0
)
if {%1} EQU {ia32_ia64} (
@call "C:Program FilesIntelCompiler11.138binia32_ia64ifortvars_ia32_ia64.bat" %2
if exist "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvars64.bat" @call "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvars64.bat"
if exist "C:Program FilesIntelCompiler11.138ippia64toolsenvippenv64.bat" @call "C:Program FilesIntelCompiler11.138ippia64toolsenvippenv64.bat"
if exist "%FNL_DIR%ia64binfnlsetup.bat" @call "%FNL_DIR%ia64binfnlsetup.bat"
exit /B 0
)
if {%1} EQU {ia64} (
@call "C:Program FilesIntelCompiler11.138binia64ifortvars_ia64.bat" %2
if exist "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvars64.bat" @call "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvars64.bat"
if exist "C:Program FilesIntelCompiler11.138ippia64toolsenvippenv64.bat" @call "C:Program FilesIntelCompiler11.138ippia64toolsenvippenv64.bat"
if exist "%FNL_DIR%ia64binfnlsetup.bat" @call "%FNL_DIR%ia64binfnlsetup.bat"
exit /B 0
)
goto err1
) ELSE (
IF {%2} EQU {vs2005} (
if {%1} EQU {ia32} (
@call "C:Program FilesIntelCompiler11.138binia32ifortvars_ia32.bat" %2
if exist "C:Program FilesIntelCompiler11.138tbbia32vc8bintbbvars.bat" @call "C:Program FilesIntelCompiler11.138tbbia32vc8bintbbvars.bat"
if exist "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvars32.bat" @call "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvars32.bat"
if exist "C:Program FilesIntelCompiler11.138ippia32toolsenvippenv.bat" @call "C:Program FilesIntelCompiler11.138ippia32toolsenvippenv.bat"
if exist "%FNL_DIR%ia32binfnlsetup.bat" @call "%FNL_DIR%ia32binfnlsetup.bat"
exit /B 0
)
if {%1} EQU {ia32_intel64} (
@call "C:Program FilesIntelCompiler11.138binia32_intel64ifortvars_ia32_intel64.bat" %2
if exist "C:Program FilesIntelCompiler11.138tbbem64tvc8bintbbvars.bat" @call "C:Program FilesIntelCompiler11.138tbbem64tvc8bintbbvars.bat"
if exist "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvarsem64t.bat" @call "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvarsem64t.bat"
if exist "C:Program FilesIntelCompiler11.138ippem64ttoolsenvippenvem64t.bat" @call "C:Program FilesIntelCompiler11.138ippem64ttoolsenvippenvem64t.bat"
if exist "%FNL_DIR%intel64binfnlsetup.bat" @call "%FNL_DIR%intel64binfnlsetup.bat"
exit /B 0
)
if {%1} EQU {intel64} (
@call "C:Program FilesIntelCompiler11.138binintel64ifortvars_intel64.bat" %2
if exist "C:Program FilesIntelCompiler11.138tbbem64tvc8bintbbvars.bat" @call "C:Program FilesIntelCompiler11.138tbbem64tvc8bintbbvars.bat"
if exist "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvarsem64t.bat" @call "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvarsem64t.bat"
if exist "C:Program FilesIntelCompiler11.138ippem64ttoolsenvippenvem64t.bat" @call "C:Program FilesIntelCompiler11.138ippem64ttoolsenvippenvem64t.bat"
if exist "%FNL_DIR%intel64binfnlsetup.bat" @call "%FNL_DIR%intel64binfnlsetup.bat"
exit /B 0
)
if {%1} EQU {ia32_ia64} (
@call "C:Program FilesIntelCompiler11.138binia32_ia64ifortvars_ia32_ia64.bat" %2
if exist "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvars64.bat" @call "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvars64.bat"
if exist "C:Program FilesIntelCompiler11.138ippia64toolsenvippenv64.bat" @call "C:Program FilesIntelCompiler11.138ippia64toolsenvippenv64.bat"
if exist "%FNL_DIR%ia64binfnlsetup.bat" @call "%FNL_DIR%ia64binfnlsetup.bat"
exit /B 0
)
if {%1} EQU {ia64} (
@call "C:Program FilesIntelCompiler11.138binia64ifortvars_ia64.bat" %2
if exist "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvars64.bat" @call "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvars64.bat"
if exist "C:Program FilesIntelCompiler11.138ippia64toolsenvippenv64.bat" @call "C:Program FilesIntelCompiler11.138ippia64toolsenvippenv64.bat"
if exist "%FNL_DIR%ia64binfnlsetup.bat" @call "%FNL_DIR%ia64binfnlsetup.bat"
exit /B 0
)
goto err1
) ELSE (
goto err2
)
)
:ARG1
if {%1} EQU {ia32} (
@call "C:Program FilesIntelCompiler11.138binia32ifortvars_ia32.bat"
if exist "C:Program FilesIntelCompiler11.138tbbia32nonebintbbvars.bat" @call "C:Program FilesIntelCompiler11.138tbbia32nonebintbbvars.bat"
if exist "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvars32.bat" @call "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvars32.bat"
if exist "C:Program FilesIntelCompiler11.138ippia32toolsenvippenv.bat" @call "C:Program FilesIntelCompiler11.138ippia32toolsenvippenv.bat"
if exist "%FNL_DIR%ia32binfnlsetup.bat" @call "%FNL_DIR%ia32binfnlsetup.bat"
exit /B 0
)
if {%1} EQU {ia32_intel64} (
@call "C:Program FilesIntelCompiler11.138binia32_intel64ifortvars_ia32_intel64.bat"
if exist "C:Program FilesIntelCompiler11.138tbbem64tnonebintbbvars.bat" @call "C:Program FilesIntelCompiler11.138tbbem64tnonebintbbvars.bat"
if exist "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvarsem64t.bat" @call "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvarsem64t.bat"
if exist "C:Program FilesIntelCompiler11.138ippem64ttoolsenvippenvem64t.bat" @call "C:Program FilesIntelCompiler11.138ippem64ttoolsenvippenvem64t.bat"
if exist "%FNL_DIR%intel64binfnlsetup.bat" @call "%FNL_DIR%intel64binfnlsetup.bat"
exit /B 0
)
if {%1} EQU {intel64} (
@call "C:Program FilesIntelCompiler11.138binintel64ifortvars_intel64.bat"
if exist "C:Program FilesIntelCompiler11.138tbbem64tnonebintbbvars.bat" @call "C:Program FilesIntelCompiler11.138tbbem64tnonebintbbvars.bat"
if exist "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvarsem64t.bat" @call "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvarsem64t.bat"
if exist "C:Program FilesIntelCompiler11.138ippem64ttoolsenvippenvem64t.bat" @call "C:Program FilesIntelCompiler11.138ippem64ttoolsenvippenvem64t.bat"
if exist "%FNL_DIR%intel64binfnlsetup.bat" @call "%FNL_DIR%intel64binfnlsetup.bat"
exit /B 0
)
if {%1} EQU {ia32_ia64} (
@call "C:Program FilesIntelCompiler11.138binia32_ia64ifortvars_ia32_ia64.bat"
if exist "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvars64.bat" @call "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvars64.bat"
if exist "C:Program FilesIntelCompiler11.138ippia64toolsenvippenv64.bat" @call "C:Program FilesIntelCompiler11.138ippia64toolsenvippenv64.bat"
if exist "%FNL_DIR%ia64binfnlsetup.bat" @call "%FNL_DIR%ia64binfnlsetup.bat"
exit /B 0
)
if {%1} EQU {ia64} (
@call "C:Program FilesIntelCompiler11.138binia64ifortvars_ia64.bat"
if exist "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvars64.bat" @call "C:Program FilesIntelCompiler11.138mkltoolsenvironmentmklvars64.bat"
if exist "C:Program FilesIntelCompiler11.138ippia64toolsenvippenv64.bat" @call "C:Program FilesIntelCompiler11.138ippia64toolsenvippenv64.bat"
if exist "%FNL_DIR%ia64binfnlsetup.bat" @call "%FNL_DIR%ia64binfnlsetup.bat"
exit /B 0
)
:err1
@echo ERROR: Unknown switch '%1'
@echo Accepted values: ia32, ia32_intel64, intel64, ia32_ia64, ia64
exit /B 1
:err2
@echo ERROR: Unknown switch '%2'
@echo Accepted values: vs2005, vs2008
exit /B 1
Could you please help me out?
Joseph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I set the Fortran build environment by running IFortVars.bat. I got the error as follows:
C:A>IFortVars
ERROR: Unknown switch ''
Accepted values: ia32, ia32_intel64, intel64, ia32_ia64, ia64
.....
Could you please help me out?
ifortvars intel64
for the 64-bit compiler to build native code on the X64 versions of Windows, from XP64 to Windows Server 2008 R2, or
ifortvars ia32
to set up the 32-bit compiler.
ia32_intel64 would be a cross compiler to run on 32-bit Windows and make code to run on X64
ia32_ia64 cross compiler to run on 32-bit Windows to make code for Itanium Windows
ia64 to build native code on Itanium
If you have both VS2005 and VS2008 installed, you could select one of them by adding that choice after the compiler choice. Otherwise, the default chosen when the compiler was installed will be taken.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ifortvars intel64
for the 64-bit compiler to build native code on the X64 versions of Windows, from XP64 to Windows Server 2008 R2, or
ifortvars ia32
to set up the 32-bit compiler.
ia32_intel64 would be a cross compiler to run on 32-bit Windows and make code to run on X64
ia32_ia64 cross compiler to run on 32-bit Windows to make code for Itanium Windows
ia64 to build native code on Itanium
If you have both VS2005 and VS2008 installed, you could select one of them by adding that choice after the compiler choice. Otherwise, the default chosen when the compiler was installed will be taken.
Thanks Tim.
In the previous post, whatI was asking about is the errormessage thatmade me feel like some errors occurring. Then I checked the ifortvars.bat and found something really weird. For example,tbbvars.bat and ippenv.bat which appear in ifortvars.bat can not be found in c drivesoI thought that there are some files missingand resulted in the errormessage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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