From owner-freebsd-questions@FreeBSD.ORG Fri Apr 10 06:57:47 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 1C0011065670 for ; Fri, 10 Apr 2009 06:57:47 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.freebsd.org (Postfix) with ESMTP id BC86B8FC2D for ; Fri, 10 Apr 2009 06:57:46 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from mail.ceid.upatras.gr (unknown [10.1.0.143]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id 1BFFBEB4FA1; Fri, 10 Apr 2009 09:57:45 +0300 (EEST) Received: from localhost (europa.ceid.upatras.gr [127.0.0.1]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 0E6E14509B; Fri, 10 Apr 2009 09:57:45 +0300 (EEST) X-Virus-Scanned: amavisd-new at ceid.upatras.gr Received: from mail.ceid.upatras.gr ([127.0.0.1]) by localhost (europa.ceid.upatras.gr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E0Myz8vewmA9; Fri, 10 Apr 2009 09:57:44 +0300 (EEST) Received: from kobe.laptop (adsl167-129.kln.forthnet.gr [62.1.146.129]) by mail.ceid.upatras.gr (Postfix) with ESMTP id D07FE4503F; Fri, 10 Apr 2009 09:57:44 +0300 (EEST) Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id n3A6vivE043292; Fri, 10 Apr 2009 09:57:44 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id n3A6vhLg043291; Fri, 10 Apr 2009 09:57:43 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Steve Franks References: <539c60b90904091253i398dc4cfvfdb98f3731e6b3c@mail.gmail.com> Date: Fri, 10 Apr 2009 09:57:42 +0300 In-Reply-To: <539c60b90904091253i398dc4cfvfdb98f3731e6b3c@mail.gmail.com> (Steve Franks's message of "Thu, 9 Apr 2009 12:53:09 -0700") Message-ID: <87d4bl807t.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 06:57:47 -0000 On Thu, 9 Apr 2009 12:53:09 -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 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'.