[ncl-install] ncl on solaris 10x86
Rick Grubin
grubin at ucar.edu
Wed Feb 13 16:30:26 MST 2008
Hi Julie
> I’m wondering if anyone able to compile NCL on Solaris 10x86.
>
I'm not aware of anyone building on this platform, perhaps someone
else will speak up! Otherwise, the NCL team does not have access to
such a system, thus we've not tried to build NCL on Solaris 10x86.
> Gcc –v
>
> gcc version 3.4.6
>
This is a somewhat old version of gcc; are you able to upgrade to v4.x?
> I tried with gcc version 3.4.6 local installation. “make
> Everthing” got following error:
>
> gcc -ansi -fPIC -O -I../../../.././include -I/usr/X11R6/include
> -DSPOOL_TRANS='"ctrans"' -DNGTMPDIR='"tmp"' -DBINDIR='"bin"' -
> DLIBDIR='"lib"' -DNCARGDIR='"ncarg"' -DSYSV -D_POSIX_SOURCE -
> D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -c ictrans.c
>
> In file included from ictrans.c:52:
>
> /usr/include/sys/resource.h:146: error: field `ru_utime' has
> incomplete type
>
> /usr/include/sys/resource.h:147: error: field `ru_stime' has
> incomplete type
>
> *** Error code 1
>
Note that the error message is complaining about a system header
file, and not a part of the NCL code base. When this sort of thing
happens, the first thing I suspect is a compiler and system
development environment that "do not play well together." Sometimes,
upgrading the compiler fixes the problem, which is why I ask about
upgrading it.
> Compile using Sun Studio 12 also got similar error:
>
> cc -Xt -O -I../../../.././include -I/usr/X11R6/include -
> DSPOOL_TRANS='"ctrans"' -DNGTMPDIR='"tmp"' -DBINDIR='"bin"' -
> DLIBDIR='"lib"' -DNCARGDIR='"ncarg"' -DSYSV -
> D_POSIX_SOURCE=199506L -D_XOPEN_SOURCE -DNeedFuncProto -c ictrans.c
>
> "/usr/include/sys/resource.h", line 146: incomplete struct/union/
> enum timeval: ru_utime
>
Again, note that the error refers to a system header file, and not
part of the NCL code base.
Is it possible that your system development environment is somehow
corrupted or not installed properly?
----
Rick Grubin NCAR/TDD/CISL/VETS
Visualization + Enabling Technologies
grubin at ucar.edu 303.497.1832
More information about the ncl-install
mailing list