flex from ports kills buildworld?

2009-04-09 Thread Steve Franks
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

[st...@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.
[st...@dynstant /usr/src]$ which flex
/usr/local/bin/flex
[st...@dynstant /usr/src]$
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: flex from ports kills buildworld?

2009-04-09 Thread Joseph Olatt
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
> 
> [st...@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.
> [st...@dynstant /usr/src]$ which flex
> /usr/local/bin/flex
> [st...@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.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: flex from ports kills buildworld?

2009-04-09 Thread Giorgos Keramidas
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
>
> [st...@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'.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"