Issue 11 in opencurrent: 31% make error

27 views
Skip to first unread message

openc...@googlecode.com

unread,
Oct 23, 2010, 4:43:11 PM10/23/10
to opencurr...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 11 by zagoruy...@mail.ru: 31% make error
http://code.google.com/p/opencurrent/issues/detail?id=11

Trying to make opencurrent-1.1.0

on 31% it says
[ 31%] Building CXX object
ocustorage/CMakeFiles/ocustorage.dir/gridnetcdf.cpp.o
/home/bravo/opencurrent-1.1.0/src/ocustorage/gridnetcdf.cpp: In member
function ‘bool ocu::NetCDFGrid3DWriter::open(const char*, int, int, int,
float, float, float)’:
/home/bravo/opencurrent-1.1.0/src/ocustorage/gridnetcdf.cpp:204: error:
‘NC_NETCDF4’ was not declared in this scope
/home/bravo/opencurrent-1.1.0/src/ocustorage/gridnetcdf.cpp: In member
function ‘bool ocu::NetCDFGrid3DWriter::define_variable(const char*,
nc_type, ocu::GridStaggering, float, float, float)’:
/home/bravo/opencurrent-1.1.0/src/ocustorage/gridnetcdf.cpp:281: error:
‘nc_def_var_deflate’ was not declared in this scope
/home/bravo/opencurrent-1.1.0/src/ocustorage/gridnetcdf.cpp: In member
function ‘bool ocu::NetCDFGrid3DReader::open(const char*)’:
/home/bravo/opencurrent-1.1.0/src/ocustorage/gridnetcdf.cpp:492: error:
‘nc_inq_varids’ was not declared in this scope

Maybe it's because of new CUDA 3.2? or i'm just linux noob
my system and card:
ubuntu 10.04
GF104 geforce 460, sm_21
netcdf-4.1.1 compiled by myself

JonCohen

unread,
Nov 5, 2010, 11:35:17 AM11/5/10
to opencurrent-users
Sorry i didn't respond to this sooner.

Looks to me like a problem with NetCDF. Please try setting
OCU_NETCDF4_SUPPORT_ENABLED to FALSE in your System.cmake file.

For some reason, the 4.x builds of NetCDF are supposed to support
these new variables (and on some platforms, they do), but the standard
version that comes with Ubuntu apt-get appears to be broken in this
regard.

-Jon

On Oct 23, 4:43 pm, opencurr...@googlecode.com wrote:
> Status: New
> Owner: ----
> Labels: Type-Defect Priority-Medium
>
> New issue 11 by zagoruy...@mail.ru: 31% make errorhttp://code.google.com/p/opencurrent/issues/detail?id=11

openc...@googlecode.com

unread,
Jan 19, 2011, 8:49:58 AM1/19/11
to opencurr...@googlegroups.com

Comment #1 on issue 11 by MarcelSc...@googlemail.com: 31% make error
http://code.google.com/p/opencurrent/issues/detail?id=11

I've got the same problem.

...
Scanning dependencies of target ocustorage
[ 27%] Building CXX object
ocustorage/CMakeFiles/ocustorage.dir/grid2dhost.cpp.o
[ 28%] Building CXX object ocustorage/CMakeFiles/ocustorage.dir/grid3d.cpp.o
[ 30%] Building CXX object
ocustorage/CMakeFiles/ocustorage.dir/grid3dops.cpp.o
[ 31%] Building CXX object
ocustorage/CMakeFiles/ocustorage.dir/gridnetcdf.cpp.o
/home/marcel/Desktop/opencurrent/src/ocustorage/gridnetcdf.cpp: In member
function ‘bool ocu::NetCDFGrid3DWriter::open(const char*, int, int, int,
float, float, float)’:
/home/marcel/Desktop/opencurrent/src/ocustorage/gridnetcdf.cpp:204: error:
‘NC_NETCDF4’ was not declared in this scope
/home/marcel/Desktop/opencurrent/src/ocustorage/gridnetcdf.cpp: In member
function ‘bool ocu::NetCDFGrid3DWriter::define_variable(const char*,
nc_type, ocu::GridStaggering, float, float, float)’:
/home/marcel/Desktop/opencurrent/src/ocustorage/gridnetcdf.cpp:281: error:
‘nc_def_var_deflate’ was not declared in this scope
/home/marcel/Desktop/opencurrent/src/ocustorage/gridnetcdf.cpp: In member
function ‘bool ocu::NetCDFGrid3DReader::open(const char*)’:
/home/marcel/Desktop/opencurrent/src/ocustorage/gridnetcdf.cpp:492: error:

