- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
I have Windows XP (fully updated), Fortran 9.1 (evaluation version), and Visual C++ 2005 Express Edition. Initially I had initial errorwhen loading the build environmentbut, as stated in the forums,VC05 SP1 fixed this.(thanks Steve Lionel)
After VC05 SP1, I have a new problem that I can't find in forums but would think should be common:
1) When I open the "Build Environment for Fortran IA-32 applications" I get the following information:
Setting environment for using Microsoft Visual Studio 2005 x86 tools.
The system cannot find the path specified.
The system path that cannot be found is from C:Program FilesIntelCompilerFortran9.1IA32BinIfortvars.bat : line10:
@call "C:Program FilesMicrosoft Platform SDKSetEnv"
2) C:Program FilesMicrosoft Platform SDK does not exist. Is there a way I can manually set the environment variables necessary to execute this function?
3) The final problem arises (I believe) from the absense of SetEnv. Compiling with "ifort" is fine, but fails on linking (when trying to create an executable) with the following message:
Fatal error cannot open "LIBC"
ifort: error: problem during multi-file optimization compilation (code 1)
a) I've seen Steve Lionel recompiled f90gl bc it didn't take into account that VC05 doesn't have a libc (instead with libcmt & libcpmt), does ifort have the same problem?
b) I have VisualC++ 6.0 installed as well (which has libc), but I guess that's too old-school to be compatible with 9.1?
Any help would be appreciated,
Joshua New (www.cs.utk.edu/~new)
링크가 복사됨
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
1) Now, that's odd. I can't figure out why it would be looking for the Platform SDK there. Try uninstalling and reinstalling the IA-32 compiler only. Pay attention to any error messages. It should be referencing a file in your VC2005 install.
2) See 1.
3) This should be fixed by getting the compiler install right. It will see that you're using VC2005 and will change the default to /MT from /ML. In VS2005, Microsoft removed the single-threaded static library libc.lib. You can try adding /MT on the ifort command line to see if that helps. But ifort.cfg in the compiler BIN folder should have a -Qvc8 line in it to tell the driver you have VC2005
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
1) Reinstallation of Fortran 9.1 (can safely ignore this step)
a) I uninstalled the software entitled "Intel Visual Fortran Compiler 9.1" and "Intel Visual Fortran Compiler 9.1 Integrations in Microsoft Visual Studio".
b) I then ran W_FC_C_9.1.033.exe and said "Yes to All" when it asked me if I wanted to replace "C:Program FilesIntelDownloadIntelFortranCompiler91autorun.inf", "ChkLic.dll", etc...
c) Selected checkboxes to install the compiler "for 32-bit and Itanium-based applications" and "integrations in Microsoft Visual Studio" (ran installation twice, once with updating environment variables and once without)
d) No errors were reported but it didn't seem there was any place that they could be
2) Config file correct
This is my C:Program FilesIntelCompilerFortran9.1IA32Binifort.cfg and thebin folder does exist:
# This Configuration file may be used for additional switches
# Enable Microsoft Visual C++* .NET 8.0 compatibility
-Qvc8
# Path to Microsoft Visual C++* .NET 8.0 linker
-Qlocation,link,"C:Program FilesMicrosoft Visual Studio 8VCBin"
# *Other names and brands may be claimed as the property of others
3) ifortvars.bat still has the link to non-existent folder:
@call "C:Program FilesMicrosoft Platform SDKSetEnv"
4) Same error (with or without /MT)
Build command used:
ifort driver.obj autobt.obj reorder.obj getblksize.obj sensitivity.obj permut.obj ./OBJS/gps.obj -o driver /MT
Error Message:
Fatal error cannot open "LIBC"
ifort: error: problem during multi-file optimization compilation (code 1)
5) Perhaps more importantly, I have a 64-bit system and have reinstalled
"Build Environment for Fortran EM64T-based applications" and tried building.
It at least is looking for libcMT but gives the following errors:
ifort: NOTE: The evaluation period for this product ends on 12-feb-2007 UTC.
ifort: warning: Microsoft Visual C++ not found in path
ifort: error: could not find 'cl'
Intel Fortran Compiler for Intel EM64T-based applications, Version 9.1
Build 20061104
Copyright (C) 1985-2006 Intel Corporation. All rights reserved.
30 DAY EVALUATION LICENSE
ifort: NOTE: The evaluation period for this product ends on 12-feb-2007 UTC.
ifort: warning: Microsoft Visual C++ not found in path
ifort: error: could not find 'cl'
Fatal error cannot open "LIBCMT"
ifort: error: problem during multi-file optimization compilation (code 1)
a) ifort.bat for 64-bit version points to non-existent directory:
call "Microsoft Platform SDKSetEnv" /X64 /RETAIL
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
You're using the 32-bit compiler on 64-bit Windows?
The ifort command you show has objects already compiled. Here, the /MT switch is ignored. You need to specify it when you compile the sources. This is why it is still looking for libc.
I would think that you'd want to use the 64-bit (EM64T) compiler and for that you don't need Visual C++, just the Platform SDK.
It's not entirely clear to me how you got in this state, but - install the free Platform SDK,re install the EM64T compiler, and use the EM64T compiler. You should be fine then.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
It's ok to say AMD here - it won't hurt our feelings - much. :-)
Since you are running 32-bit Windows you must use the 32-bit compiler. In an earlier reply I saw that you used the 64-bit compiler - don't do that. Use the /QxW switch for best performance on an Athlon 64 processor.
You don't need the PSDK if you're on 32-bit Windows.
Please make sure that you are using the "IA-32" compiler and that the ifortvars.bat for the IA-32 compilerinvokes the proper .bat or .cmd file in your VC installation. Add the /watch switch to the ifort command and post the output.
