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

unable to run link #1036

deecesk
Beginner
1,512 Views

Hi all

I support a business group who are migrating from Unix to PC's. One user uses Fortran 90 to compile very small programs and manipulate data before submitting it to a commercial application for processing. I have install Vista 64 and Fortran 10.1 complier onto their machine. The users reported to be that he is unable to run the as it sends the error message back "Unable to run link" and the error code #1036. I have tried to Google this but cannot seek any information as to what is causing the problem. Any help would be appreciated. Thanks

0 Kudos
10 Replies
Steven_L_Intel1
Employee
1,512 Views
Would you please post the complete output of the build log? It would help understand the problem. The build log will be named buildlog.htm in the Debug or Release subfolder of the project. Please also tell us the complete filename of Intel Visual Fortran that you downloaded (or tell us that you installed from CD). The filename will start with w_fc_p. Please also tell us if you installed Microsoft Visual Studio separately, and if so, which version (2005 or 2008) and which edition (Standard, Professional, etc.).
0 Kudos
TimP
Honored Contributor III
1,512 Views

If you don't use Visual Studio 2005 or 2008 (with both C++ and 64-bit options installed), youshould have set up the PPE option.

If other software is installed which confuses ifort about the linker path (most any non-Intelcompiler will do that), add the equivalent of the following in ifort.cfg:

-Qlocation,link,"d:Program Files (x86)Microsoft Visual Studio 9.0VCBinamd64"
-assume:protect_parens,minus0,buffered_io,byterecl

I'm sorry, I don't have one installed to show how the path looks in PPE or VS2005. You should require just a change in disk partition letter and Visual Studion version. amd64 is sometimes spelled x86_amd64.

The -assume options are not associated with the link problem, butI don't want to have to remember to set them every time.

0 Kudos
deecek
Beginner
1,512 Views

Hi all

Thanks for the replies. SorryI have not got back sooner. I have completed a search on all locals drives for "buildlog.htm". I did a wild card search for "Build*" but no files were found.

The version of Visual studio is: MS Visual Studio 2008 Express Edition. The free version from MS. As far as my memory goes I loaded this first with all the options. When I look at My programs I can also see Visual C++ Express edition - ENU 2008 has been loaded.

The Fortan complier version is Intel Visual Fortran 10.1 File w_fc_p_10.1.021.

Also loaded is Intel Math Kernal Library w_mkl_p_10.0.3.021 update 3

As mentioned before. I no expert but loaded this for the end user. I did try to compile a simple "Hello world" to display on the screen, before deploying the machine. This work OK this help with the Unable to link problem.

All Applications are 64 Bit

Thanks for the help so far and any ideas to identify the problem are extremely appreciated.

0 Kudos
Steven_L_Intel1
Employee
1,512 Views
Ok - you are using the command line and not the Visual Studio environment - because VC++ Express does not support Fortran in the IDE. Your real problem is that VC++ Express does not support x64 - period. If you can't or don't want to use the included Visual Studio 2005 Premier Partner Edition, then download and install one of the Platform SDKs as described in the Fortran installation guide.
0 Kudos
deecesk
Beginner
1,512 Views

Hi

I have downloaded the SDK and installed it. I also reinstalled the Fortran complier but still i got the same error. I have also installed MS 2008 Visual Studio Professional Evaluation as suggested by the Fortran Complier installation program. As I not a developer I have copied the code below as there could be an issue with the code. The actions I take are as follows: I run the command Fortran window adn type ifort space and the text file name such as title.f after this it tries to compile where i get the error code which is #10036 but no text to state what is wrong or what to do. Any more help would be extremely appreciated. This is driving me mad.

