This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
> Hi, > > I Build netcdf 4.2 fortran on redhat 6.1 s390x and make check fail. > > Build with: > > CPPFLAGS="-I/usr/local/include -DgFortran" LDFLAGS=-L/usr/local/lib > LD_LIBRARY_PATH=/usr/local/lib FC=mpif90 CXX=mpicxx CC=mpicc ./configure > make > > Erro of make check: > > make check-TESTS > make[2]: Entrando no diretório `/usr/src/netcdf-fortran-4.2/nf_test' > > *** Testing netCDF-3 Fortran 77 API. > NetCDF version: 4.2.1.1 of Aug 16 2012 20:58:36 > $ > /bin/sh: line 5: 33196 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: nf_test > > *** Copying file with fill values. > *** SUCCESS! > PASS: create_fills.sh > I'll need more information. It looks like you are getting a segmentation violation running the shell script nf_test/nf_test, but the shell script nf_test/create_fills.sh runs successfully. I don't know why nf_test is getting a segmentation violation. Could you please send the output from running the following command in that directory (netcdf-4.2.1.1/nf_test): /bin/sh -x ./nf_test The expected output (and what I get) is: + sed_quote_subst='s/\([`"$\\]\)/\\\1/g' + test -n '' + case `(set -o) 2>/dev/null` in + set -o posix + BIN_SH=xpg4 + export BIN_SH + DUALCASE=1 + export DUALCASE + unset CDPATH + relink_command='(cd /home/russ/nf/netcdf-fortran-4.2/nf_test; { test -z "${LIBRARY_PATH+set}" || unset LIBRARY_PATH || { LIBRARY_PATH=; export LIBRARY_PATH; }; }; { test -z "${COMPILER_PATH+set}" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z "${GCC_EXEC_PREFIX+set}" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z "${LD_RUN_PATH+set}" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; { test -z "${LD_LIBRARY_PATH+set}" || unset LD_LIBRARY_PATH || { LD_LIBRARY_PATH=; export LD_LIBRARY_PATH; }; }; PATH=/home/russ/bin:/opt/epd/bin:/opt/pgi/bin:/usr/local/bin:/usr/bin:/bin:/upc/share/ed/local/buddy/bin:/opt/csw/gcc4/bin:/usr/ccs/bin:/upc/netcdf/bin:/upc/udunits/bin:/upc/decoders/bin:/usr/local/ldm/bin:/usr/bin/X11:/usr/proc/bin:/usr/sbin:/sbin:/usr/local/hosts:/usr/perl5/bin:/usr/ucb; export PATH; gfortran -I../fortran -I../f90 -g -O2 -o $progdir/$file test_get.o test_put.o nf_error.o nf_t est.o test_read.o test_write.o util.o fortlib.o ../fortran/.libs/libnetcdff.so -lnetcdf -Wl,-rpath -Wl,/home/russ/nf/netcdf-fortran-4.2/fortran/.libs -Wl,-rpath -Wl,/usr/local/lib)' + test '' = '%%%MAGIC variable%%%' + test '' '!=' '%%%MAGIC variable%%%' + file=./nf_test + ECHO='printf %s\n' + lt_option_debug= + func_parse_lt_options ./nf_test + lt_script_arg0=./nf_test + shift + test -n '' ++ printf '%s\n' ./nf_test ++ /bin/sed 's%/[^/]*$%%' + thisdir=. + test x. = x./nf_test ++ ls -ld ./nf_test ++ /bin/sed -n 's/.*-> //p' + file= + test -n '' + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=no + test no = yes ++ cd . ++ pwd + absdir=/home/russ/nf/netcdf-fortran-4.2/nf_test + test -n /home/russ/nf/netcdf-fortran-4.2/nf_test + thisdir=/home/russ/nf/netcdf-fortran-4.2/nf_test + program=lt-nf_test + progdir=/home/russ/nf/netcdf-fortran-4.2/nf_test/.libs + test '!' -f /home/russ/nf/netcdf-fortran-4.2/nf_test/.libs/lt-nf_test ++ ls -1dt /home/russ/nf/netcdf-fortran-4.2/nf_test/.libs/lt-nf_test /home/russ/nf/netcdf-fortran-4.2/nf_test/.libs/../lt-nf_test ++ /bin/sed 1q + file=/home/russ/nf/netcdf-fortran-4.2/nf_test/.libs/lt-nf_test + test X/home/russ/nf/netcdf-fortran-4.2/nf_test/.libs/lt-nf_test '!=' X/home/russ/nf/netcdf-fortran-4.2/nf_test/.libs/lt-nf_test + test -f /home/russ/nf/netcdf-fortran-4.2/nf_test/.libs/lt-nf_test + test '' '!=' '%%%MAGIC variable%%%' + func_exec_program + func_exec_program_core + test -n '' + exec /home/russ/nf/netcdf-fortran-4.2/nf_test/.libs/lt-nf_test *** Testing netCDF-3 Fortran 77 API. NetCDF version: 4.2.1 of Aug 3 2012 09:40:57 $ *** testing nf_strerror ... *** testing nf_open ... *** testing nf_close ... *** testing nf_inq ... *** testing nf_inq_dimid ... *** testing nf_inq_dim ... *** testing nf_inq_dimlen ... *** testing nf_inq_dimname ... ... Thanks! --Russ > *** Testing netCDF v2 api for F77. > /bin/sh: line 5: 33250 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: tst_f77_v2 > > *** Testing definition of netCDF-4 vars from Fortran 77. > /bin/sh: line 5: 33293 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: ftst_vars > > *** Testing netCDF-4 vars from F77 with new types. > /bin/sh: line 5: 33338 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: ftst_vars2 > > *** Testing enum and opaque types. > /bin/sh: line 5: 33383 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: ftst_vars3 > > *** Testing VLEN types. > /bin/sh: line 5: 33428 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: ftst_vars4 > > *** Testing compound types. > /bin/sh: line 5: 33473 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: ftst_vars5 > > *** Testing fill values. > /bin/sh: line 5: 33518 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: ftst_vars6 > > *** Testing netCDF-4 compound type from F77. > /bin/sh: line 5: 33563 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: ftst_types > > *** Testing netCDF-4 compound types from F77 some more. > /bin/sh: line 5: 33608 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: ftst_types2 > > *** Testing netCDF-4 user-defined types and groups. > /bin/sh: line 5: 33653 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: ftst_types3 > > *** Testing netCDF-4 groups from F77. > /bin/sh: line 5: 33698 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: ftst_groups > > *** Testing definition of netCDF-4 vars from Fortran 90. > /bin/sh: line 5: 33743 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: f90tst_vars > > *** Testing new netCDF-4 types from Fortran 90. > /bin/sh: line 5: 33787 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: tst_types > > *** Testing netCDF-4 64-bit integer types from Fortran 90. > /bin/sh: line 5: 33831 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: tst_types2 > PASS: f90tst_vars_vlen > > *** testing simple netCDF-4 file. > /bin/sh: line 5: 33916 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: tst_f90_nc4 > > *** Testing netCDF-4 groups from Fortran 90. > /bin/sh: line 5: 33960 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: f90tst_grps > > *** Testing netCDF-4 fill values. > /bin/sh: line 5: 34004 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: f90tst_fill > > *** Testing netCDF-4 fill values with unlimited dimension. > /bin/sh: line 5: 34048 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: f90tst_fill2 > > *** Testing definition of netCDF-4 vars from Fortran 90. > /bin/sh: line 5: 34092 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: f90tst_vars3 > > *** Testing definition of netCDF-4 vars from Fortran 90. > /bin/sh: line 5: 34136 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: f90tst_vars4 > > *** Testing definition of netCDF-4 vars from Fortran 90. > /bin/sh: line 5: 34180 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: f90tst_vars2 > > *** Testing v2 fortran API with netCDF-4. > /bin/sh: line 5: 34224 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: ftst_v2 > > *** Testing netCDF-2 Fortran 77 API. > *** testing nccre ... > /bin/sh: line 5: 34267 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: ftest > > *** Testing netCDF-3 Fortran 90 API. > /bin/sh: line 5: 34311 Falha de segmentação (imagem do núcleo > gravada)${dir}$tst > FAIL: tst_f90 > ================================================ > 25 of 27 tests failed > Please report to address@hidden > ================================================ > make[2]: ** [check-TESTS] Erro 1 > make[2]: Saindo do diretório `/usr/src/netcdf-fortran-4.2/nf_test' > make[1]: ** [check-am] Erro 2 > make[1]: Saindo do diretório `/usr/src/netcdf-fortran-4.2/nf_test' > make: ** [check-recursive] Erro 1 > > thanks > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: ACS-482645 Department: Support netCDF Priority: Normal Status: Closed