[Wrf-users] Solaris and WRFV3

Dr Robert Pasken rpasken at eas.slu.edu
Sat Sep 26 11:31:06 MDT 2009


I am attempting to build WRF-V3 on an OpenSolaris based cluster and have 
no luck at all. I have both the SunStudio compilers and the gnu compiler
suite available. WRF-V2 builds in the single processor, openmp and mpich 
with and without nesting without difficulty. Performance with OpenSolaris 
and the SunStudio compilers is significantly better than linux/pgi on the 
same hardware (>15%) so I would prefer to stay with OpenSolaris/Sunstudio/
I have tried compiling WRF-V3 with both compiler suites. The errors below
are the same for both compiler (after translation to/from gnu/sun).

gcc  -c -g gen_comms.c
gen_comms.c: In function 'gen_halos':
gen_comms.c:151: warning: passing argument 3 of 'index_with_firstelem' 
makes integer from pointer without a cast
gen_comms.c:151: warning: passing argument 4 of 'index_with_firstelem' 
from incompatible pointer type
gen_comms.c:151: warning: passing argument 5 of 'index_with_firstelem' 
from incompatible pointer type
gen_comms.c:151: error: too few arguments to function 'index_with_firstelem'
gen_comms.c: In function 'gen_periods':
gen_comms.c:311: warning: passing argument 3 of 'index_with_firstelem' 
makes integer from pointer without a cast
gen_comms.c:311: warning: passing argument 4 of 'index_with_firstelem' 
from incompatible pointer type


continues for many more screens.

I can see the errors occurring with SunStudio as the Sun cc is a 
C-compiler and gcc has it's own dialect that may/probably was used
when writing the gen_* routines, but I would expect shifting to the
gnu compilers would fix this problem. It seems strange that these errors
don't occur under linux, but do under Solaris when compiling with
gcc/gfortran.

Suggests welcome

Cheers
RWP


More information about the Wrf-users mailing list