libtool
[Top][All Lists]
Advanced

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

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


From: Steve Edwards
Subject: hppa2.0-hp-hpux10.20 mixed Fortran and C
Date: Wed, 23 Aug 2006 12:54:56 +0100

Hi,

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

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.

Running 'make -k' and then 'make' creates the
library .libs/librsggen-3.1.0.sl but the static library fails to build
completely.

Re-running configure with:

CC=/opt/ansic/bin/cc F77=fort77 ./configure --disable-static

produces the following build error:

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
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: *** [ul_beeper.lo] Error 1

which still looks incorrect. It appears to still build shared library
object code (+Z -DPIC) but still fails static library code. Running
'make' again then continues to try and build the next routine.

Has anyone else come across anything similar to this? If anyone has any
hints on this I'd be very grateful!

Steve




reply via email to

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