- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm trying to build Netcdf-3.6.0 package with Intel-11.1.046 compilers on CentOS-5.2. Its failing with "catastrophic eror" during "make" command.
/opt/intel/Compiler/11.1/046/bin/intel64/icc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../libsrc -Dpgi -g -O2 -MT fort-attio.lo -MD -MP -MF .deps/fort-attio.Tpo -c fort-attio.c -o fort-attio.o
cfortran.h(138): catastrophic error: #error directive: "cfortran.h: Can't find your environment among: - MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...) - IBM AIX XL C and FORTRAN Compiler/6000 Version 01.01.0000.0000 - VAX VMS CC 3.1 and FORTRAN 5.4. - Alpha VMS DEC C 1.3 and DEC FORTRAN 6.0. - Alpha OSF DEC C and DEC Fortran for OSF/1 AXP Version 1.2 - Apollo DomainOS 10.2
(sys5.3) with f77 10.7 and cc 6.7. - CRAY - NEC SX-4 SUPER-UX - CONVEX - Sun - PowerStation Fortran with Visual C++ - HP9000s300/s700/s800 Latest test with: HP-UX A.08.07 A 9000/730 -
LynxOS: cc or gcc with f2c. - VAXUltrix: vcc,cc or gcc with f2c. gcc or cc with f77. - f77 with vcc works; but missing link magic for f77 I/O. - NO fort. None of gcc, cc or vcc generate required names. - f2c : Use #define f2cFortran, or cc -Df2cFortran - NAG f90: Use #define NAGf90Fortran, or cc -DNAGf90Fortran - Absoft UNIX F77: Use #define AbsoftUNIXFortran or
cc -DAbsoftUNIXFortran - Absoft Pro Fortran: Use #define AbsoftProFortran - Portland Group Fortran: Use #define pgiFortran - PathScale Fortran: Use #define PATHSCALE_COMPILER"
#error "cfortran.h: Can't find your environment among:\\
^
compilation aborted for fort-attio.c (code 4)
Is netcdf trying to recognize the compiler and find a suitable compiler option for the same?
Please help me to know what's the reason for this error and how to resolve.
Thanks
I'm trying to build Netcdf-3.6.0 package with Intel-11.1.046 compilers on CentOS-5.2. Its failing with "catastrophic eror" during "make" command.
/opt/intel/Compiler/11.1/046/bin/intel64/icc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../libsrc -Dpgi -g -O2 -MT fort-attio.lo -MD -MP -MF .deps/fort-attio.Tpo -c fort-attio.c -o fort-attio.o
cfortran.h(138): catastrophic error: #error directive: "cfortran.h: Can't find your environment among: - MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...) - IBM AIX XL C and FORTRAN Compiler/6000 Version 01.01.0000.0000 - VAX VMS CC 3.1 and FORTRAN 5.4. - Alpha VMS DEC C 1.3 and DEC FORTRAN 6.0. - Alpha OSF DEC C and DEC Fortran for OSF/1 AXP Version 1.2 - Apollo DomainOS 10.2
(sys5.3) with f77 10.7 and cc 6.7. - CRAY - NEC SX-4 SUPER-UX - CONVEX - Sun - PowerStation Fortran with Visual C++ - HP9000s300/s700/s800 Latest test with: HP-UX A.08.07 A 9000/730 -
LynxOS: cc or gcc with f2c. - VAXUltrix: vcc,cc or gcc with f2c. gcc or cc with f77. - f77 with vcc works; but missing link magic for f77 I/O. - NO fort. None of gcc, cc or vcc generate required names. - f2c : Use #define f2cFortran, or cc -Df2cFortran - NAG f90: Use #define NAGf90Fortran, or cc -DNAGf90Fortran - Absoft UNIX F77: Use #define AbsoftUNIXFortran or
cc -DAbsoftUNIXFortran - Absoft Pro Fortran: Use #define AbsoftProFortran - Portland Group Fortran: Use #define pgiFortran - PathScale Fortran: Use #define PATHSCALE_COMPILER"
#error "cfortran.h: Can't find your environment among:\\
^
compilation aborted for fort-attio.c (code 4)
Is netcdf trying to recognize the compiler and find a suitable compiler option for the same?
Please help me to know what's the reason for this error and how to resolve.
Thanks
export CPPFLAGS="-fPIC -DpgiFortran"
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I do not think it is ifort related, it seems that it cannot find any fortran compiler. Could you tell us the options you passed to ./configure ?
you should have something along the line ./configure F77=ifort FC=ifort ...
or
export F77=ifort
export FC=ifort
./configure ...
you should have something along the line ./configure F77=ifort FC=ifort ...
or
export F77=ifort
export FC=ifort
./configure ...
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page