From owner-freebsd-stable@FreeBSD.ORG Sun Dec 4 08:01:23 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D54FD16A41F for ; Sun, 4 Dec 2005 08:01:23 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id E789A43D4C for ; Sun, 4 Dec 2005 08:01:22 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jB481Lxh020642; Sun, 4 Dec 2005 10:01:21 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 13112-01-2; Sun, 4 Dec 2005 10:01:19 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jB47xEme020532 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 4 Dec 2005 09:59:15 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.4/8.13.4) id jB47xIAD085172; Sun, 4 Dec 2005 09:59:18 +0200 (EET) (envelope-from ru) Date: Sun, 4 Dec 2005 09:59:17 +0200 From: Ruslan Ermilov To: Michael Bowerman Message-ID: <20051204075917.GB84983@ip.net.ua> References: <8038a35b0512031557j59e6ee11i84d9eb228d04ffdd@mail.gmail.com> <20051204075511.GA84983@ip.net.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QKdGvSO+nmPlgiQ/" Content-Disposition: inline In-Reply-To: <20051204075511.GA84983@ip.net.ua> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua Cc: freebsd-stable@freebsd.org Subject: Re: make buildworld fails:: cmap.h: No such file or directory X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2005 08:01:23 -0000 --QKdGvSO+nmPlgiQ/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 04, 2005 at 09:55:11AM +0200, Ruslan Ermilov wrote: > On Sat, Dec 03, 2005 at 05:57:09PM -0600, Michael Bowerman wrote: > > When I do a make buildword, I get a bunch of .h files not found: > > /usr/src/gnu/usr.bin/groff/src/libs/libgroff/../../../../../../contrib/= groff/src/libs/libgroff/cmap.cpp:27:18: > > cmap.h: No such file or directory > >=20 > > The cmap.h file is in another place in the source tree (an include > > directory, I think). I'm wondering if this is a bug or some error on my > > part. I tried to rm -rf /usr/src/* and rm -rf /usr/obj/*, before a cvs= up. > > But, that didn't seem to help, and I tried a different cvsup mirror wit= h no > > luck. > >=20 > > I like to run update in one command so I can (when everything goes well) > > leave the computer to do its thing. So, I typed: cvsup -g -L 2 > > ~/stable-supfile > & ! ~/buildworld.log && make -j4 buildworld >> & > > ~/buildworld.log && make -j4 buildkernel >> & ~/buildworld.log && make = -j4 > > installkernel >> & ~/buildworld.log & > >=20 > > Here is the tail buildworld.log: > >=20 > You seem to be hard-wiring your CFLAGS in such a way that -I's from makef= iles > don't get passed to it. The command should have been >=20 > mkdep -f .depend -a -DHAVE_CONFIG_H -I.../contrib/groff/src/include ... >=20 Forgot to add: this likely happens because you pass CFLAGS on the make's command line, such as "make ... CFLAGS=3D...". This way, make(1) actually has two CFLAGS variables: command-line and global. CFLAGS+=3D adds to the global CFLAGS variable but ${CFLAGS} expands a value of the command-line CFLAGS variable (which has a higher precedence). Go learn the different types of make variables in the make(1) manpage. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --QKdGvSO+nmPlgiQ/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDkqHVqRfpzJluFF4RAhxcAJ9a0dKuMYBXvZCr2y37cx7Yrt2TVgCdF0lr 9y8Hm0VWmnSJpb9KcPNnhV4= =KeBX -----END PGP SIGNATURE----- --QKdGvSO+nmPlgiQ/--