c234567
program XXX
integer lengthA,tcount
character*20 tfile
character*400 lineA,lineC
lengthA = 0
tcount = 1
c
c
open (unit=25,file='tfile.txt',form='formatted',status='old')
do 100 l=1,50
read (25,'(a20)',end=150) tfile
tcount = tcount +1
100 continue
150 if (tcount.gt.2) then
write (*,*)
c 'Multiple T01 files found: Enter Full name of Tfile?'
read (*,*) tfile
endif
lengthA=index(tfile,' ')
lengthA = lengthA -4
c
c
open (unit=21,file='ev_V36x_FO8_cae_report_master.ev',
cform='formatted',status='old')
open (unit=22,file='ev_V36x_FO8_cae_report_master.ev1',
cform='formatted',status='unknown')
do 300 k=1,500
read (21,'(a400)',end=350) lineA
if (lineA(22:32).eq.'./ROOTNAMEA') then
lineA = ''
lineA(1:23) = 'set import prefix = "./'
lineA(24:lengthA+23) = tfile(1:lengthA)
lineA(lengthA+24:lengthA+26) = 'A";'
endif
if (lineA(36:59).eq. './ROOTNAME_disp_data.csv') then
lineA = ''
lineA(1:37) = 'ev set data plotter export file = ./'
lineA(38:lengthA+37) = tfile(1:lengthA)
lineA(lengthA+38:lengthA+52) = '_disp_data.csv;'
endif
write (22,'(a400)') lineA
lineA = ''
300 continue
c
c
350 open (unit=23,file='gpp_V36x_FO8_cae_report_master.gpp'
c,form='formatted',status='old')
ope n (unit=24,file='gpp_V36x_FO8_cae_report_master.gpp1'
c,form='formatted',status='unknown')
do 400 m=1,4000
read (23,'(a400)',end=5000) lineC
if (lineC(20:35).eq.'./ROOTNAMET01.im') then
lineC = ''
lineC(1:21) = 'open import file = ./'
lineC(22:lengthA+21) = tfile(1:lengthA)
lineC(lengthA+22:lengthA+28) = 'T01.im;'
endif
if (lineC(20:43).eq.'./ROOTNAME_disp_data.csv') then
lineC = ''
lineC(1:21) = 'open import file = ./'
lineC(22:lengthA+21) = tfile(1:lengthA)
lineC(lengthA+22:lengthA+36) = '_disp_data.csv;'
endif
if (lineC(5:25).eq.'Model Name : ROOTNAME') then
lineC = ''
lineC(1:17) = ' "Model Name : '
lineC(18:lengthA+17) = tfile(1:lengthA)
lineC(lengthA+18:lengthA+19) = '";'
endif
if (lineC(5:19).eq. 'file = ROOTNAME') then
lineC = ''
lineC(1:11) = ' file = '
lineC(12:lengthA+11) = tfile(1:lengthA)
lineC(lengthA+12:lengthA+34) = '_V36x_FO8_CAE_REPORT.ps'
endif
write (24,'(a400)') lineC
lineC = ''
400 continue
c
c
c
c
5000 stop
end
c
c
c

0 Kudos
Les_Neilson
Valued Contributor II
1,512 Views

The code compiles without error. As you are not a developer do you know the differece between compile and link? (Apologies if you do)
In the command window ifort -c title.f will compile the code.
If you omit the -c then the system will try to build an executable file byalso running the link step after the compile.

Les

0 Kudos
Steven_L_Intel1
Employee
1,512 Views
Would you please post the complete text output when you open a new "Fortran build environment" window? Did you reinstall the compiler after installing VS2008? When you installed VS2008 did you select a custom install and add in the "x64 compiler and tools" component?
0 Kudos
deecesk
Beginner
1,512 Views

Thanks all for responding. I did try the ifort -c and it worked but still need to link.

I did reinstall the complier after installing the VS2008. I did not do a custom install but did a full install I think from my memory but am getting old now so could be wrong. Is there a way to check if I have the "x64 complier and tools"

The output form the run as requested is below:

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

C:Windowssystem32>c:
'c:' is not recognized as an internal or external command,
operable program or batch file.

C:Windowssystem32>cd c:

c:>ifort title3.f
Intel Visual Fortran Compiler for applications running on IA-64, Version 10.1
Build 20080312 Package ID: w_fc_p_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 14-sep-2008 UTC.
ifort: error #10036: unable to run 'link'

c:>


0 Kudos
Steven_L_Intel1
Employee
1,512 Views
1. From Control Panel > Add or Remove Programs, select Microsoft Visual Studio 2005 (or 2008) > Change/Remove. The Visual Studio Maintenance Mode window will appear. Click Next.
2. Click Add or Remove Features
3. Under Select features to install, expand Language Tools > Visual C++
4. If the box X64 Compiler and Tools is not checked, check it, then click Update. If the box is already checked, click Cancel.

You will have to reinstall Fortran after doing this.
0 Kudos
deecesk
Beginner
1,512 Views

Brilliant problem solved. Extremely Appriected.

0 Kudos
Reply