[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #QPK-184863]: Can't build netcdf4 on AIX Power6 machine (Was: [JIRA] Commented: (BP-32) netcdf + ncview)
- Subject: [netCDF #QPK-184863]: Can't build netcdf4 on AIX Power6 machine (Was: [JIRA] Commented: (BP-32) netcdf + ncview)
- Date: Tue, 11 Jan 2011 15:14:47 -0700
Hi Leigh,
Sorry to have taken so long to respond to your question!
> Can't make it through the conifgure script.
>
> Could you please let me know what, if any, environment variables you set
> (i.e., compilers & flags) as well as what you passed to configure.
I don't have access to an up-to-date AIX platform for testing, but I
think the easiest way to build 64-bit libraries and executables is to
set the environment variable
OBJECT_MODE=64
before building. At least ar respects that environment setting, and
reportedly xlf and xlc as well. That was reported as working here:
http://www.unidata.ucar.edu/netcdf/docs/other-builds.html#aix_4_1_1
I hope this helps.
--Russ
> bp-login2:/u/home/ac/orf/build/netcdf-4.1.2-beta2-snapshot2010113009% echo
> $FC $FFLAGS $CC $CFLAGS
> xlf -q64 cc -q64
>
> ./configure --with-hdf5=/opt/hdf5-1.8.5-serial64 --enable-netcd4
> --prefix=/u/home/ac/orf/netcdf4
>
> [...]
>
> checking nm flags...
> checking for C-equivalent to Fortran routine "SUB"... 0654-210 conftest.o is
> not valid in the current object file mode.
> Use the -X option to specify the desired object mode.
>
> In my experience this typically means ar isn't passing -X64. For some
> bizarre reason ar on AIX requires that you always specify -X 64 or -X 32.
>
> In config.log:
>
> configure:22741: checking for C-equivalent to Fortran routine "SUB"
> configure:22748: xlf -c -q64 conftest.f
> ** _main === End of Compilation 1 ===
> 1501-510 Compilation successful for file conftest.f.
> configure:22751: $? = 0
> configure:22759: error: not found
>
> I hate AIX.
>
> Leigh
>
> address@hidden> wrote:
>
> > > Dennis / Jason:
> > >
> > > I am putting you two in touch with one another with the hope that you can
> > > work together to get netCDF built on blueprint. Not being able to have
> > > netCDF is impacting my research. I know that it is possible to build
> > netcdf
> > > on a Power6 AIX machine - bluefire at NCAR has it. Perhaps if someone
> > from
> > > Unidata were given a temporary account on blueprint they could get this
> > to
> > > work.
> > >
> > > I reiterate I am wishing netcdf4 to be built. I tried building regular
> > > netCDF and was unable to build it either.
> > >
> > > I hope you are able to help me out - this really shouldn't be so hard.
> > > netCDF is probably the most common data format used in meteorology!
> > >
> > > Leigh
> >
> > Howdy Leigh!
> >
> > I believe the daily snapshot release now builds cleanly on AIX:
> > ftp://ftp.unidata.ucar.edu/pub/netcdf/snapshot/netcdf-4-daily.tar.gz
> >
> > Please let me know if this doesn't work for you.
> >
> > Thanks,
> >
> > Ed
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: QPK-184863
Department: Support netCDF
Priority: Critical
Status: Closed