Date: Sun, 4 Dec 2005 09:59:17 +0200 From: Ruslan Ermilov <ru@freebsd.org> To: Michael Bowerman <michael.bowerman@gmail.com> Cc: freebsd-stable@freebsd.org Subject: Re: make buildworld fails:: cmap.h: No such file or directory Message-ID: <20051204075917.GB84983@ip.net.ua> In-Reply-To: <20051204075511.GA84983@ip.net.ua> References: <8038a35b0512031557j59e6ee11i84d9eb228d04ffdd@mail.gmail.com> <20051204075511.GA84983@ip.net.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
> >
> > 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 cvsup.
> > But, that didn't seem to help, and I tried a different cvsup mirror with no
> > luck.
> >
> > 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 &
> >
> > Here is the tail buildworld.log:
> >
> You seem to be hard-wiring your CFLAGS in such a way that -I's from makefiles
> don't get passed to it. The command should have been
>
> mkdep -f .depend -a -DHAVE_CONFIG_H -I.../contrib/groff/src/include ...
>
Forgot to add: this likely happens because you pass CFLAGS on the make's
command line, such as "make ... CFLAGS=...". This way, make(1) actually
has two CFLAGS variables: command-line and global. CFLAGS+= 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,
--
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)
iD8DBQFDkqHVqRfpzJluFF4RAhxcAJ9a0dKuMYBXvZCr2y37cx7Yrt2TVgCdF0lr
9y8Hm0VWmnSJpb9KcPNnhV4=
=KeBX
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051204075917.GB84983>
