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

Build not compiling any of the source code

prandf
Beginner
1,311 Views
Everything was ok a while ago.

I installed Parallel Studio and now it does not compile any of the source included in the project.

To prove this I created a new project called HelloTest and said I wanted "main program code" not "Empty Project. This gives me a project with HelloTest.f90 containing 'Hello World'
When I click Build - Rebuild HelloTest I get the following

1>------ Rebuild All started: Project: HelloTest, Configuration: Debug Win32 ------

1>Deleting intermediate files and output files for project 'HelloTest', configuration 'Debug|Win32'.

1>

1>HelloTest - 0 error(s), 0 warning(s)

========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

Nothing has compiled - No exe

It must be an option/path or something like it, however I am at a loss so if anyone has any ideas it would be appreciated.

Peter

0 Kudos
6 Replies
mecej4
Honored Contributor III
1,311 Views
Rerun as above, locate the build log and attach it in your reply. You may look at the log yourself to see if there is an obvious problem in the linking step.
0 Kudos
prandf
Beginner
1,311 Views
hi
here is the .sln file (cut and pasted from notepad)

Microsoft Visual Studio Solution File, Format Version 9.00

# Visual Studio 2005

Project("{6989167D-11E4-40FE-8C1A-2192A86A7E90}") = "HelloTest", "HelloTest.vfproj", "{F57EDE5E-AD3B-4C69-900F-3B23ADB5C48F}"

EndProject

Global

GlobalSection(SolutionConfigurationPlatforms) = preSolution

Debug|Win32 = Debug|Win32

Release|Win32 = Release|Win32

EndGlobalSection

GlobalSection(ProjectConfigurationPlatforms) = postSolution

{F57EDE5E-AD3B-4C69-900F-3B23ADB5C48F}.Debug|Win32.ActiveCfg = Debug|Win32

{F57EDE5E-AD3B-4C69-900F-3B23ADB5C48F}.Debug|Win32.Build.0 = Debug|Win32

{F57EDE5E-AD3B-4C69-900F-3B23ADB5C48F}.Release|Win32.ActiveCfg = Release|Win32

{F57EDE5E-AD3B-4C69-900F-3B23ADB5C48F}.Release|Win32.Build.0 = Release|Win32

EndGlobalSection

GlobalSection(SolutionProperties) = preSolution

HideSolutionNode = FALSE

EndGlobalSection

EndGlobal

End of .sln file

The .suo file contains the text hellostest.f90 (I had to use a hex editor to examine it)

The debug directory is completely empty.

The only thing like a log is the 5 lines in the build window.
they are the 5 lines included in the original description.

It does not activate a compiler, does not produce any .obj files and the linker thinks it has done a great job (doing nothing)

maybe the compiler settings are wrong?

Peter





0 Kudos
Les_Neilson
Valued Contributor II
1,311 Views
Peter,

what mecej4 was asking for is the BuildLog.htm file not the solution file.

You should findit in your project directory or in a subfolder under that directory.

Les
0 Kudos
Steven_L_Intel1
Employee
1,311 Views
In Visual Studio, select Tools > Options > Intel Visual Fortran > General. Look at the two "Source:" fields under "Fortran File Extensions". If they are blank, click the Reset button under each one. For Free Format, Source should show ".f90" and for Fixed Format, ".f,.for,.fpp". If the fields were blank, and are now filled in, this may correct the problem. Close Visual Studio and restart it to test.
0 Kudos
prandf
Beginner
1,311 Views
hi

I have found 81 BuildLog.htm files and the most recent is 20 May, 2011
(prior to Parallel Studio Installation).

so it is like there is nothing in the make file and it happily does nothing.

Maybe I reinstall Parallel Studio?

There is one other thing ...
When I select the Hello World std program template the code is not recognised in the editor as fortran and I had to space it along to the good old column 7 spacing when it instantly recognises key words etc.

Some time ago I had a problem with adding a file and I found that it did not recognise .f95 files and by changing the extension to .f90 it all worked. Not sure what compiler that was. So I renamed my files to .f95 and it did not see them so I droped back to .f90.
In this case the .f90 file appears under the Source Files folder in the left hand window.
So it is part of the project

peter
0 Kudos
prandf
Beginner
1,311 Views
FIXED!

Thanks Steve

I noticed it blank and added .f90 some time ago and it did not like it.
Hitting the reset button brought up .f90 and the others on the right and it
now compiles and builds ok

thanks to everyone that reeplied

regards

Peter
0 Kudos
Reply