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

Segfault due to case (in)sensitivity

dominique_orban
Principiante
1.080 Visualizações
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 Respostas
TimP
Colaborador honorário III
1.080 Visualizações
ifort option -fpp (or -fpp2...)
gcc -E -traditional -x c yourfile.fpp > yourfile.f
coco

and many more, no doubt.
dominique_orban
Principiante
1.080 Visualizações
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
TimP
Colaborador honorário III
1.080 Visualizações
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.
dominique_orban
Principiante
1.080 Visualizações
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.
Steven_L_Intel1
Funcionário
1.080 Visualizações
The file type .F causes ifort to invoke the fpp preprocessor automatically. Please do submit a problem report.
Kevin_D_Intel
Funcionário
1.080 Visualizações

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.

dominique_orban
Principiante
1.080 Visualizações
That's right. All is well with 10.1.015. Thank you for your reply.
Responder