make buildworld fails:: cmap.h: No such file or directory
Ruslan Ermilov
ru at freebsd.org
Sun Dec 4 00:01:23 PST 2005
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 at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20051204/f48c27fc/attachment.bin
More information about the freebsd-stable
mailing list