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

Severe: Too many errors

mariatmolina
Beginner
1,995 Views

I have dowanloaded an evaluation version of "Intel Visual Fortran Compiler Professional Edition for Windows" and have been trying to compile a code initially developed in Compaq Visual Fortran Standard Edition 6.1.0. When I do I get the message above (too many errors). I'm wondering if I should be using a different compiler. Can you please help?

A quick answer would be appreciated.

0 Kudos
18 Replies
Steven_L_Intel1
Employee
1,995 Views
Can you show us an example of the errors you are seeing before that last message? Please read this white paper on converting from CVF.
0 Kudos
mariatmolina
Beginner
1,995 Views

Steve,

Many thanks for your quick reply. The first error is:

Error: Syntax error, found END-OF-STATEMENT when expecting one of :=> = . < : %

After that I get always the same message:

Error: Syntax error, found IDENTIFIER 'SOCIO' when expecting one of :=> = . < : %

I get that about 23 times (always for a different identifier), and then:

Severe: Too many errors, exiting, compilation aborted

0 Kudos
Steven_L_Intel1
Employee
1,995 Views
If I could see the complete error message, or better, the buildlog.htm in the Debug or Release subfolder of your project, I could perhaps advise better. Possibly you are compiling fixed-form source in a way that the compiler thinks is free-form, or the other way around. Intel Fortran should behave the same as CVF for this, though. Can you attach a zip of the project? Use the Options tab on your reply.
0 Kudos
mariatmolina
Beginner
1,995 Views
Actually, I've changed the file extension to .for and now I get a different error message.  It seems that that fixed one problem but now I get:
ifort: error #10037: could not find 'link'
I can't find the buildlog.  I'm not sure If it's not stored anywhere because this is an evaluation version?
0 Kudos
Steven_L_Intel1
Employee
1,995 Views
Are you building from the command line? There would not be a build log then - it would be just the output in the command session.

Which version of Visual Studio do you have installed? The Evaluation version requires that you have Visual Studio 2003, 2005 or 2008 installed. The 'link' error suggests that you do not have Visual Studio.
0 Kudos
Les_Neilson
Valued Contributor II
1,995 Views

(1) the code is F77 style which is why you initially got all the error messages when compiling it as F9x
changing the extension to ".for" now compiles the code as F77 which is ok.

(2)For the call to ATRATDAT you are passing a scalar ATTbut the subroutine is expecting an array. Perhaps you meant to use ATTRAT ?

As a test I changed ATT to ATTRAT and the program compiled and linked

Les

0 Kudos
mariatmolina
Beginner
1,995 Views

Thank you Les, that's reassuring.

I have now installed Visual Studio 2005, but still get the same error (ifort: error #10037: could not find 'link')

0 Kudos
Steven_L_Intel1
Employee
1,995 Views
Please uninstall and reinstall the compiler so that it can "see" the VS2005 installation. You should have seen a detailed message on the download page alerting you to this requirement, as well as an error message during installation. Note that if you buy the product, it comes with a special version of Visual Studio which enables Fortran development, though if you have the retail VS2005, that's fine.
0 Kudos
mariatmolina
Beginner
1,995 Views
I have unistalled and installed the compiler again and still get that error. And Visual Studio is the retail version.
0 Kudos
Steven_L_Intel1
Employee
1,995 Views
Please show me the first lines that are displayed when you start a command session. Be sure you are using Start > Programs > Intel Software Development Tools > Intel Fortran Compiler 10.1.xxx > Fortran Build Environment for applications running on IA-32. For example, it should look something like this:

Intel Visual Fortran Compiler for applications running on IA-32, Version 10.1.024
Copyright (C) 1985-2008 Intel Corporation. All rights reserved.

Setting environment for using Microsoft Visual Studio 2005 x86 tools.
0 Kudos
mariatmolina
Beginner
1,995 Views

It says:

Intel Visual Fortran Compiler for applications running on IA-64, Version 10.1.021
Copyright (C) 1985-2008 Intel Corporation. All rights reserved.
30 DAY EVALUATION LICENSE

ifort: NOTE: The evaluation period for this product ends on 15-aug-2008 UTC. V2.for(226):

That's all before getting the error 10037. It does not say anything about Setting environment for using Microsoft Visual Studio 2005 x86 tools

0 Kudos
Steven_L_Intel1
Employee
1,995 Views
Ok, now this makes sense.

Are you in fact trying to build an application to run on a 64-bit Intel Itanium processor system? My guess is that you are not. Please instead use Start > Programs > Intel Software Development Tools > Intel Fortran 10.1.021 > Fortran Build Environment for applications running on IA-32 (not IA-64) and see if that's better.

If you are trying to build for Itanium-based systems, there's more you have to do.

If you do not see a Build Environment for IA-32 (32-bit systems, same as what CVF supported), then you downloaded the wrong installer. You want w_fc_p_10.1.021_IA32.exe
0 Kudos
mariatmolina
Beginner
1,995 Views

That did the trick!

Thank you very much!

Maria

0 Kudos
mariatmolina
Beginner
1,995 Views

I'm afraid I found yet another problem. I'm trying to increase the size of the arrays this program reads. There is a limit of 970 and I want to change it to 1020, but when I execute the program I get a message saying:

forrtl: severe (157): Program Exception - access violation

Any ideas?

0 Kudos
Steven_L_Intel1
Employee
1,995 Views
Perhaps the array size change has not been made in all places in the program? Without seeing the actual program, it's hard to guess for something like this.
0 Kudos
mariatmolina
Beginner
1,995 Views

Maybe it helps if I attach the code?

I appreciate your help. I'm really stuck.

0 Kudos
Steven_L_Intel1
Employee
1,995 Views
You still haven't fixed the coding error that Les reported. This is most likely what is giving you trouble.
0 Kudos
mariatmolina
Beginner
1,995 Views
You're right. Now I feel bad. It works perfectly. Thank you!
0 Kudos
Reply