[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AM_FCFLAGS not working as I expect...
From: |
Ed Hartnett |
Subject: |
Re: AM_FCFLAGS not working as I expect... |
Date: |
Wed, 09 Nov 2005 11:10:26 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) |
Albert Chin <address@hidden> writes:
> On Tue, Nov 08, 2005 at 06:43:43AM -0700, Ed Hartnett wrote:
>> Ralf Wildenhues <address@hidden> writes:
>>
>> > I forgot one thing: If you're trying to use libtool with the FC (Fortran
>> > 90/95) interface, you are likely to have to go through hoops with
>> > libtool-1.5.x, since it doesn't support it. Current CVS Libtool, which
>> > will hopefully soon be Libtool-2.0, does support FC.
>>
>> I am now using 1.5.20 everywhere, which is the most recent release, I
>> believe.
>>
>> >
>> >> I am getting make distcheck working in the hopes that by doing so, I
>> >> might in some way fix my libtool problems on AIX.
>> >
>> > Show the issues, please.
>>
>> Here it is, still can't get f95 code to compile...
>>
>> Making all in f90
>> make[2]: Entering directory `/home/bluesky/edh/netcdf-3/f90'
>> /bin/sh ../libtool --mode=compile xlf90 -I../libsrc -I. -g -c -o
>> typeSizes.lo typeSizes.f90
>> libtool: compile: unable to infer tagged configuration
>> libtool: compile: specify a tag with `--tag'
>> make[2]: *** [typeSizes.lo] Error 1
>> make[2]: Leaving directory `/home/bluesky/edh/netcdf-3/f90'
>
> Just means libtool doesn't know that xlf90 == Fortran.
>
> Does this work:
> $ cd /home/bluesky/edh/netcdf-3/f90
> $ /bin/sh ../libtool --tag=F77 --mode=compile xlf90 -I../libsrc -I. \
> -g -c -o typeSizes.lo typeSizes.f90
This worked:
/bin/sh ../libtool --tag=F77 --mode=compile xlf90 -I../libsrc -I. -g -c -o
typeSizes.lo typeSizes.f90
xlf90 -I../libsrc -I. -g -c typeSizes.f90 -o .libs/typeSizes.o
xlf90: 1501-218 file typeSizes.f90 contains an incorrect file suffix
bash-2.05$ /bin/sh ../libtool --tag=F77 --mode=compile xlf90 -qsuffix=f=f90
-I../libsrc -I. -g -c -o typeSizes.lo typeSizes.f90
xlf90 -qsuffix=f=f90 -I../libsrc -I. -g -c typeSizes.f90 -o .libs/typeSizes.o
** typesizes === End of Compilation 1 ===
1501-510 Compilation successful for file typeSizes.f90.
bash-2.05$
>
>> The Makefile.am does include:
>>
>> .f90.o:
>> $(FCCOMPILE) -c -o $@ $(AM_FCFLAGS) $(FCFLAGS_f90) $<
>>
>> .f90.obj:
>> $(FCCOMPILE) -c -o $@ $(AM_FCFLAGS) $(FCFLAGS_f90)
>> `$(CYGPATH_W) '$<'`
>>
>> .f90.lo:
>> $(LTFCCOMPILE) -c -o $@ $(FCFLAGS_f90) $<
>>
>> as you suggested. Unfortunately, that didn't seem to help libtools tag
>> problem.
>
> If --tag=F77 works, add it to the above.
But where? If I put it after $(LTFCCOMPILE) I get:
/bin/sh ../libtool --mode=compile mpxlf_r -I../libsrc -I. -g --tag=F77 -c -o
netcdf.lo netcdf.f90
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make: *** [netcdf.lo] Error 1
It looks like it has to go inside LTFCCOMPILE. How do I do that?
Thanks,
Ed
--
Ed Hartnett -- address@hidden