Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I bootstrap a newer version of the compiler (gcc)?

0
Posted

How do I bootstrap a newer version of the compiler (gcc)?

0

You should really just install the latest snapshot. OpenBSD now supports two compilers in-tree, gcc v3.3.5 used by most platforms, but also gcc v2.95.3 used by a few platforms which haven’t been converted yet, or may never be converted due to lack of gcc3 support or poor gcc3 performance. The two compilers are in different parts of the tree: • gcc3: /usr/src/gnu/usr.bin/gcc • gcc2: /usr/src/gnu/egcs/gcc Because upgrading a compiler is a bit of a chicken-and-egg problem, changes to the in-tree compiler require a little extra attention. You have to build the compiler twice — the first build produces a compiler that generates new code but runs with code generated by the old compiler, the second build makes it a completely new compiler.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123