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

Equivalence and unresolved reference

mpv1
Beginner
1,347 Views

Hello,

I'm trying to compile a module history.F90 containing the following lines:

character(len=10) :: fincl(pflds,ptapes)

character(len=max_chars) :: fincllonlat(pflds,ptapes)

character*10 fincl1(pflds)
character(len=max_chars) fincl1lonlat(pflds)

equivalence (fincl1,fincl(1,1))
equivalence (fincl1lonlat,fincllonlat(1,1))

Array 'fincllonlat' is used by some runtime_opts.F90 file and when linking I get the message *.../runtime_opts.F90:1609: undefined reference to `history_mp_fincllonlat_'*. I use ifort 8.1(packageid l_fce_pc_8.1.023) on Itanium.

'nm' tells me there is no 'history_mp_fincllonlat_' in mod.F90

but 'history_mp_fincl_' and 'history_mp_fincl1lonlat' are there.

Is this a compiler bug or somthing? I didn't find any usefull info in for_ug1,2.pdf and for_lang.pdf so maybe there are some other sources there I could get info about the problem to understand why it happens?

Thanks,

Pavel

 

0 Kudos
7 Replies
TimP
Honored Contributor III
1,347 Views
Just to confirm: you're using the EM64T compiler as a cross compiler from Itanium? You have more confidence than I.
Recent compilers (roughly, those already isssued, with a build date in October) have had problems with EQUIVALENCE.

Message Edited by tim18 on 11-01-2004 03:08 AM

0 Kudos
mpv1
Beginner
1,347 Views
Thanx for the quick response. I am sorry for my mistake. Of course you are right this is a Nocona cluster I work on. But I still don't knowany solution to my problem
0 Kudos
Steven_L_Intel1
Employee
1,347 Views
If the problem is still there with the latest update, please report the problem to Premier Support.
0 Kudos
mpv1
Beginner
1,347 Views
Tell me pleasethe number of the latest update
Thanx,
Pavel
0 Kudos
Steven_L_Intel1
Employee
1,347 Views
Well, for Itanium, you should be using l_fc_pc_8.1.019. The compiler you are using, l_fce_8.1.023,is intended for Intel EM64T systems and is not supported on Itanium systems. For Itanium, do not use the packages with "l_fce" - use "l_fc" instead. It may be that the problems you are having are due to this mismatch.
0 Kudos
mpv1
Beginner
1,347 Views
Thanx a lot,
but as I replied above I work on EM64T not on Itanium (that was my mistake in the first post)
0 Kudos
Steven_L_Intel1
Employee
1,347 Views
Oh, right. In that case, you have the latest compiler.
0 Kudos
Reply