make buildworld fails:: cmap.h: No such file or directory

Michael Bowerman michael.bowerman at gmail.com
Sun Dec 4 11:14:14 PST 2005


The poblem ended up being that I had in my make.conf:
CFLAGS= -O2 -pipe
CXXFLAGS= -O2 -pipe

I ended up just removing the CXXFLAGS line.  I probably cold have used
CXXFLAGS+=...  But, I don't think I have any needs for specific C++ flags.


Thanks for the help,
Mike


On 12/4/05, Ruslan Ermilov <ru at freebsd.org> wrote:
>
> 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
>
>
>


More information about the freebsd-stable mailing list