- 积分
- 5486
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-9-23
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2011-11-2 14:36:49
|
显示全部楼层
libnetcdf_c++ 是在你编译过程中应该会产生的一个文件(shared lib)。这个文件没有生成。我刚查到这个,也没有给出解决方案。
Portland Group compilers can't build shared fortran 90 library or shared C++ library
The portland group compilers can't build netCDF shared fortran 90 library. They fail with this error:
pgf90 -I../fortran -I../f90 -I../libsrc -I../fortran -I../f90
-g -c -o tst_f90.o tst_f90.f90
/bin/sh ../libtool --mode=link pgf90 -I../fortran -I../f90 --
---I../libsrc -I../fortran -I../f90 -g -L/lib --
---o tst_f90 tst_f90.o ../fortran/libnetcdff.la --
---lm ../libsrc/libnetcdf.la
libtool: link: pgf90 -I../fortran -I../f90 -I../libsrc -I../fortran
-I../f90 -g -o .libs/tst_f90 tst_f90.o -L/lib
../fortran/.libs/libnetcdff.so -lm ../libsrc/.libs/libnetcdf.so
-Wl,-rpath
-Wl,/machine/netcdf/n362_test_9456/netcdf-3.6.3-snapshot2008081305/install/lib
tst_f90.o:(.debug_info+0x135d): undefined reference to
`..Dm_typesizes'
tst_f90.o:(.debug_info+0x136e): undefined reference to `..Dm_netcdf'
If anyone could shed some light on this, it would be most appreciated. Send comments to support-netcdf@unidata.ucar.edu.
The C++ compiler chokes on the netCDF C++ tests on a shared build:
pgCC -DHAVE_CONFIG_H -I. -I.. -I../fortran -I../libdap
-I../libsrc -g -c -o tst_failure.o tst_failure.cpp
/bin/sh ../libtool --tag=CXX --mode=link pgCC -g -o tst_failure
tst_failure.o ../cxx/libnetcdf_c++.la ../libsrc/libnetcdf.la
libtool: link: pgCC -g -o .libs/tst_failure tst_failure.o
../cxx/.libs/libnetcdf_c++.so ../libsrc/.libs/libnetcdf.so
-Wl,--rpath -Wl,/usr/local/lib
make[2]: Leaving directory `/machine/shecky/n4_new2/cxx'
make check-TESTS
make[2]: Entering directory `/machine/shecky/n4_new2/cxx'
C++ runtime abort: internal error: static object marked for
destruction more than once
/bin/sh: line 4: 8445 Aborted ${dir}$tst
FAIL: nctst
C++ runtime abort: internal error: static object marked for
destruction more than once
/bin/sh: line 4: 8468 Aborted ${dir}$tst
XFAIL: tst_failure
|
|