Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29108 Discussions

After uninstalling a trial version of 9.0 compiler, my 8.1 compiler won't work

yood
Beginner
797 Views
Hi. I tried the 9.0 Intel Fortran compiler to see if it reads any faster than the 8.1 version. It does and It also generates much smaller executables. All good news. The bad news is now that my 30 day eval is up and I uninstalled the 9.0 compiler, I get an error when I try to run my 8.0 compiler. Iremember I had to make some modes (via instruction from Intel personnel) to some code, but I can't remember exactly what I did and now the premiere support won't let me sign in. I just want to get back to where I was....
Here's what I get when I compile:
F:>ifort ripstats.for /O3 /G2 /link /out:ripstats.exe
Intel Fortran Itanium Compiler for Itanium-based applications
Version 8.1 Build 20041118 Package ID: w_fc_pc_8.1.025
Copyright (C) 1985-2004 Intel Corporation. All rights reserved.
ifort: error: unable to run 'D:Program FilesMicrosoft SDKinWin64'
F:>
I reinstalled the Microsoft SDK but that didn't help. I'm on an HP Itanium2.
Any help for me?
Thankx,
Mark
0 Kudos
8 Replies
Steven_L_Intel1
Employee
797 Views
Uninstall and reinstall the Fortran compiler. You have to do this after you install the PSDK.

It looks as if it is having trouble locating the linker. The compiler itself is working fine.
0 Kudos
yood
Beginner
797 Views

Steve,

Hi. I uninstalled the 8.1 compiler, then I uninstalled the Platform SDK. Then I reinstalled the Platform SDK and reinstalled the 8.1 compiler and I still get the same error message.

But you mentioned the linker. I notice in my Environment Variables there remains a LINK_F90 variable. Was there supposed to be a LINK_F80 variable?

Any suggestions would be great.

Mark

0 Kudos
Steven_L_Intel1
Employee
797 Views
LINK_F90 is defined by the IMSL install from the Professional edition. It would not affect this.

Try this first. Use this command to build:

ifort ripstats.for /O3 /G2

The rest of what you have isn't necessary.

If this doesn't work, do this and post the output:

ifort /# ripstats.for /O3 /G2
0 Kudos
yood
Beginner
797 Views
Hi Steve,
Here ya go.
Thankx for any help in this regard,
Mark

F:>ifort ripstats.for /O3 /G2
Intel Fortran Itanium Compiler for Itanium-based applications
Version 8.1 Build 20040802 Package ID: w_fc_p_8.1.020
Copyright (C) 1985-2004 Intel Corporation. All rights reserved.
fortcom: Severe: No such file or directory
... file is 'ripstats.for'
compilation aborted for ripstats.for (code 1)
F:>ifort /# ripstats.for /O3 /G2
Intel Fortran Itanium Compiler for Itanium-based applications
Version 8.1 Build 20040802 Package ID: w_fc_p_8.1.020
Copyright (C) 1985-2004 Intel Corporation. All rights reserved.
C:PROGRA~1IntelFortranCOMPIL~1ItaniumBinfortcom
-D__INTEL_COMPILER=810
-D__INTEL_COMPILER_BUILD_DATE=20040802
-D_M_IA64=64200
-D_MSC_VER=1300
-D_WIN32
-D_export=
-D_MSC_FULL_VER=13000000
-D__w64=
-D_MSC_EXTENSIONS
-mGLOB_pack_sort_init_list
-I.
"-IC:Program FilesMicrosoft Visual StudioDF98IMSLINCLUDE"
"-IC:Program FilesMicrosoft Visual StudioDF98INCLUDE"
"-IC:Program FilesMicrosoft Visual StudioVC98INCLUDE"
"-IC:Program FilesIntelFortranCompiler80ItaniumInclude"
-ftz
-O3
-mP1OPT_version=813
-mGLOB_source_language=GLOB_SOURCE_LANGUAGE_F90
-mGLOB_tune_for_fort
-mGLOB_use_fort_dope_vector
-mP2OPT_static_promotion
-mP1OPT_print_version=FALSE
"-mGLOB_options_string=-Qvc7 -Qlocation,link,D:Program FilesMicrosoft Plat
form SDKinWin64 -# -O3 -G2"
-mGLOB_cxx_limited_range=FALSE
-mP3OPT_defaultlibs_omit=FALSE
-mP3OPT_defaultlibs=P3OPT_DEFAULTLIBS_STATIC
-mGLOB_libirc_required
-mP3OPT_defaultlibs_select=P3OPT_DEFAULTLIBS_SELECT_F90_IVF
-mP3OPT_defaultlibs_f90_port
-mP1OPT_check_stack
-mGLOB_machine_model=GLOB_MACHINE_MODEL_E3
-mGLOB_ipf_uarch=GLOB_IPF_UARCH_MCKINLEY
-mGLOB_fp_speculation=GLOB_FP_SPECULATION_FAST
-mGLOB_flush_to_zero_mode
-mP2OPT_gen_read_only_strings=TRUE
-mP2OPT_subs_out_of_bound=FALSE
-mP2OPT_new_eh_cfg
-mGLOB_new_eh
-mGLOB_opt_level=3
-mP2OPT_hlo_level=1
-mP2OPT_fp_div_opt=TRUE
-mGLOB_split_functions=1
-mIPOPT_obj_output_file_name=ripstats.obj
-mGLOB_routine_pointer_size_64
-mGLOB_small_pack_size=8
-mGLOB_ms_abi_26
-mGLOB_stepping=B0
-mGLOB_os_target=GLOB_OS_TARGET_WINNT
-mP3OPT_asm_target=P3OPT_ASM_TARGET_TAHOE
-mP3OPT_obj_target=P3OPT_OBJ_TARGET_NTCOFF
-mGLOB_obj_output_file=ripstats.obj
-mP1OPT_source_file_name=ripstats.for
ripstats.for
D:Program FilesMicrosoft Platform SDKinWin64
-out:ripstats.exe
-subsystem:console
-entry:mainCRTStartup
ripstats.obj
del C:DOCUME~1MWOOD~1.HPWLOCALS~1Temp36442.arg
del C:DOCUME~1MWOOD~1.HPWLOCALS~1Temp36443.arg

