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

need help with starting up fortran on visual studio.Net 2003 and debugging the following errors.

kadiyala1978
Beginner
1,077 Views
dear all,
when I try to run basic forttran program the following errors crop up.
ipo error #11035: Fatal error cannot open bufferoverflowu.
Link error error_during_IPO_compilation: problem during multi-file optimization compilation (code 1)
Link error error_during_IPO_compilation: problem during multi-file optimization compilation (code 1)
i have no idea why these are happening.i cannot find the bufferoverflowu file any where.
this is a bit urgent.i am new to fortran but really have to use it for a project.please respond.

with regards,
Kiran.

0 Kudos
13 Replies
Steven_L_Intel1
Employee
1,077 Views
Are you on a 64-bit system? If so, VS.NET 2003 doesn't support that. Is your VS2003 a non-English version?

Try this - right click on the project, select Properties, Linker, Input. For "Ignore Specific Library" enter bufferoverflowu.lib and rebuild.
0 Kudos
kadiyala1978
Beginner
1,077 Views
Dear steve,
.First of all thank you for taking time and responding really fast.i have never seen such fast help. i am basically on a intel core 2 duo 32 bit system(thinkpad) and my OS is win XP with SP2.i tried to do the ignore specific libraries stuff.it still didnt work.
VS2003 .NET is an english version.
with regards,
Kiran
0 Kudos
Steven_L_Intel1
Employee
1,077 Views
Ok, that is very strange. In the Debug (or Release) subfolder of your project you'll find Buildlog.htm. Please paste the contents of it into a reply.
0 Kudos
kadiyala1978
Beginner
1,077 Views
dear steve,
i am pasting that file contents
Build Log

Build started: Project: fort1, Configuration: Debug|Win32

Output
Linking...
Link /OUT:&quotDebugfort1.exe" /INCREMENTAL:NO /NOLOGO /NODEFAULTLIB:&quotbufferoverflowu.lib" /DEBUG /PDB:&quotC:Documents and SettingsKiranMy DocumentsVisual Studio Projectsfort1debugfort1.pdb" /SUBSYSTEM:CONSOLE /IMPLIB:&quotC:Documents and SettingsKiranMy DocumentsVisual Studio Projectsfort1debugfort1.lib" &quotDebugfort1.obj"
ipo: error #11035: Fatal error cannot open bufferoverflowu
Link: error error_during_IPO_compilation: problem during multi-file optimization compilation (code 1)
Link: error error_during_IPO_compilation: problem during multi-file optimization compilation (code 1)


fort1 - 3 error(s), 0 warning(s)



thank you.

with regards,
Kiran.
0 Kudos
Steven_L_Intel1
Employee
1,077 Views
Please compile one source and show me the log of that. (Right click on a source file and select Compile.)

Please also do this: In Visual Studio, select Tools > Visual Studio Command Prompt (may say Visual Studio.NET 2003 Command Prompt or something like that).

Type the command:

cl

and then paste the output into a reply here.
0 Kudos
kadiyala1978
Beginner
1,077 Views
dear steve,
even though i hsve installed IVF latest version it always shows no compiler installed when compiling,but i have given all the correct paths.
the compile log is

Build Log

Build started: Project: fort1, Configuration: Debug|Win32

Output
Compiling with No Compiler Installed...
ifort /nologo /Zi /Od /gen-interfaces /warn:interfaces /module:"Debug" /object:"Debug" /traceback /check:bounds /libs:static /dbglibs /c "C:Documents and SettingsKiranMy DocumentsVisual Studio Projectsfort1fort1.f90"

fort1 - 0 error(s), 0 warning(s)


and in the tools i am not able to find any thing related to command prompt.I also have VS 2008 on my laptop whihc has a command prompt option.but this >NET 2003 has no such tools option. thank you.
with regards,
Kiran.


