[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #NAH-825145]: NETCDF4 installation problem in AIX 7.1



Hi,

> *I had set the environment variables before:*
> 
> *export CXX=xlC
> export CXXFLAGS=$CFLAGS
> export FC=xlf90
> export F77=xlf
> export FFLAGS="-qmaxmem=16384 -O -I/opt/freeware/include"
> export GCC=/usr/bin/gcc
> export LD=ld
> export LDFLAGS="-L/opt/freeware/lib64 -L/opt/freeware/lib
> --Wl,-blibpath:/opt/f
> reeware/lib64:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000"*
> 
> *
> *
> *and changed to:*
> 
> *export OBJECT_MODE=64
> export CC=xlc
> export CXX=xlC
> export FC=xlf90
> export F77=xlf*
> 
> *the new config.log file is attaching. There were no errors this time.
> *
> *
> But while using
> *
> 
> *> make check install*
> *
> the following errors persisting*
> 
> 
> *Making check in include
> Target "check" is up to date.
> Making check in libdispatch
> source='parallel.c' object='libdispatch_la-parallel.lo'
> libtool=yes  DEPDIR=.deps depmode=aix /opt/freeware/bin/bash ../depcomp
> /opt/freeware/bin/bash ../libtool  --tag=CC   --mode=compile xlc
> -DHAVE_CONFIG_H -I. -I.. -I../fortran  -I../include -I../oc     -g -c -o
> libdispatch_la-parallel.lo `test -f 'parallel.c' || echo './'`parallel.c
> ../libtool: line 886: print: command not found

This isn't specifically a netCDF problem, but rather a problem in AIX and
perhaps an old version of libtool on your AIX platform, and maybe the fact
that an older version of autoconf was used to generate the configure script
for netCDF-4.1.3.  For one solution to the problem, please see (and please 
don't take offense at the URL):

  http://justanyone.blogspot.com/2012/07/okay-so-i-may-be-stupid.html

Or you could see other solutions by Googling

  aix libtool "print: command not found"

We don't have an AIX platform on which to test the solution here, which
involved both defining another environment variable CONFIG_SHELL, using it
in invoking the configure script, and perhaps updating libtool if the
version installed on your system is too old.

Another possible work-around would be to try a more recent version of netCDF, 
such as the C netCDF library version 4.2.1.1, which used a more recent autoconf 
to generate a different configure script, but I can't say whether that will show
the same problem under AIX.

--Russ

> source='copy.c' object='libdispatch_la-copy.lo' libtool=yes
> DEPDIR=.deps depmode=aix /opt/freeware/bin/bash ../depcomp
> /opt/freeware/bin/bash ../libtool  --tag=CC   --mode=compile xlc
> -DHAVE_CONFIG_H -I. -I.. -I../fortran  -I../include -I../oc     -g -c -o
> libdispatch_la-copy.lo `test -f 'copy.c' || echo './'`copy.c
> ../libtool: line 886: print: command not found
> source='file.c' object='libdispatch_la-file.lo' libtool=yes
> DEPDIR=.deps depmode=aix /opt/freeware/bin/bash ../depcomp
> /opt/freeware/bin/bash ../libtool  --tag=CC   --mode=compile xlc
> -DHAVE_CONFIG_H -I. -I.. -I../fortran  -I../include -I../oc     -g -c -o
> libdispatch_la-file.lo `test -f 'file.c' || echo './'`file.c
> ../libtool: line 886: print: command not found
> source='dim.c' object='libdispatch_la-dim.lo' libtool=yes
> DEPDIR=.deps depmode=aix /opt/freeware/bin/bash ../depcomp
> /opt/freeware/bin/bash ../libtool  --tag=CC   --mode=compile xlc
> -DHAVE_CONFIG_H -I. -I.. -I../fortran  -I../include -I../oc     -g -c -o
> libdispatch_la-dim.lo `test -f 'dim.c' || echo './'`dim.c
> ../libtool: line 886: print: command not found
> source='att.c' object='libdispatch_la-att.lo' libtool=yes
> DEPDIR=.deps depmode=aix /opt/freeware/bin/bash ../depcomp
> /opt/freeware/bin/bash ../libtool  --tag=CC   --mode=compile xlc
> -DHAVE_CONFIG_H -I. -I.. -I../fortran  -I../include -I../oc     -g -c -o
> libdispatch_la-att.lo `test -f 'att.c' || echo './'`att.c
> ../libtool: line 886: print: command not found
> source='error.c' object='libdispatch_la-error.lo' libtool=yes
> DEPDIR=.deps depmode=aix /opt/freeware/bin/bash ../depcomp
> /opt/freeware/bin/bash ../libtool  --tag=CC   --mode=compile xlc
> -DHAVE_CONFIG_H -I. -I.. -I../fortran  -I../include -I../oc     -g -c -o
> libdispatch_la-error.lo `test -f 'error.c' || echo './'`error.c
> ../libtool: line 886: print: command not found
> source='var.c' object='libdispatch_la-var.lo' libtool=yes
> DEPDIR=.deps depmode=aix /opt/freeware/bin/bash ../depcomp
> /opt/freeware/bin/bash ../libtool  --tag=CC   --mode=compile xlc
> -DHAVE_CONFIG_H -I. -I.. -I../fortran  -I../include -I../oc     -g -c -o
> libdispatch_la-var.lo `test -f 'var.c' || echo './'`var.c
> ../libtool: line 886: print: command not found
> source='dispatch.c' object='libdispatch_la-dispatch.lo'
> libtool=yes  DEPDIR=.deps depmode=aix /opt/freeware/bin/bash ../depcomp
> /opt/freeware/bin/bash ../libtool  --tag=CC   --mode=compile xlc
> -DHAVE_CONFIG_H -I. -I.. -I../fortran  -I../include -I../oc     -g -c -o
> libdispatch_la-dispatch.lo `test -f 'dispatch.c' || echo './'`dispatch.c
> ../libtool: line 886: print: command not found
> source='nc_uri.c' object='libdispatch_la-nc_uri.lo' libtool=yes
> DEPDIR=.deps depmode=aix /opt/freeware/bin/bash ../depcomp
> /opt/freeware/bin/bash ../libtool  --tag=CC   --mode=compile xlc
> -DHAVE_CONFIG_H -I. -I.. -I../fortran  -I../include -I../oc     -g -c -o
> libdispatch_la-nc_uri.lo `test -f 'nc_uri.c' || echo './'`nc_uri.c
> ../libtool: line 886: print: command not found
> source='nclist.c' object='libdispatch_la-nclist.lo' libtool=yes
> DEPDIR=.deps depmode=aix /opt/freeware/bin/bash ../depcomp
> /opt/freeware/bin/bash ../libtool  --tag=CC   --mode=compile xlc
> -DHAVE_CONFIG_H -I. -I.. -I../fortran  -I../include -I../oc     -g -c -o
> libdispatch_la-nclist.lo `test -f 'nclist.c' || echo './'`nclist.c
> ../libtool: line 886: print: command not found
> source='ncbytes.c' object='libdispatch_la-ncbytes.lo' libtool=yes
> DEPDIR=.deps depmode=aix /opt/freeware/bin/bash ../depcomp
> /opt/freeware/bin/bash ../libtool  --tag=CC   --mode=compile xlc
> -DHAVE_CONFIG_H -I. -I.. -I../fortran  -I../include -I../oc     -g -c -o
> libdispatch_la-ncbytes.lo `test -f 'ncbytes.c' || echo './'`ncbytes.c
> ../libtool: line 886: print: command not found
> source='nchashmap.c' object='libdispatch_la-nchashmap.lo'
> libtool=yes  DEPDIR=.deps depmode=aix /opt/freeware/bin/bash ../depcomp
> /opt/freeware/bin/bash ../libtool  --tag=CC   --mode=compile xlc
> -DHAVE_CONFIG_H -I. -I.. -I../fortran  -I../include -I../oc     -g -c -o
> libdispatch_la-nchashmap.lo `test -f 'nchashmap.c' || echo './'`nchashmap.c
> ../libtool: line 886: print: command not found
> source='nclog.c' object='libdispatch_la-nclog.lo' libtool=yes
> DEPDIR=.deps depmode=aix /opt/freeware/bin/bash ../depcomp
> /opt/freeware/bin/bash ../libtool  --tag=CC   --mode=compile xlc
> -DHAVE_CONFIG_H -I. -I.. -I../fortran  -I../include -I../oc     -g -c -o
> libdispatch_la-nclog.lo `test -f 'nclog.c' || echo './'`nclog.c
> ../libtool: line 886: print: command not found
> /opt/freeware/bin/bash ../libtool --tag=CC    --mode=link xlc
> -g    -o libdispatch.la  libdispatch_la-parallel.lo  libdispatch_la-copy.lo
> libdispatch_la-file.lo  libdispatch_la-dim.lo libdispatch_la-att.lo
> libdispatch_la-error.lo libdispatch_la-var.lo  libdispatch_la-dispatch.lo
> libdispatch_la-nc_uri.lo  libdispatch_la-nclist.lo
> libdispatch_la-ncbytes.lo  libdispatch_la-nchashmap.lo
> libdispatch_la-nclog.lo    -lm -lz -lcurl
> ../libtool: line 978: print: command not found
> ../libtool: line 912: print: command not found
> make: 1254-004 The error code from the last command is 1.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 1.
> 
> 
> Stop.*
> 
> 
> 
> *
> *
> *Can you help to resolve this?*
> 
> Thanks
> 
> 
> *-- *
> ***Regards,*
> *A.R.Ragi*
> *Research Scholar
> *
> *Centre for Atmospheric Sciences
> IIT Delhi, Hauz Khas
> New Delhi, India.
> *
> **
> 
> 
> 
> address@hidden> wrote:
> 
> > > > No, any version of xlc should work OK for any version of netCDF.  What
> > you
> > > > need to do is
> > > > look at the config.log file and find the error message associated with
> > the
> > > > configure test
> > > > "checking whether the C compiler works", to see why it didn't work.  If
> > > > you can't find the
> > > > problem in the config.log file, just send that file to us and we'll
> > look
> > > > at it.
> > >
> > > *
> > > *
> > > *Attaching the config.log file. *
> >
> > Thanks, here's the relevant part of the config.log file, the result of the
> > configure script trying to compile a very simple
> > C program file containing a program that does nothing but return a program
> > status:
> >
> >   configure:4489: checking whether the C compiler works
> >   configure:4511: xlc -qmaxmem=16384 -DSYSV -D_AIX -D_AIX32 -D_AIX41
> > -D_AIX43 -D_AIX51-D_AIX52 -D_AIX53 -D_AIX61 -  D_AIX71 -D_ALL_SOURCE
> > -DFUNCPROTO=15 -O -I/opt/freeware/include  -L/opt/freeware/lib64
> > -L/opt/freeware/lib --Wl,-
> >  blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib
> > -Wl,-bmaxdata:0x80000000 conftest.c  >&5
> >   xlc: 1501-216 (W) command option
> > --Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib is not
> > recognized - passed   to ld
> >   1506-261 (W) Suboption _AIX51-D_AIX52 is not valid for option D.
> >   ld: 0706-012 The -- flag is not recognized.
> >   ld: 0706-012 The -W flag is not recognized.
> >   ld: 0706-006 Cannot find or open library file: -l
> > ,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib
> >         ld:open(): No such file or directory
> >   configure:4515: $? = 255
> >   configure:4553: result: no
> >
> > It looks like Linux-specific flags (and possibly gcc-specific) compiler
> > options are being used with xlc.
> > In particular, the "--Wl," syntax used to pass options to the loader is
> > not recognized by xlc.
> >
> > It's possible that you have some environment variables set, such as
> > CFLAGS, CPPFLAGS, LDFLAGS, LDLIBS,
> > and others, that are not appropriate for xlc.  Other possibilities are
> > that you have an alias for xlc that adds
> > some of these options, or an xlc shell script in your path that invokes
> > xlc with additional options.
> >
> > Could you look at the environment variables you have set before invoking
> > the configure script to see if they are
> > interfering with xlc?  The problem is whatever is causing these extra
> > options to be passed to xlc ...
> >
> > --Russ
> >
> > >
> > >
> > > Sometimes
> > > > it's just a simple problem, such as that the compiler is not requires a
> > > > license or it's
> > > > not configured correctly.  Make sure you can use xlc to compile a
> > simple C
> > > > program before
> > > > you try to use it to build netCDF.
> > > >
> > >
> > > *
> > > *
> > > *The xlc is perfectly compiled with simple program.*
> > >
> > >
> > >
> > > >
> > > > --Russ
> > > >
> > > > Russ Rew                                         UCAR Unidata Program
> > > > address@hidden                      http://www.unidata.ucar.edu
> > > >
> > > >
> > > >
> > > > Ticket Details
> > > > ===================
> > > > Ticket ID: NAH-825145
> > > > Department: Support netCDF
> > > > Priority: Normal
> > > > Status: Closed
> > > >
> > > >
> > >
> > >
> >
> > Russ Rew                                         UCAR Unidata Program
> > address@hidden                      http://www.unidata.ucar.edu
> >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: NAH-825145
> > Department: Support netCDF
> > Priority: Normal
> > Status: Closed
> >
> >
> 
> 
Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: NAH-825145
Department: Support netCDF
Priority: Normal
Status: Closed