[Thread Prev][Thread Next][Index]

[ferret_users] FERRET compilation on Debian 7



Dear Ferret users,

I'm trying to compile FERRET from the sources on a Debian 7 machine.

$ uname -a
Linux foudre 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5'
--with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.7 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-gnu-unique-object --enable-plugin --enable-objc-gc
--with-arch-32=i586 --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.2 (Debian 4.7.2-5)
$ echo $SHELL
/bin/bash

On my 'site_specific.mk', I'm using my own locally compiled netcdf and hdf
libraries and the:
 BUILDTYPE      = x86_64-linux

I installed different packages and defined CPP_X11 variable during the
process (I might have some other useful packages from other
installations):
  $ apt-get install libx11-dev
  $ apt-get install libxmu-dev
  $ export CPP_X11=/usr/include/X11

Up to now fine, but, when I am running make:
$ make
(...)
gfortran -I. -I../fmt/cmn/ -I/home/lluis/bin/gcc_netcdf/4.3.0/include
-I/usr/lib//include -I../common -I../../fmt/cmn -I../../ppl/include
-I../../fer/common -I../../ppl/include/xgks -I../../xgks/src/lib
-Ipplinc/xgks -I../../xgks/port  -I/usr/local/include -m64 -fPIC -Dunix
-Dgfortran -DNO_OPEN_SHARED -DNO_OPEN_RECORDTYPE -DX_REFRESH
-Dreclen_in_bytes -DNO_OPEN_READONLY -DMANDATORY_FORMAT_WIDTHS
-DNO_OPEN_CARRIAGECONTROL -Dxgks -DSTAR_1_SUPPORTED -DFULL_GUI_VERSION
-DX_REFRESH -DXT_CODE  -DLINUX -DNO_PASSED_CONCAT -Dcrptd_cat_argument
-DG77_SIGNAL -DG77 -DNEED_IAND -DINTERNAL_READ_FORMAT_BUG
-DNO_PREPEND_STRING -DNO_DOUBLE_ESCAPE_SLASH -Ddouble_p  -fno-automatic
-fno-second-underscore -fdollar-ok -ffixed-line-length-132
-ffpe-trap=overflow -fdefault-real-8 -fdefault-double-8
-I../../ppl/tmap_inc -I../include -I../../fmt/cmn -I../common
-I../../ppl/include -I../../fer/common -O -DNDEBUG -c ave_scat2grid_t.F -o
ave_scat2grid_t.o
EF_mem_subsc.cmn:30.36:
    Included at ave_scat2grid_t.F:208:

      COMMON / FERRET_EF_MEM_SUBSC /
                                    1
Error: COMMON block 'ferret_ef_mem_subsc' at (1) can not have the EXTERNAL
attribute

It looks like that there are some issues on the Fortran code than the gcc
4.7.2 can not understand? I look on the code at line #208 and such line of
code is not there.

Thank you very much for our help,

Lluís

--- -- -

Dr. Lluís Fita Borrell
Laboratoire de Météorologie Dynamique, IPSL
Université Pierre et Marie curie
Tower 45-55, 2nd floor
4 place Jussieu
75252 Paris Cedex 05
France

Tel : +33 (0)1 44 27 53 47
Fax : +33 (0)1 44 27 62 72


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement