[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with libtool 1.9f on AIX linking f95...
From: |
Ralf Wildenhues |
Subject: |
Re: problem with libtool 1.9f on AIX linking f95... |
Date: |
Tue, 3 Jan 2006 17:37:15 +0100 |
User-agent: |
Mutt/1.5.11 |
Hi Ed,
* Ed Hartnett wrote on Sat, Dec 24, 2005 at 04:45:21PM CET:
>
> On an AIX platform, I am seeing the following error:
>
> Target "check" is up to date.
> Making check in f90
> /bin/sh ../libtool --tag=F77 --mode=compile xlf90 -I../libsrc4 -I.
> -I/home/ed/local/zasu/include -g -qsuffix=f=f90 -c -o typeSizes.lo
> typeSizes.f90
> xlf90 -I../libsrc4 -I. -I/home/ed/local/zasu/include -g -qsuffix=f=f90 -c
> typeSizes.f90 -o typeSizes.o
> ** typesizes === End of Compilation 1 ===
> 1501-510 Compilation successful for file typeSizes.f90.
> /bin/sh ../libtool --tag=F77 --mode=compile xlf90 -I../libsrc4 -I.
> -I/home/ed/local/zasu/include -g -qsuffix=f=f90 -c -o netcdf.lo netcdf.f90
> xlf90 -I../libsrc4 -I. -I/home/ed/local/zasu/include -g -qsuffix=f=f90 -c
> netcdf.f90 -o netcdf.o
> ** netcdf === End of Compilation 1 ===
> 1501-510 Compilation successful for file netcdf.f90.
> /bin/sh ../libtool --mode=link xlf90 -I../libsrc4 -I.
> -I/home/ed/local/zasu/include -g -qsuffix=f=f90 -L/home/ed/local/zasu/lib
> -o libnetcdff90.la typeSizes.lo netcdf.lo -lhdf5_hl -lhdf5
> libtool: link: unable to infer tagged configuration
> libtool: link: specify a tag with `--tag'
> make: 1254-004 The error code from the last command is 1.
>
> THis is similar to another error I previously fixed based on a
> suggestion from Ralph to put the following in Makefile.am:
>
> LTFCCOMPILE = $(LIBTOOL) --tag=F77 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
> --mode=compile $(FC) $(AM_FCFLAGS) $(FCFLAGS)
>
> And as we can see above, the compile works. Unfortunately I can't find
> documentation of LTFCCOMPILE - is there an equivilant for linking?
>
> This is with libtool 1.9f, BTW.
Now that you've moved to CVS libtool anyway: shouldn't you be able to
remove the --tag=F77 cruft, and use LT_LANG(Fortran) and
configure FC=xlf90
and everything should work fine?
(Except for the FCFLAGS_$SRCEXT which you'll still have to cater for).
Surely LTFCLINK should contain --tag=FC, too. This needs to be fixed in
Automake.
Cheers,
Ralf
- Re: problem with libtool 1.9f on AIX linking f95...,
Ralf Wildenhues <=