libtool
[Top][All Lists]
Advanced

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

Re: hppa2.0-hp-hpux10.20 mixed Fortran and C


From: Ralf Wildenhues
Subject: Re: hppa2.0-hp-hpux10.20 mixed Fortran and C
Date: Wed, 23 Aug 2006 14:04:29 +0200
User-agent: Mutt/1.5.12 (2006-08-10)

Hello Steve,

* Steve Edwards wrote on Wed, Aug 23, 2006 at 01:54:56PM CEST:
> 
> I'm using libtool version 1.5.22 within a GNU autotools framework. I've
> just been trying to build a library on hppa2.0-hp-hpux10.20 containing
> source files in both Fortran and C and using the HP /opt/ansic/bin/cc
> and /opt/fortran/bin/fort77 compilers
> 
> The configure stage works fine:
> 
> CC=/opt/ansic/bin/cc F77=fort77 ./configure

Please use
   ./configure CC=/opt/ansic/bin/cc F77=fort77

instead, for consistency.

> However, when building, the Fortran builds correctly but the C routines
> all fail as follows (sorry - the lines may autowrap):
> 
> source='ul_beeper.c' object='ul_beeper.lo' libtool=yes \
> DEPDIR=.deps depmode=hp /usr/bin/posix/sh ../depcomp \
> /usr/bin/posix/sh ../libtool --tag=CC --mode=compile /opt/ansic/bin/cc -Ae 
> -DHAVE_CONFIG_H -I. -I. -I..  -I.. -I./../include -I..   +Z 
> 2>xlf.ul_beeper.errors  -c -o ul_beeper.lo ul_beeper.c
> mkdir .libs
>  /opt/ansic/bin/cc -Ae -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./../include -I.. 
> +Z -c ul_beeper.c -Wp,-M.deps/ul_beeper.TPlo  +Z -DPIC -o .libs/ul_beeper.o
>  /opt/ansic/bin/cc -Ae -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./../include -I.. 
> +Z -c ul_beeper.c -Wp,-M.deps/ul_beeper.TPlo -o ul_beeper.o >/dev/null 2>&1
> fort77 -I.. -I./../include -I.. -DWORDS_BIGENDIAN  +O2 +U77 +Z -C 
> 2>xlf.ul_beeper.errors   -c -o ul_beeper.lo ul_beeper.c
> make[2]: *** [ul_beeper.lo] Error 1
> 
> It creates the file ul_beeper.lo and .libs/ul_beeper.o but I cannot
> understand why the Fortran compiler is being called for the static
> library build of the C source.

This looks like there are some manual overrides in the Makefile.am file.
Could you show a small example exposing this, or show the respective
parts of the Makefile.am?  Especially I don't see at all where the
autotools should cause a file like xlf.ul_beeper.errors to be used.

Wrt. which linker is chosen, please see
  info Automake "How the Linker is Chosen"

but if I understand right, this does not have to do with your issue(?).

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]