- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
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
- Marcas:
- Intel® Fortran Compiler
Link copiado
7 Respostas
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
ifort option -fpp (or -fpp2...)
gcc -E -traditional -x c yourfile.fpp > yourfile.f
coco
and many more, no doubt.
gcc -E -traditional -x c yourfile.fpp > yourfile.f
coco
and many more, no doubt.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
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
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
The file type .F causes ifort to invoke the fpp preprocessor automatically. Please do submit a problem report.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
That's right. All is well with 10.1.015. Thank you for your reply.

Responder
Opções do tópico
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora