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

Segfault due to case (in)sensitivity

dominique_orban
Beginner
1,078 Views
Hello,

I am using ifort 10.0.020 under OSX Leopard 10.5.2. The filesystem is not case sensitive and that seems to be a problem with Fortran files that need preprocessing:

[dpo@pod:test-ifort]$ cat truc.F
integer function test(x)

implicit none

include 'test.inc'

integer x

test = x*p
return

end function test
[dpo@pod:test-ifort]$ cat test.inc
C This is an include file

integer p
parameter(p=2)
[dpo@pod:test-ifort]$ ifort -c truc.F
ifort: error #10106: Fatal error in /opt/intel/fc/10.0.020/bin/fpp, terminated by segmentation violation
[dpo@pod:test-ifort]$ mv truc.F truc.f
[dpo@pod:test-ifort]$ ifort -c truc.f
[dpo@pod:test-ifort]$

This last compilation step completes successfully. I need to compile software written by others that contain .F files with preprocessing directives. It appears that making Leopard case sensitive breaks other applications.

What are the options here?

Thanks,
Dominique

0 Kudos
7 Replies
TimP
Honored Contributor III
1,078 Views
ifort option -fpp (or -fpp2...)
gcc -E -traditional -x c yourfile.fpp > yourfile.f
coco

and many more, no doubt.
0 Kudos
dominique_orban
Beginner
1,078 Views
dpo@pod:test-ifort]$ ifort -c -fpp truc.F
ifort: error #10106: Fatal error in /opt/intel/fc/10.0.020/bin/fpp, terminated by segmentation violation
[dpo@pod:test-ifort]$ ifort -c -fpp2 truc.F
ifort: error #10106: Fatal error in /opt/intel/fc/10.0.020/bin/fpp, terminated by segmentation violation


I know gcc can do it. g95, gfortran, g77 and the Portland compiler can too but what's the point of having the Intel compiler then?

Dominique
0 Kudos
TimP
Honored Contributor III
1,078 Views
Sorry, I didn't notice the crash in fpp. If you see this on a current version of ifort, please submit the file in a problem report. No, I wouldn't buy an Intel compiler for pre-processor alone; the main added value of the Intel pre-processor is OpenMP support ifort.
0 Kudos
dominique_orban
Beginner
1,078 Views
Ok, I'll submit a problem report. The contents of the file is actually irrelevant. What causes the crash is the extension .F instead of .f.
0 Kudos
Steven_L_Intel1
Employee
1,078 Views
The file type .F causes ifort to invoke the fpp preprocessor automatically. Please do submit a problem report.
0 Kudos
Kevin_D_Intel
Employee
1,078 Views

The Intel Fortran 10.1 release introduced support for Leopard (10.5). The 10.0.020 version you have is not supported for use under Leopard. The 10.1 compiler/fpp handle the .F file type. Please upgrade your Intel Fortran compiler for Mac OS to the latest 10.1.015 update.

0 Kudos
dominique_orban
Beginner
1,078 Views
That's right. All is well with 10.1.015. Thank you for your reply.
0 Kudos
Reply