[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 19991027: Solaris 7
- Subject: Re: 19991027: Solaris 7
- Date: Wed, 27 Oct 1999 12:43:15 -0600
Martin,
> To: address@hidden
> From: address@hidden (Martin Ridal)
> Subject: Solaris 7
> Organization: .
> Keywords: 199910251557.JAA00350
In the above message, you wrote:
> I am trying to build the netcdf3.4 on a 64 bit solaris 7 by adding
> the flags -xtarget=native -xarch=v9
> Somehow it does not work.
> Hope you can help.
>
>
> Martin Ridal
>
>
>
> Here is the requierd information:
>
> uname -a: SunOS odin3 5.7 Generic_106541-02 sun4u sparc SUNW,Ultra-4
>
> VERSION contains: 3.4
>
> This is how I modified the macros.make file:
>
> # Preprocessing:
> M4 = m4
> M4FLAGS = -B10000
> CPP = cc -E
> CPPFLAGS = $(INCLUDES) $(DEFINES) -DNDEBUG
> FPP = fpp
> FPPFLAGS = -D__SUNPRO_F90
> CXXCPPFLAGS = $(INCLUDES) $(DEFINES)
>
>
> # Compilation:
> CC = /opt/SUNWspro/bin/cc
> CXX =
> FC = /opt/SUNWspro/bin/f90
> CFLAGS = -O -xtarget=native -xarch=v9
> CXXFLAGS = $(CFLAGS)
> FFLAGS = -O -xtarget=native -xarch=v9
> CC_MAKEDEPEND = cc -xM
> COMPILE.c = $(CC) -c $(CFLAGS) $(CPPFLAGS)
> COMPILE.cxx = $(CXX) -c $(CXXFLAGS) $(CXXCPPFLAGS)
> COMPILE.f = $(FC) -c $(FFLAGS)
> # The following command isn't available on some systems; therefore, the
> # `.F.o' rule is relatively complicated.
> COMPILE.F = $(COMPILE.f) $(FPPFLAGS)
>
>
> The files make.log and test.log are attached and a sample of the output
> when testing is given here.
>
>
> *** Testing nc_put_varm_schar ... 269 good comparisons. ok
> *** Testing nc_put_varm_short ... 682 good comparisons. ok
> *** Testing nc_put_varm_int ... 1189 good comparisons. ok
> *** Testing nc_put_varm_long ...
> FAILURE at line 6471 of test_put.c: range error: status = 0
> FAILURE at line 6471 of test_put.c: range error: status = 0
> FAILURE at line 6471 of test_put.c: range error: status = 0
> FAILURE at line 614 of test_put.c: Var value read not that expected
> FAILURE at line 614 of test_put.c: Var value read not that expected
> FAILURE at line 614 of test_put.c: Var value read not that expected
> FAILURE at line 614 of test_put.c: Var value read not that expected
> FAILURE at line 614 of test_put.c: Var value read not that expected
Please try the following:
1. Put the file "macros.make" back the way it was.
2. Perform steps 2 through 4 near the end of the INSTALL file.
3. Set the following environment variables to the indicated values:
CC=/opt/SUNWspro/bin/cc
CPPFLAGS=
CFLAGS='-g -xtarget=native -xarch=v9'
FC=/opt/SUNWspro/bin/f90
FFLAGS="-g -w -xtarget=native -xarch=v9"
CXX=/opt/SUNWspro/bin/CC
You may use an optimization option in place of the "-g" above.
If you do, then you should also set CPPFLAGS to "-DNDEBUG".
4. Ensure that the environment variables FPP and COMPILE_F are
undefined.
5. Perform steps 6 through 9 near the end of the INSTALL file.
Don't worry about failures in the nf_test/ subdirectory. They
merely indicate a problem with the testing code.
Please let me know if this helps.
--------
Steve Emmerson <http://www.unidata.ucar.edu>