public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* -B${prefix} during bootstrap
@ 2000-09-21 11:56 Phil Edwards
  2000-09-22 11:59 ` Alexandre Oliva
  2000-09-23 13:38 ` Jeffrey A Law
  0 siblings, 2 replies; 4+ messages in thread
From: Phil Edwards @ 2000-09-21 11:56 UTC (permalink / raw)
  To: gcc

Something that's bothered me for years that I'm just now asking...

Why is -B$prefix passed to the stage1 compiler when building the stage2
compiler?  If $prefix isn't there yet (normal when bootstrapping, I would
think), then what's the point?

When bootstrapping with a previous gcc installed in the same $prefix, I
once ended up with a permanently buggy toolchain.  Some back-end binary
was being picked up because of this, and propogating its bugs into the
newly-bootstrapped compiler.  Installing the new compiler over the old
one didn't fix the bug (the goal of the exercise).  Lather, rinse, repeat.
(Thank goodness for prebuilt binaries.)

It was long enough ago that I don't remember details, and I didn't understand
the nature of the bug.  Once the problem with -B was pointed out to me
(some kind soul on a mailing list), I started using different $prefix'es
for every build, but always wondered what the rationale for this was.


Phil

-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-09-23 13:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-21 11:56 -B${prefix} during bootstrap Phil Edwards
2000-09-22 11:59 ` Alexandre Oliva
2000-09-22 12:27   ` Phil Edwards
2000-09-23 13:38 ` Jeffrey A Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).