Re: $PATH and buildworld not getting along



On Tue, 15.02.2011 at 21:10:29 +0000, Alexander Best wrote:
hi there,

i've run into an issue where $PATH doesn't get discarded during buildworld. is
this behavior to be expected? to reproduce do:

1) be sure /usr/local/bin comes *before* /usr/bin in your $PATH
2) ln -s /bin/cat /usr/local/bin/cc (some sh script would be better)
3) cd /usr/src ; make SRCCONF=/dev/null __MAKE_CONF=/dev/null buildworld
4) see how buildworld fails, because cat(1) gets invoked instead of cc(1).

... buildkernel on the other hand seems to be immune to such an issue.

The bootstrap stage needs *some* compiler on the host system to build
the (cross)compiler that is then used during the rest of buildworld (and
all of buildkernel). If you remove cc or c++ or libstdc++.so then you're
screwed.

As to whether the user's PATH should be honored for building the
bootstrap/cross/build-tools, I'd say yes.

If, however, the breakage is during the actual build-everything stage,
that would be a problem indeed.

Regards,
Uli
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: $PATH and buildworld not getting along
    ... i've run into an issue where $PATH doesn't get discarded during buildworld. ... to reproduce do: ... The bootstrap stage needs *some* compiler on the host system to build ... so there's no need to invoke anything ...
    (freebsd-current)
  • Re: $PATH and buildworld not getting along
    ... Ulrich Spörlein wrote: ... i've run into an issue where $PATH doesn't get discarded during buildworld. ... The bootstrap stage needs *some* compiler on the host system to build ... so there's no need to invoke anything ...
    (freebsd-current)
  • Re: Quality of FreeBSD
    ... >>Its trivially easy for me to reproduce this problem on my sandbox ... As I pointed out in my PR, "make -j4 buildworld" is more than sufficient ... reproducable using stock Adaptec SATA controllers, standard SATA drives, ... rebuild the array (that is the time-consuming ...
    (freebsd-stable)
  • Re: lzma support in `stable has potential issues
    ... buildworld is currently running. ... installworld completed successfully ... Sorry Garrett, can't reproduce. ... make buildworld buildkernel # bombed at ncurses with termcap error ...
    (freebsd-stable)
  • Re: make buildworld fails for 5-Stable cvsupd today
    ... make buildworld fails for 5-Stable cvsup'd today ... My uname looks ... In keeping with others' suggestions that this might well be symptomatic of RAM issues, I've swapped out all of the RAM and have restarted as per: ...
    (freebsd-stable)