NetBSD Problem Report #8809
Received: (qmail 27459 invoked from network); 16 Nov 1999 17:00:58 -0000
Message-Id: <xofvh72v0ai.fsf@blubb.pdc.kth.se>
Date: 16 Nov 1999 18:00:53 +0100
From: joda@pdc.kth.se (Johan Danielsson)
Reply-To: joda@pdc.kth.se
To: gnats-bugs@gnats.netbsd.org
Subject: some makefiles doesn't use CPPFLAGS
>Number: 8809
>Category: toolchain
>Synopsis: some makefiles doesn't use CPPFLAGS
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: toolchain-manager
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Nov 16 09:03:02 +0000 1999
>Closed-Date: Tue Mar 05 14:45:42 +0000 2002
>Last-Modified: Tue Mar 05 14:45:42 +0000 2002
>Originator: Johan Danielsson
>Release: 1999-11-16
>Organization:
>Environment:
<machine, os, target, libraries (multiple lines)>
System: NetBSD blubb.pdc.kth.se 1.4M NetBSD 1.4M (BLUBB) #88: Tue Nov 9 20:40:15 CET 1999 joda@blubb.pdc.kth.se:/usr/misc/src/netbsd/anoncvs/src/sys/arch/i386/compile/BLUBB i386
>Description:
I'm trying to build everything with DESTDIR set, and apparently I
don't have a <sys/endian.h> in /usr/include (but in DESTDIR). Some
makefiles don't get the special handling of DESTDIR in CPPFLAGS. There
might be more than these.
>How-To-Repeat:
# cd /usr/src/games
# make -k
all ===> adventure
...
all ===> fortune/strfile
cc -O -c strfile.c
In file included from strfile.c:62:
strfile.h:42: sys/endian.h: No such file or directory
*** Error code 1 (continuing)
`all' not remade because of errors.
all ===> fortune/datfiles
...
all ===> monop
cc -O -o initdeck /usr/misc/src/netbsd/anoncvs/src/games/monop/initdeck.c
/usr/misc/src/netbsd/anoncvs/src/games/monop/initdeck.c:54: sys/endian.h: No suc
h file or directory
*** Error code 1 (continuing)
`all' not remade because of errors.
all ===> morse
...
A correct compilation command looks like:
cc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes \
-Wpointer-arith -Werror -nostdinc \
-idirafter /usr/misc/src/netbsd/dest/usr/include -c wump.c
>Fix:
I don't know the reason for the special makefiles, so I'm not going to
attempt to fix it.
>Release-Note:
>Audit-Trail:
From: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
To: joda@pdc.kth.se
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/8809: some makefiles doesn't use CPPFLAGS
Date: Tue, 16 Nov 1999 14:40:39 -0500
this is a "cross-compile" issue.
monip/fortune/etc, build their own "tools" to run at compile-time to
build various data files.
These tools should really be coded to the POSIX API, not the NetBSD
API, so cross-compiles should be possible..
- Bill
State-Changed-From-To: open->analyzed
State-Changed-By: tv
State-Changed-When: Fri Nov 3 11:08:05 PST 2000
State-Changed-Why:
This is a cross build issue.
Responsible-Changed-From-To: bin-bug-people->toolchain-manager
Responsible-Changed-By: gnats
Responsible-Changed-When: Tue Feb 12 00:53:38 PST 2002
Responsible-Changed-Why:
There is now a "toolchain-manager" which is the proper default role
account for handling problem reports in the toolchain category.
State-Changed-From-To: analyzed->closed
State-Changed-By: tv
State-Changed-When: Tue Mar 5 06:44:37 PST 2002
State-Changed-Why:
The host tools should now cross-compile rather well; any deficiencies from
this point will be handled by their own PRs.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.