0 Kudos
TimP
Honored Contributor III
1,077 Views
So, is your ifort installed in your VS2008 rather than VS2003?
0 Kudos
Steven_L_Intel1
Employee
1,077 Views
That "no compiler installed" message is odd. In Visual Studio, select Tools > Options > Intel Fortran. Select Executable Files and open the list of folders (I think that's a "..." button.) Paste the contents in here.

Let's try this as a workaround. I have attached a ZIP file. Unzip it into your Program FilesMicrosoft Visual Studio.NET 2003VCLib folder and rebuild the project.
0 Kudos
kadiyala1978
Beginner
1,077 Views
dear steve,
I think the problem is something to do with 64bit and 32 bit computing.the excuteables
C:Program FilesMicrosoft Visual Studio .NET 2003Common7IDE
C:Program FilesMicrosoft Visual Studio .NET 2003VC7BIN
C:Program FilesMicrosoft Visual Studio .NET 2003Common7Tools
C:Program FilesMicrosoft Visual Studio .NET 2003Common7Toolsinprerelease
C:Program FilesMicrosoft Visual Studio .NET 2003Common7Toolsin
C:Program FilesMicrosoft Visual Studio .NET 2003SDKv1.1in
C:WINDOWSMicrosoft.NETFrameworkv1.1.4322
C:Program FilesMiKTeX 2.7miktexin
%ASI%in
C:WINDOWSsystem32
C:WINDOWS
C:WINDOWSSystem32Wbem
C:Program FilesIntelWirelessBin
C:Program FilesDiskeeper CorporationDiskeeper
C:Program FilesThinkPadConnectUtilities
C:Program FilesCommon FilesLenovo
C:Program FilesLenovoClient Security Solution
C:Program FilesMATLAB704inwin32
C:Program FilesCommon FilesTeleca Shared
C:Program FilesIVIin
C:VXIPNPWinNTBin
C:Program FilesNational InstrumentsSharedSystem
C:Program FilesNational InstrumentsSharedSystem
C:Program FilesNational InstrumentsMotion Assistantinmxwplugins
c:Program FilesMicrosoft SQL Server90Toolsinn
C:Program FilesproeWildfire 4.0in
C:Program FilesproeWildfire 4.0mechin
C:Program FilesptchelpWildfire 4.0in
%IFORT_COMPILER10%EM64TLib
C:Program FilesIntelCompilerFortran10.1.014em64tin
C:Program FilesIntelCompilerFortran10.1.014em64tLib
C:Program FilesIntelCompilerFortran10.1.014samples
C:Program FilesIntelCompilerFortran10.1.014em64tInclude

Actually the first error i got was ifort not found,the i searched for ifort and added the boldened paths manually.after that all these other errors started cropping up.

i unzipped the bufferoverflowu file and ran the program. the error i got is
LIBCD.lib fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'AMD64'


the build log is.

Build Log

Build started: Project: fort1, Configuration: Debug|Win32

Output
Linking...
Link /OUT:"Debugfort1.exe" /INCREMENTAL:NO /NOLOGO /NODEFAULTLIB:"bufferoverflowu.lib" /DEBUG /PDB:"C:Documents and SettingsKiranMy DocumentsVisual Studio Projectsfort1debugfort1.pdb" /SUBSYSTEM:CONSOLE /IMPLIB:"C:Documents and SettingsKiranMy DocumentsVisual Studio Projectsfort1debugfort1.lib" "Debugfort1.obj"
Link: executing 'link'
LIBCD.lib(stricmp.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'AMD64'


fort1 - 1 error(s), 0 warning(s)


so i guess some where i need to chage some machine types and settings,but it amy be smething else also.thank you and please suggest.

with regards,
K.Kiran Kumar.



0 Kudos
Steven_L_Intel1
Employee
1,077 Views
Ok, this explains a lot.

What it looks to me is that you installed the Intel 64 (EM64T) compiler and not the IA-32 compiler. Please do this.

Uninstall:

Intel Fortran 10.1 Integrations into Microsoft Visual Studio
Intel Fortran Compiler 10.1.014 for applications running on Intel 64

Edit the system PATH environment variable and remove any references to %IFORT_COMPILER10% or the Intel Fortran folders

From the Intel Registration Center, download w_fc_p_10.1.021_IA32.exe and install it

Now try to rebuild. Let me know what happens.
0 Kudos
kadiyala1978
Beginner
1,077 Views
dear steve
I did as you have said,i have ustalled the IA 32 compiler but now all the old errors disappera but some new errors have cropped up.

LINK error LNK2001: unresolved external symbol mainCRTStartup
fort1.obj error LNK2019: unresolved external symbol for_set_reentrancy referenced in function MAIN__
fort1.obj error LNK2019: unresolved external symbol for_write_seq_lis referenced in function MAIN__
Debugfort1.exe fatal error LNK1120: 3 unresolved externals.
this is some sort of linking error.the compilers been detected and installed though.please suggest.

with regards,
K.Kiran Kumar.

0 Kudos
Steven_L_Intel1
Employee
1,077 Views
Something is still wrong here - you're using the Intel 64 compiler and shouldn't be. Please post the new buildlog.htm and the list of folders in Tools > Options > Intel Fortran > Executable Files.
0 Kudos
kadiyala1978
Beginner
1,077 Views
hey steve,
thank you very much.i just cleaned the project and rebuild it and it works fine.i finally got the hello world working.
I will comback to you if i run into any more of these problems.have a nice day.

with regards,
K.Kiran Kumar.

0 Kudos
Reply