From owner-freebsd-questions@FreeBSD.ORG Fri Apr 10 01:33:45 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2300106566B for ; Fri, 10 Apr 2009 01:33:45 +0000 (UTC) (envelope-from joji@eskimo.com) Received: from ultra7.eskimo.com (ultra7.eskimo.com [204.122.16.70]) by mx1.freebsd.org (Postfix) with ESMTP id 6658D8FC1F for ; Fri, 10 Apr 2009 01:33:45 +0000 (UTC) (envelope-from joji@eskimo.com) Received: from shell.eskimo.com (root@shell.eskimo.com [204.122.16.72]) by ultra7.eskimo.com (8.14.0/8.14.3) with ESMTP id n3A1MWl0032013; Thu, 9 Apr 2009 18:22:32 -0700 Received: from shell.eskimo.com (joji@localhost [127.0.0.1]) by shell.eskimo.com (8.14.3/8.14.3) with ESMTP id n3A1MafH002503; Thu, 9 Apr 2009 18:22:36 -0700 Received: (from joji@localhost) by shell.eskimo.com (8.14.3/8.12.10/Submit) id n3A1MaXg002502; Thu, 9 Apr 2009 18:22:36 -0700 Date: Thu, 9 Apr 2009 18:22:35 -0700 From: Joseph Olatt To: Steve Franks Message-ID: <20090410012235.GA2328@shell.eskimo.com> References: <539c60b90904091253i398dc4cfvfdb98f3731e6b3c@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <539c60b90904091253i398dc4cfvfdb98f3731e6b3c@mail.gmail.com> User-Agent: Mutt/1.4.2.2i Cc: FreeBSD Mailing List Subject: Re: flex from ports kills buildworld? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Apr 2009 01:33:45 -0000 On Thu, Apr 09, 2009 at 12:53:09PM -0700, Steve Franks 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 > > Stop in /usr/src/gnu/usr.bin/cc/cc_tools. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > [steve@dynstant /usr/src]$ which flex > /usr/local/bin/flex > [steve@dynstant /usr/src]$ It appears that your flex in /usr/local/bin is not being found. It is possible that PATH for the build environment does not contain /usr/local/bin probably in order to have a controlled build environment. Why don't you temporarily do: ln -s /usr/local/bin/flex /usr/bin/flex and see if that works.