[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20010524: Linux netCDF build: can't compile fortran/fort-attio.c



Rachid,

Salam Aleycum.

> To: address@hidden
> From: rachid <address@hidden>
> Subject: help
> Organization: UCAR/Unidata
> Keywords: 200105240046.f4O0kwp22694

The above message contained the following:

> Hi,
> Thank you for making this email address available for support.
> I have an HP XE3 laptop on which i have installed RH 7.0.
> The installation of Netcdf-3.5.0 fails at the "make" stage.
> I have included the information you need (as requested in the support page)
> except the file "configure.log" that i couldn't find.
> Any help please?
> Many thanks.
> Cheers,
> Rachid
> 
> -- 
> Dr. Rachid Cheddadi
> European Pollen Database         Tel: 00.33.(0)4.90.96.18.18
> Ancien Archeveche               Fax: 00.33.(0)4.90.93.98.03
> 13200 Arles -France             email: address@hidden
...

> make[1]: Entre dans le répertoire `/home/rash/netcdf-3.5.0/src'
> 
> Making `all' in directory /home/rash/netcdf-3.5.0/src/libsrc
> 
> make[2]: Entre dans le répertoire `/home/rash/netcdf-3.5.0/src/libsrc'
> gcc -c -O -I.  -O -DNDEBUG attr.c
> gcc -c -O -I.  -O -DNDEBUG dim.c
> gcc -c -O -I.  -O -DNDEBUG error.c
> gcc -c -O -I.  -O -DNDEBUG -DVERSION=`cat ../VERSION` libvers.c
> gcc -c -O -I.  -O -DNDEBUG nc.c
> gcc -c -O -I.  -O -DNDEBUG ncio.c
> gcc -c -O -I.  -O -DNDEBUG ncx.c
> gcc -c -O -I.  -O -DNDEBUG putget.c
> gcc -c -O -I.  -O -DNDEBUG string.c
> gcc -c -O -I.  -O -DNDEBUG v1hpg.c
> gcc -c -O -I.  -O -DNDEBUG v2i.c
> gcc -c -O -I.  -O -DNDEBUG var.c
> ar cru libnetcdf.a attr.o dim.o error.o libvers.o nc.o ncio.o ncx.o putget.o 
> string.o v1hpg.o v2i.o var.o
> ranlib libnetcdf.a
> make[2]: Quitte le répertoire `/home/rash/netcdf-3.5.0/src/libsrc'
> 
> Returning to directory /home/rash/netcdf-3.5.0/src
> 
> make[1]: Quitte le répertoire `/home/rash/netcdf-3.5.0/src'
> make[1]: Entre dans le répertoire `/home/rash/netcdf-3.5.0/src'
> 
> Making `all' in directory /home/rash/netcdf-3.5.0/src/fortran
> 
> make[2]: Entre dans le répertoire `/home/rash/netcdf-3.5.0/src/fortran'
> gcc -c -O -I../libsrc  -O -DNDEBUG fort-attio.c
> In file included from ncfortran.h:13,
>                  from fort-attio.c:6:
> cfortran.h:134:3: /usr/share/locale/fr_FR/LC_MESSAGES/gcc.mo
> gcc: Internal error: Erreur de segmentation (program cpp0)
> Please submit a full bug report.
> See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

The compilation of the file "fortran/fort-attio.c" apparently stopped
at line 134 of that file. Because of this and the fact that you're on
a Linux system, I suspect that you need to ensure that the C macro
"f2cFortran" is defined when you build the package.

Please try the following:

    1.  Go to the top-level source directory.

    2.  Perform steps 3 through 5 located near the end of the file
        "INSTALL.html".

    3.  Ensure that the environment variable CPPFLAGS contains the
        string "-Df2cFortran".

    4.  Perform steps 6 through 9 located near the end of the file
        "INSTALL.html".

Please let me know if this helps.

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>