Article 54V7A How should I go about compiling ancient GCC?

How should I go about compiling ancient GCC?

by
PepperLegs
from LinuxQuestions.org on (#54V7A)
And when I say ancient, I really mean it. Think 2.95, possibly older if I figure out the former.
I'm feeling quite adventurous, and I'd really like to compile some old stuff. No real reason, I just want to do it for the satisfaction.

Now, here's the question: What would be the best way to go about doing it? I was thinking about going with the (Cross) Linux From Scratch way, and making an entire toolchain on a separate partition.

I'd probably compile GCC 5.1.0 first (maybe a slightly higher version if this doesn't work out of the box), then try to compile older binutils and glibc with the ready compiler (to minimize the chances for any errors).
I'd most likely have to make GCC in 2 passes though, like in the book, right? First a simple compiler without glibc, then one with it. Assuming this would do the trick, I would make an older toolchain, and go lower and lower, until I reach 2.95.

Would something like this work? Would such a toolchain have access to my system's libraries while at the same time using the older glibc installed on the separate partition?
I mean, it probably would if I configured it correctly, but it's always better to ask. :)

I find it all really fascinating, and I definitely wouldn't mind if this actually worked!latest?d=yIl2AUoC8zA latest?i=7cAfT3l9UEk:oyuizj3QVsg:F7zBnMy latest?i=7cAfT3l9UEk:oyuizj3QVsg:V_sGLiP latest?d=qj6IDK7rITs latest?i=7cAfT3l9UEk:oyuizj3QVsg:gIN9vFw7cAfT3l9UEk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments