[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #YCL-827910]: seg fault in nf_test for 3.6.2
- Subject: [netCDF #YCL-827910]: seg fault in nf_test for 3.6.2
- Date: Thu, 29 Mar 2007 15:05:44 -0600
>
> Hi,
>
> RHEL4 WS 32bit, update 4
> Using:
>
> export FC=g95
> export FFLAGS="-O -dusty -w -fPIC "
> export F90=g95
> export F77=g77
> export CC=/usr/bin/gcc
> export CXX=/usr/bin/c++
>
> ./configure --prefix=/tmp/netcdf/install/usr --enable-shared
> --enable-separate-fortran --enable-docs-install
>
> make
> make check
>
> ==================
>
> The Makefile in nf_test has the "F77LD = $(F77)" changed to " F77LD =
> $(F77) --shared" just to get it to compile.
>
> Someone thought this line:
>
> snip---
>
> g77 -I../libsrc -I../f90 -O -dusty -w -fPIC -o .libs/nf_test test_get.o
> test_put.o nf_error.o nf_test.o test_read.o test_write.o util.o
> fortlib.o ../fortran/.libs/libnetcdff.so -lm
> ../libsrc/.libs/libnetcdf.so -Wl,-rpath -Wl,/tmp/netcdf/install/usr/lib
>
> snip---
>
> Would work without "--shared". Hey ho.
>
> Anyway after adding "--shared" to the Makefile I get this:
>
> snip---
>
> fgibbins@geosd507 nf_test $ make check
> make nf_test tst_f77_v2 ftest tst_f90
> make[1]: Entering directory `/tmp/netcdf-3.6.2/nf_test'
> make[1]: `nf_test' is up to date.
> make[1]: `tst_f77_v2' is up to date.
> make[1]: `ftest' is up to date.
> make[1]: `tst_f90' is up to date.
> make[1]: Leaving directory `/tmp/netcdf-3.6.2/nf_test'
> make check-TESTS
> make[1]: Entering directory `/tmp/netcdf-3.6.2/nf_test'
> *** Creating fills.nc.
> *** SUCCESS!
> PASS: create_fills.sh
> /bin/sh: line 1: 590 Segmentation fault ${dir}$tst
> FAIL: nf_test
> /bin/sh: line 1: 609 Segmentation fault ${dir}$tst
> FAIL: tst_f77_v2
> /bin/sh: line 1: 628 Segmentation fault ${dir}$tst
> FAIL: ftest
> *** Testing netCDF-3 Fortran 90 API.
> *** SUCCESS!
> PASS: tst_f90
> =========================================
> 3 of 5 tests failed
> Please report to address@hidden
> =========================================
> make[1]: *** [check-TESTS] Error 1
> make[1]: Leaving directory `/tmp/netcdf-3.6.2/nf_test'
> make: *** [check-am] Error 2
> fgibbins@geosd507 nf_test $
>
> snip---
>
> Any help would be appreciated.
>
> Yours
> Faye
>
> --
> ---------------------------------------------------------
> Faye Gibbins, Computing Officer (Infrastructure Services)
> GeoS KB; Linux, Unix, Security and Networks; 0131 6506426
> ---------------------------------------------------------
>
>
Howdy Faye!
Could you do a make distclean, and then try it without setting any environment
variables, or using any configure options, and see if it works.
If so, do another make distclean, and try with --enable-shared and see if that
works.
The idea is to set as little as possible to see if the netCDF configure script
can figure out what is needed.
Please let me know what happens...
Thanks,
Ed
Ticket Details
===================
Ticket ID: YCL-827910
Department: Support netCDF
Priority: Normal
Status: Open