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

[Support #AEO-830070]: Can't use netcdf with a new system and compiler combination



Hello Cheung,

Unfortunately I do not have a copy of the intel fortran compiler for OSX to 
test with, but I can confirm that this should not happen.  I am able to compile 
netcdf-fortran properly, and have it pass the tests, using the 'gfortran' 
compiler.  

You can install gfortran on OSX 10.10 using the 'homebrew' package manager.  
The homebrew webpage can be found here:

http://brew.sh

Once installed, you would install gfortran as follows:

    $ brew install gcc

When using homebrew, please note the following:

1. You should NOT run brew with sudo; it is designed to be run as your regular 
user.  It will provide more information about this when you install homebrew.
2. It should not overwrite your existing gcc/fortran compiler.  it did not on 
my system.  You should read any warnings it may give you.

Beyond this, I'm afraid I don't have any insight into the errors you are 
seeing.  Perhaps one of the other developers will chime in, if they see 
something I have missed.

I hope this helps,

-Ward

> 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 address@hidden
> ============================================================================
> make[3]: *** [test-suite.log] Error 1
> make[2]: *** [check-TESTS] Error 2
> make[1]: *** [check-am] Error 2
> make: *** [check-recursive] Error 1
> 
> 

Ticket Details
===================
Ticket ID: AEO-830070
Department: Support netCDF
Priority: Normal
Status: Closed