Subject: toolchain/26000: tools/compile_et does not build with empty $DESTDIR
To: None <gnats-bugs@gnats.NetBSD.org>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 06/21/2004 21:39:31
>Number:         26000
>Category:       toolchain
>Synopsis:       tools/compile_et does not build with empty $DESTDIR
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 21 19:41:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Martin Husemann
>Release:        NetBSD 2.0F
>Organization:
>Environment:
System: NetBSD night-owl.duskware.de 2.0F NetBSD 2.0F (REVEL) #8: Mon Jun 21 19:04:30 CEST 2004 martin@night-owl.duskware.de:/usr/src/sys/arch/i386/compile/REVEL i386
Architecture: i386
Machine: i386
>Description:

I did a -j > 1 build with empty OBJDIR, empty $TOOLDIF and a brand new
(dummy) $DESTDIR. It failed trying to compile tools/compile_et:

#   compile  compile_et/make-print-version.lo
cc -O -I/usr/src/crypto/dist/heimdal/lib/roken -I/usr/obj//tools/compat -I/usr/obj//tools/compat/include  -I/usr/src/tools/compile_et/../compat -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64  -I.                                    -I/usr/src/crypto/dist/heimdal/lib/com_err              -I/usr/src/include/heimdal     -I/tmp/blah/usr/include/krb5             -DHAVE_CONFIG_H -c -o make-print-version.lo.o    /usr/src/crypto/dist/heimdal/lib/vers/make-print-version.c
cc1: /tmp/blah/usr/include/krb5: Not a directory

The $DESTDIR/include directory has not been created yet, and removing the
-I/tmp/blah/usr/include/krb5 from the command line makes it work.

It is obviously in HOST_CPPFLAGS:

# /usr/tools/bin/nbmake-i386 -V HOST_CPPFLAGS
-I/usr/src/crypto/dist/heimdal/lib/roken  -I.                                   -I/usr/src/crypto/dist/heimdal/lib/com_err               -I/usr/src/include/heimdal      -I/tmp/blah/usr/include/krb5            -DHAVE_CONFIG_H

but I don't see where it comes from (and it's certainly not intended to 
be there)

>How-To-Repeat:
s/a

>Fix:
n/a
>Release-Note:
>Audit-Trail:
>Unformatted: