GNU bug report logs -
#8473
depcomp bug with HP-UX cc and VPATH build
Previous Next
Reported by: Bruno Haible <bruno <at> clisp.org>
Date: Mon, 11 Apr 2011 00:45:06 UTC
Severity: normal
Done: Ralf Wildenhues <Ralf.Wildenhues <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi,
The dependencies mechanism of Automake leads to a compilation failure when
used in a VPATH build (with GNU make, of course) and HP-UX cc. The failure
occurs during the third command of this command sequence:
$ gmake
$ gmake clean
$ gmake
...
gmake[4]: Entering directory `/tmp/testdir1/build-vpath/gllib'
source='../../gllib/nonblocking.c' object='../../gllib/nonblocking.o' libtool=no \
DEPDIR=.deps depmode=hp /bin/sh ../../build-aux/depcomp \
cc -Ae -O -DHAVE_CONFIG_H -I. -I../../gllib -I.. -DGNULIB_STRICT_CHECKING=1 -g -c ../../gllib/nonblocking.c
cpp: "", line 0: error 4066: Cannot create "../../gllib/.deps/nonblocking.TPo" file for "-M../../gllib/.deps/nonblocking.TPo" option. (No such file or directory[errno=2])
gmake[4]: *** [../../gllib/nonblocking.o] Error 1
Relevant software in use:
$ automake --version
automake (GNU automake) 1.11.1
$ autoconf --version
autoconf (GNU Autoconf) 2.68
$ uname -sr
HP-UX B.11.00
$ gmake --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for hppa1.1-hp-hpux11.00
$ what `which cc`
/opt/ansic/bin/cc:
$Revision: 92453-07 linker linker crt0.o B.11.47 051104 $
LINT B.11.X.35098-35101.GP CXREF B.11.X.35098-35101.GP
HP92453-01 B.11.X.35098-35101.GP HP C Compiler
$ PATCH/11.00:PHCO_27774 Oct 3 2002 09:45:59 $
How to reproduce:
- Create a gnulib testdir for module 'nonblocking'.
$ ./gnulib-tool --create-testdir --dir=/tmp/testdir nonblocking
- Transport it to the HP-UX 11.00 machine.
- On this machine, start 'bash', then
$ export PATH=/opt/langtools/bin:$PATH
$ export CC="cc -Ae -O"
$ mkdir build-vpath
$ cd build-vpath
$ ../configure
$ gmake
$ gmake clean
$ gmake
In a build with $(builddir) = $(srcdir), there is no problem.
Bruno
--
In memoriam Hendrik Nicolaas Werkman <http://en.wikipedia.org/wiki/Hendrik_Nicolaas_Werkman>
This bug report was last modified 14 years and 50 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.