F:>
0 Kudos
Steven_L_Intel1
Employee
797 Views
Interesting.

Look in C:Program FilesIntelCompiler80ItaniumBinifort.cfg. There will be a line that starts:

-Qlocation,link

It is probably missing the link.exe on the end. You can add that so that it is a full path to the PSDK link.exe, or remove the line and I think it will build.

I'm puzzled that the path would not be complete.
0 Kudos
yood
Beginner
797 Views

Steve,

I found the ifort.cfg file in another directory. It contains:

# This Configuration file may be used for additional switches

-Qvc7

# Path to the Microsoft Platform SDK* linker for Itanium-based applications
-Qlocation,link,"D:Program FilesMicrosoft Platform SDKinWin64"

# *Other names and brands may be claimed as the property of others

I checked and Microsoft's Platform SDK's Bin folder was sitting at the same level as the Microsoft Plaform SDK. I moved the Bin folder under the Microsoft Platform SDK.Then I added the text 'link.exe' to the end of the '...inWin64' line and it starts to link. Then I get:

F:>ifort ripstats.for /O3 /G2
Intel Fortran Itanium Compiler for Itanium-based applications
Version 8.1 Build 20040802 Package ID: w_fc_p_8.1.020
Copyright (C) 1985-2004 Intel Corporation. All rights reserved.

Microsoft Incremental Linker Version 8.00.40310.39
Copyright (C) Microsoft Corporation. All rights reserved.

-out:ripstats.exe
-subsystem:console
-entry:mainCRTStartup
ripstats.obj
LINK : fatal error LNK1104: cannot open file 'LIBC.lib'

F:>

Any idea why?

Thankx,

Mark

Message Edited by yood on 03-25-200603:37 PM

Message Edited by yood on 03-25-200603:49 PM

0 Kudos
Steven_L_Intel1
Employee
797 Views
It sounds as if the install doesn't quite recognize your Platform SDK. You are using a rather old 8.1 version.

In the compiler80ItaniumBin folder is ifortvars.bat. It should contain a "call" command that invokes the Platform SDK's setenv.bat or something like that. Is that line there and does it point to a valid path?

Start a "Build Environment for Itanium-Based Applications". Do a:

SET LIB

command. What's the output (including what you see when the window first opens)?
0 Kudos
yood
Beginner
797 Views
Hi Steve,
Here is my ifortvars.bat file. There is no setenv call...
@echo off
Rem Intel Fortran Compiler build environment for Itanium-based applications
echo.
echo Intel Fortran Compiler 8.1 build environment for Itanium-based applications
echo Copyright (C) 1985-2004 Intel Corporation. All rights reserved.
echo.
SET MSSdk=D:Program FilesMicrosoft Platform SDK
SET INTEL_COMPILER8.0=C:Program FilesIntelFortranCompiler80
SET INTEL_SHARED=C:Program FilesCommon FilesIntelShared Files
SET INTEL_LICENSE_FILE=C:Program Files (x86)Common FilesIntelLicenses
SET PATH=%MSSDK%inWin64;%MSSDK%in;%MSSDK%BinWinNT;%Intel_COMPILER8.0%ItaniumBin;%INTEL_SHARED%ItaniumBin;%PATH%
SET LIB=%MSSDK%libia64;%MSSDK%libia64crt;%MSSDK%libia64mfc;%MSSDK%libia64atl;%MSSDK%LibPrereleaseIA64;%Intel_COMPILER8.0%ItaniumLib;%INTEL_SHARED%ItaniumLib;%LIB%
SET INCLUDE=%MSSDK%Includeprerelease;%MSSDK%IncludeWin64crt;%MSSDK%IncludeWin64crtsys;%MSSDK%IncludeWin64MFC;%MSSDK%IncludeWin64ATL;%MSSDK%Include;%Intel_COMPILER8.0%ItaniumInclude;%INCLUDE%
Here is the build environment with a set LIB command executed:

Intel Fortran Compiler 8.1 build environment for Itanium-based application
s
Copyright (C) 1985-2004 Intel Corporation. All rights reserved.
C:Documents and Settingsmwood.HPWORKSTATION>set LIB
LIB=D:Program FilesMicrosoft Platform SDKlibia64;D:Program FilesMicrosoft
Platform SDKlibia64crt;D:Program FilesMicrosoft Platform SDKlibia64mfc;D
:Program FilesMicrosoft Platform SDKlibia64atl;D:Program FilesMicrosoft P
latform SDKLibPrereleaseIA64;C:Program FilesIntelFortranCompiler80Itaniu
mLib;C:Program FilesCommon FilesIntelShared FilesItaniumLib;C:Program Fi
lesMicrosoft Visual StudioDF98IMSLLIB;C:Program FilesMicrosoft Visual Stud
ioDF98LIB;C:Program FilesMicrosoft Visual StudioVC98LIB;D:Program FilesM
icrosoft SDKLibIA64;C:Program FilesIntelFortranCompiler80ItaniumLib
C:Documents and Settingsmwood.HPWORKSTATION>
If using an older version of the compiler is an issue, is there a way I can download a newer one? Am I permitted to do sosince we have purchased the product? Any suggestions greatly appreciated.
Mark

Message Edited by yood on 03-27-200603:10 PM

Message Edited by yood on 03-27-200604:10 PM

0 Kudos
Reply