openc...@googlecode.com

unread,
Jan 19, 2011, 9:04:12 AM1/19/11
to opencurr...@googlegroups.com

Comment #2 on issue 11 by zagoruy...@gmail.com: 31% make error
http://code.google.com/p/opencurrent/issues/detail?id=11

I turned off NETCDF4 support and it compiles ok
It seems that cmake unable to find netcdf4 libraries

openc...@googlecode.com

unread,
Jan 19, 2011, 9:19:32 AM1/19/11
to opencurr...@googlegroups.com

Comment #3 on issue 11 by MarcelSc...@googlemail.com: 31% make error
http://code.google.com/p/opencurrent/issues/detail?id=11

Thanks for the quick reply! Where can I set the flag to disable netcdf?

I solved the above issue by compiling and installing a current version of
netCDF and setting the cmake build parameters accordingly. Now I get the
following error during the build process:

...

Scanning dependencies of target incompress
[ 65%] Building CXX object apps/CMakeFiles/incompress.dir/incompress.cpp.o
Linking CXX executable incompress
../ocustorage/libocustorage.a(gridnetcdf.cpp.o): In function
`ocu::NetCDFGrid3DWriter::define_variable(char const*, int,
ocu::GridStaggering, float, float, float)':
gridnetcdf.cpp:(.text+0x14cb): undefined reference to `nc_def_var_deflate'
../ocustorage/libocustorage.a(gridnetcdf.cpp.o): In function
`ocu::NetCDFGrid3DReader::open(char const*)':
gridnetcdf.cpp:(.text+0x23b3): undefined reference to `nc_inq_varids'
gridnetcdf.cpp:(.text+0x2416): undefined reference to `nc_inq_varids'
collect2: ld returned 1 exit status


openc...@googlecode.com

unread,
Jan 19, 2011, 9:34:55 AM1/19/11
to opencurr...@googlegroups.com

Comment #4 on issue 11 by jcohen.p...@gmail.com: 31% make error
http://code.google.com/p/opencurrent/issues/detail?id=11

You can set the variable
OCU_NETCDF4_SUPPORT_ENABLED
to
FALSE
and it will disable all NetCDF support.

There is something messed up with the apt-get version of netcdf4. As far
as I can tell, it is not actually the version 4 api, which is what causes
this issue.

The solution is to replace netcdf support with something like HDF5, but I
haven't had time to do that yet.

-Jon


openc...@googlecode.com

unread,
Jan 19, 2011, 9:38:57 AM1/19/11
to opencurr...@googlegroups.com

Comment #5 on issue 11 by MarcelSc...@googlemail.com: 31% make error
http://code.google.com/p/opencurrent/issues/detail?id=11

All right, just found the option in System.cmake. The build process now
finished successfully.

Thanks
Marcel

openc...@googlecode.com

unread,
Jan 19, 2011, 9:43:00 AM1/19/11
to opencurr...@googlegroups.com

Comment #6 on issue 11 by jcohen.p...@gmail.com: 31% make error
http://code.google.com/p/opencurrent/issues/detail?id=11

Sorry, I meant to say that setting
OCU_NETCDF_ENABLED
to
FALSE
disables all netcdf support.

You can also tell OpenCurrent to use the version 3.6 API, which should
work, via the variable I (incorrectly) provided above:
OCU_NETCDF4_SUPPORT_ENABLED
to
FALSE

-Jon


openc...@googlecode.com

unread,
Feb 21, 2011, 6:58:38 PM2/21/11
to opencurr...@googlegroups.com
Updates:
Status: Done

Comment #7 on issue 11 by jcohen.p...@gmail.com: 31% make error
http://code.google.com/p/opencurrent/issues/detail?id=11

(No comment was entered for this change.)

Reply all
Reply to author
Forward
0 new messages