This sounds like a bug in the intel compiler that was discussed on this list a couple of years ago:
* Intel bug report: http://software.intel.com/en-us/forums/showthread.php?t=77847&o=a&s=lr
* Discussion (mixed in with some issues about windows file names): http://groups.google.com/group/fox-discuss/browse_thread/thread/9f723d21280319e9?hl=en
I believe this particular bug has been fixed. I think increasing the maximum stack size is a potential work around if you cannot upgrade. If you do upgrade it's worth knowing that there are, apparently, additional bugs in ifort 12.0 and 12.1 (segfaults, bus errors and ICEs from the generic procedures in fox_m_fsys_format.F90. I've been sent a work around for these but have yet to merge it. Prod me if this turns out to be a problem.
Best wishes,
Andrew
> --
> You received this message because you are subscribed to the Google Groups "FoX-discuss" group.
> To post to this group, send email to fox-d...@googlegroups.com.
> To unsubscribe from this group, send email to fox-discuss...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/fox-discuss?hl=en.
>
--
Andrew Walker <andrew...@bris.ac.uk>
http://www1.gly.bris.ac.uk/~walker/
phone: 0117 9545698
Department of Earth Sciences,
University of Bristol,
Wills Memorial Building,
Queen’s Road,
Bristol, BS8 1RJ, UK
Hi Andrew, I've forwarded Nate a copy of the ifort project that I'm using here. This is running under a VisualStudio 2010 + Intel(R) Visual Fortran Compiler XE 12.1.3.300 (also, confusingly labelled by Intel as Version 2011 (Update 9)) environment. Its a slightly modified code branch merged with the most recent version of FoX from github labelled as 4.1.2. I've encountered various issues with the Intel compiler, including possibly the class of problem you're alluding to with fox_m_fsys_format.F90 In this case under the latest intel release, the len() interface is not resolving correctly, so calls like this one in str_real_dp_array for example � pure�function�str_real_dp_array(xa)�result(s) ����real(dp),�dimension(:),�intent(in)�::�xa �� character(len=len(xa))�::�s need to be resolved explicitly like so ���� character(len=str_real_dp_array_len(xa))�::�s As mentioned in the past, I'm happy to forward a copy of the branched code for you to consider merging with the FoX mainline. Regards, Shane Clauson
phone: 0117 9545698 Department of Earth Sciences, University of Bristol, Wills Memorial Building, Queen�s Road, Bristol, BS8 1RJ, UK
It would be great if you could forward me a copy of the branched code.
(The len interface is the cause of the issue with ifort - leading to a run
time crash I think - but apparently 'make debug' results in an internal
compiler error and I don't know if this is related.) From my point of view
the best way to do this is as a github pull request. However just sending
a copy of the code that I can diff would be almost as easy to deal with.
Cheers,
Andrew
On Thu, March 22, 2012 10:27 am, Shane Clauson wrote:
> Hi Andrew,
> I've forwarded Nate a copy of the ifort project that I'm using here.
> This is running under a VisualStudio 2010 + Intel(R) Visual Fortran
> Compiler XE 12.1.3.300
> (also, confusingly labelled by Intel as Version 2011 (Update 9))
> environment.
>
> Its a slightly modified code branch merged with the most recent version of
> FoX from
> github labelled as 4.1.2.
>
> I've encountered various issues with the Intel compiler, including
> possibly the class of problem you're alluding to with
> fox_m_fsys_format.F90
> In this case under the latest intel release, the len() interface is not
> resolving correctly,
> so calls like this one in str_real_dp_array for example
>
> pure function str_real_dp_array(xa)result(s)
> real(dp),dimension(:),intent(in) :: xa
> character(len=len(xa)) :: s
>
> need to be resolved explicitly like so
>
> character(len=str_real_dp_array_len(xa)) :: s
>> Queenï¿œs Road,
>> Bristol, BS8 1RJ, UK
>>
>>
>>
>>
>>
>>
>
>
--
-->> Queen s Road,
>> Bristol, BS8 1RJ, UK
>>
>>
>>
>>
>>
>>
>
>