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

Compiler error (ifort v10.0.023 and v9.1.040) with FoX 2.2-rc1

wim_van_hoydonck
Beginner
1,969 Views

Hi there,

It is impossible (at least, without workaround, see below) to compile the new DOM interface in FoX (Fortran XML library, by Toby White) due to a compiler error in the intel fortran compiler.

This has been tested and confirmed with versions 10.0.023 and 9.1.040 of the fortran compiler (on Fedora Core 6, x86_64 Pentium D processor, and Fedora 7, x86_64 Core 2 Duo processor).

This error can be reproduced by downloading the library from the following URL:
http://www.uszla.me.uk/software/source/FoX/FoX-2.2-rc1.tgz

Extract it and execute the following:

config/configure FC=ifort && make

The reported error is:

fortcom: Severe: m_dom_dom.f90, line 5679: Please report this error along with the circumstances in which it occurred in a Software Problem Report
arg%nodeValue(n+1:n+len(getData(this))) = vs_str(getData(this))
^
[ Aborting due to internal error. ]
compilation aborted for m_dom_dom.f90 (code 1)

There is a workaround for this bug.
By splitting the offending line in two:
i = n+len(getData(this))
arg%nodeValue(n+1:i) = vs_str(getData(this))
the code compiles fine.

However, this still means that their is an error in the compiler.

I am unable to log into the premier.intel.com, so I'm reporting the bug here.

Greetings,

Wim

0 Kudos
8 Replies
Steven_L_Intel1
Employee
1,969 Views
What problem are you having with Intel Premier Support?
0 Kudos
wim_van_hoydonck
Beginner
1,969 Views
When I log in, I get: You are attempting to access Intel Premier Support but you do not have a user account. If you continue to have problems, please contact Intel Customer Support. Customer Support may be contacted via email at quadsupport@mailbox.intel.com Contacted them on the above email, waiting for a response. Strange thing is that I can log in over here, so I do have a user account...
0 Kudos
Steven_L_Intel1
Employee
1,969 Views
I don't see that you have any current Fortran licenses registered. You don't need a support account to access this forum. You do have a non-commercial license from 2006 but it seems that you did not select the "support" option when you registered it. What license are you using for 10.0? Perhaps all you need to do is register it and check the box for support.

In the meantime, I will try this library code and see if I can reproduce the problem.
0 Kudos
wim_van_hoydonck
Beginner
1,969 Views
Ah, now I see what was wrong. I tried to log in with an old account (gmail), but I also have one where I registered with my email from the university. So nothing to worry about. :) I'll download the latest version of the fortran compiler and see if the error happens with that one too.
0 Kudos
wim_van_hoydonck
Beginner
1,969 Views
I just installed ifort v10.0.026 and the error still occurs. Greetings, Wim
0 Kudos
Steven_L_Intel1
Employee
1,969 Views
Yes, I can reproduce the problem. I'm working on reducing it.
0 Kudos
Steven_L_Intel1
Employee
1,969 Views
You have correctly identified the offending source statement and the workaround. Please report this to Intel Premier Support and reference T79900-CP.

I did discover a minor bug in the FoX library code. In source m_pxf_abort_flush.f90 is this:

#ifdef F2003
interface
subroutine abort(), bind(c)
end subroutine abort
end interface
#define FC_HAVE_ABORT
#endif

That comma before bind(c) should not be there.
0 Kudos
wim_van_hoydonck
Beginner
1,969 Views
MADsblionel:
You have correctly identified the offending source statement and the workaround. Please report this to Intel Premier Support and reference T79900-CP.
Done.
MADsblionel:
I did discover a minor bug in the FoX library code. In source m_pxf_abort_flush.f90 is this:

#ifdef F2003
interface
subroutine abort(), bind(c)
end subroutine abort
end interface
#define FC_HAVE_ABORT
#endif

That comma before bind(c) should not be there.
I'll contact the author.
0 Kudos
Reply