Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Apr 2009 09:57:42 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Steve Franks <bahamasfranks@gmail.com>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: flex from ports kills buildworld?
Message-ID:  <87d4bl807t.fsf@kobe.laptop>
In-Reply-To: <539c60b90904091253i398dc4cfvfdb98f3731e6b3c@mail.gmail.com> (Steve Franks's message of "Thu, 9 Apr 2009 12:53:09 -0700")
References:  <539c60b90904091253i398dc4cfvfdb98f3731e6b3c@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 9 Apr 2009 12:53:09 -0700, Steve Franks <bahamasfranks@gmail.com> wrote:
> Probably doing something stupid, but on the off chance I'm not:
>
> - Had to install a newer flex from ports for something.
> - Had to move the system flex to avoid hacking reams of bad makefiles
> - Did a buildworld, and it can't find a flex
> - Seems to me, buildworld should be able to use a newer flex, and
> should be able to use the one from /usr/local instead of /sbin
>
> Thanks,
> Steve
>
> [steve@dynstant /usr/src]$ sudo make buildworld
> ...
> flex -ogengtype-lex.c
> /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gengtype-lex.l
> flex:No such file or directory
> *** Error code 1

Do you have `/usr/bin/flex'?  That's what should be used by the
buildworld step.

It may also be a good idea to start with `sudo -i' and *then* run the
buildworld commands in the root shell, instead of `sudo command'.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87d4bl807t.fsf>