Dear netcdfgroup:
Please ignore my first E-mail, this is the latest situation.
I recently upgraded my system to OS X 10.10, and intel compiler to a
new 2015 version (The only compiler I can use at this platform).
Then I found I cannot use netcdf library for reading file anymore.
I can sucessfully install the latest netcdf (netcdf-4.3.2 with
netcdf-fortran-4.4.1) or an older version netcdf3.6.3 (both of them pass make
check install).
But when I run my fortran code (The binary exe is successfully
compiled and linked) and read netcdf file as usual (good on older OS X 10.9 or
another AIX system),
It always throws "Illegal instruction: 4" and stops. But I can
successfully write a netcdf file.
Then I use gdb to debug it, the info follows:
before ! just a statement for checking
Catchpoint -2 (signal SIGSEGV), 0x0000000100002dff in file_mod::get_gs3d
(varname=..., ncid=65536, var=..., nlon=271,
nlat=271, nlev=149, ntim=1, .tmp.VARNAME.len_V$44=6) at file_mod.F90:65
65 print*,"ok"
How can I successfully read the netcdf file again?
Regards
Cheung
At 2014-11-26 17:00:33, "Cheung" <zuibeidemei@xxxxxxx> wrote:
Dear netcdfgroup:
I recently upgraded my system to OS X 10.10, and intel compiler to a
new 2015 version (The only compiler I can use at this platform).
Then I found I cannot use netcdf anymore.
For an old netcdf version, 3.6.3, I can sucessffully install it with
this new combination,
but When I run my code as usual, the program will throw "Illegal
instruction: 4" and stops.
For a latest version, netcdf-4.3.2 and netcdf-fortran-4.4.1, I can
sucessffully install the C library,
but fail to install the fortran lib. I did it as the instruction
online ( http://www.unidata.ucar.edu/netcdf/docs/netcdf-fortran-install.html).
It stops at the "make check install" with the following errors:
Please give a help.
--
Regards
Cheung
Making check in fortran
/Applications/Xcode.app/Contents/Developer/usr/bin/make check-am
make[2]: Nothing to be done for `check-am'.
Making check in nf_test
/Applications/Xcode.app/Contents/Developer/usr/bin/make nf_test tst_f77_v2
ftest tst_f90
ifort -I../fortran -I../fortran -g -c -o f03lib_f_interfaces.o
f03lib_f_interfaces.f90
ifort -DHAVE_CONFIG_H -I. -I.. -I../libsrc
-I/softwares/intel/netcdf-4.3.2/include/ -I../fortran -I../fortran -g -c -o
test_get.o test_get.F
ifort -DHAVE_CONFIG_H -I. -I.. -I../libsrc
-I/softwares/intel/netcdf-4.3.2/include/ -I../fortran -I../fortran -g -c -o
test_put.o test_put.F
ifort -DHAVE_CONFIG_H -I. -I.. -I../libsrc
-I/softwares/intel/netcdf-4.3.2/include/ -I../fortran -I../fortran -g -c -o
nf_error.o nf_error.F
ifort -DHAVE_CONFIG_H -I. -I.. -I../libsrc
-I/softwares/intel/netcdf-4.3.2/include/ -I../fortran -I../fortran -g -c -o
nf_test.o nf_test.F
ifort -DHAVE_CONFIG_H -I. -I.. -I../libsrc
-I/softwares/intel/netcdf-4.3.2/include/ -I../fortran -I../fortran -g -c -o
test_read.o test_read.F
ifort -DHAVE_CONFIG_H -I. -I.. -I../libsrc
-I/softwares/intel/netcdf-4.3.2/include/ -I../fortran -I../fortran -g -c -o
test_write.o test_write.F
ifort -DHAVE_CONFIG_H -I. -I.. -I../libsrc
-I/softwares/intel/netcdf-4.3.2/include/ -I../fortran -I../fortran -g -c -o
util.o util.F
depbase=`echo f03lib.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
icc -DHAVE_CONFIG_H -I. -I.. -I../libsrc
-I/softwares/intel/netcdf-4.3.2/include/ -g -O2 -DLONGLONG_IS_LONG -MT
f03lib.o -MD -MP -MF $depbase.Tpo -c -o f03lib.o f03lib.c &&\
mv -f $depbase.Tpo $depbase.Po
/bin/sh ../libtool --tag=F77 --mode=link ifort -I../fortran -I../fortran
-g -L/softwares/intel/netcdf-4.3.2/lib/ -o nf_test f03lib_f_interfaces.o
test_get.o test_put.o nf_error.o nf_test.o test_read.o test_write.o util.o
f03lib.o ../fortran/libnetcdff.la -lnetcdf
libtool: link: ifort -I../fortran -I../fortran -g -o .libs/nf_test
f03lib_f_interfaces.o test_get.o test_put.o nf_error.o nf_test.o test_read.o
test_write.o util.o f03lib.o -L/softwares/intel/netcdf-4.3.2/lib/
../fortran/.libs/libnetcdff.dylib
/softwares/intel/netcdf-4.3.2/lib/libnetcdf.dylib -lm -lz -lcurl
ifort -DHAVE_CONFIG_H -I. -I.. -I../libsrc
-I/softwares/intel/netcdf-4.3.2/include/ -I../fortran -I../fortran -g -c -o
tst_f77_v2.o tst_f77_v2.F
/bin/sh ../libtool --tag=F77 --mode=link ifort -I../fortran -I../fortran
-g -L/softwares/intel/netcdf-4.3.2/lib/ -o tst_f77_v2 tst_f77_v2.o
../fortran/libnetcdff.la -lnetcdf
libtool: link: ifort -I../fortran -I../fortran -g -o .libs/tst_f77_v2
tst_f77_v2.o -L/softwares/intel/netcdf-4.3.2/lib/
../fortran/.libs/libnetcdff.dylib
/softwares/intel/netcdf-4.3.2/lib/libnetcdf.dylib -lm -lz -lcurl
ifort -DHAVE_CONFIG_H -I. -I.. -I../libsrc
-I/softwares/intel/netcdf-4.3.2/include/ -I../fortran -I../fortran -g -c -o
ftest.o ftest.F
/bin/sh ../libtool --tag=F77 --mode=link ifort -I../fortran -I../fortran
-g -L/softwares/intel/netcdf-4.3.2/lib/ -o ftest ftest.o f03lib.o
../fortran/libnetcdff.la -lnetcdf
libtool: link: ifort -I../fortran -I../fortran -g -o .libs/ftest ftest.o
f03lib.o -L/softwares/intel/netcdf-4.3.2/lib/
../fortran/.libs/libnetcdff.dylib
/softwares/intel/netcdf-4.3.2/lib/libnetcdf.dylib -lm -lz -lcurl
ifort -I../fortran -I../fortran -g -c -o tst_f90.o tst_f90.f90
/bin/sh ../libtool --tag=FC --mode=link ifort -I../fortran -I../fortran -g
-L/softwares/intel/netcdf-4.3.2/lib/ -o tst_f90 tst_f90.o
../fortran/libnetcdff.la -lnetcdf
libtool: link: ifort -I../fortran -I../fortran -g -o .libs/tst_f90 tst_f90.o
-L/softwares/intel/netcdf-4.3.2/lib/ ../fortran/.libs/libnetcdff.dylib
/softwares/intel/netcdf-4.3.2/lib/libnetcdf.dylib -lm -lz -lcurl
/Applications/Xcode.app/Contents/Developer/usr/bin/make check-TESTS
../test-driver: line 107: 79632 Trace/BPT trap: 5 "$@" > $log_file 2>&1
FAIL: nf_test
PASS: create_fills.sh
../test-driver: line 107: 79659 Trace/BPT trap: 5 "$@" > $log_file 2>&1
FAIL: tst_f77_v2
../test-driver: line 107: 79678 Trace/BPT trap: 5 "$@" > $log_file 2>&1
FAIL: ftest
../test-driver: line 107: 79697 Trace/BPT trap: 5 "$@" > $log_file 2>&1
FAIL: tst_f90
make[4]: Nothing to be done for `all'.
============================================================================
Testsuite summary for netCDF-Fortran 4.4.1
============================================================================
# TOTAL: 5
# PASS: 1
# SKIP: 0
# XFAIL: 0
# FAIL: 4
# XPASS: 0
# ERROR: 0
============================================================================
See nf_test/test-suite.log
Please report to support-netcdf@xxxxxxxxxxxxxxxx
============================================================================
make[3]: *** [test-suite.log] Error 1
make[2]: *** [check-TESTS] Error 2
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1