Contributed by phessler on from the flag-day dept.
http://openbsd.org/faq/upgrade-minifaq.html#3.6.5
WARNING, this is a FLAG DAY, so you have to either exert special care and do things by hand as above, or wait for snapshots to appear. Specifically, it will be best in your favour to rebuild/reinstall all your packages from scratch as well.
(Comments are closed)
By phessler (64.173.147.27) on
Comments
By Anthony (68.145.111.152) on
1. 3.x is now good enough that the upgrade is worth it.
2. Maintaining 2.9 has become too much of a PITA for it to be worth it.
Comments
By tedu (67.124.88.142) on
Comments
By SH (82.182.103.172) on
SH
Comments
By Brad (204.101.180.70) brad at comstyle dot com on
By Anthony (68.145.111.152) on
1. 3.x is now good enough that the upgrade is worth it.
2. Maintaining 2.9 has become too much of a PITA for it to be worth it.
By antonios anastasiadis (193.58.186.135) on
Comments
By Lennart Fridén (213.64.159.28) on
Comments
By tedu (64.173.147.27) on
Comments
By Lennart Fridén (213.64.159.28) on
Comments
By Marc Espie (62.212.102.210) on
It's very close to the actual standard, where gcc 2.95.3 was
really poor in that regard.
That said, the compilation speed is abysmal, the resulting code is nothing to write home about.
What matters for us is:
- support for all kinds of new platforms, like sparc64, amd64 which are really not supported by gcc 2.95.
- better diagnostics. The error messages are better. The builtins work like they're supposed to (for instance, you now get a warning that exit() is not defined if you forget to #include <stdlib.h>. gcc 2.95
was completely bogus there).
- almost supported by the FSF. Not really. If it's not the greatest and latest, it's not supported.
BTW, the latest stable branch of gcc at the FSF is 3.4. We won't switch to that, because it's even slower, the C++ parser rewrite means that C++ takes an insane amount of memory to compile, and there are even more issues to fix in third party code.
Maybe, just maybe, gcc 4.1 will be good and provide better code, and not yield huge amounts of compile time and consumed memory.
I don't have that much hope for it.
For a portable compiler, GCC more and more is a *386-only* development platform: it's so slow and uses so much memory as basically being totally unusable on anything but a fast i386 or amd64 with lots of memory.
By RC (4.8.17.8) on
It hasn't been added, really... It's been available for quite some time. It's just becomming the default, and put into the base system now.
Comments
By Lennart Fridén (213.64.159.28) on
Comments
By Brad (216.138.200.42) brad at comstyle dot com on
Comments
By Lennart Fridén (213.64.159.28) on
Unless of course you got a compile farm at home/work...
Comments
By Brad (204.101.180.70) brad at comstyle dot com on
Comments
By Lennart Fridén (213.64.159.28) on
That said, I don't think OpenBSD is going to spin off an OpenGCC project anytime soon (or ever) so we're stuck with GCC.
By Anonymous Coward (220.240.54.229) on
Comments
By Anonymous Coward (24.65.228.16) on
Comments
By Anonymous Coward (68.78.135.106) on
By RC (4.8.17.8) on
It should become FASTER as a matter of fact, it's only the compiling that becomes slower.
The optimization flags available should make things rather fast, if they work, that is. In my experience with gcc2.95 on OpenBSD, anything but the most basic flags often result in corrupt binary junk. The other BSDs have the same problems, but to a lesser extent than I've seen with Open.
Comments
By Anonymous Coward (69.197.92.181) on
Comments
By RC (4.8.17.8) on
> to the same extent.
Complete bull. I'm sure I could find dozens of test-cases where compliling several different programs with certain flags works on Linux or FreeBSD, but not on OpenBSD. Or, programs that compile correctly on Linux with certain opts, but not on any of the BSDs with the same opts.
Your baseless assertion that I'm wrong does not prove anything, except that you should not be trusted.
Comments
By Marc Espie (62.212.102.210) on
Get those testcases out, so that we get a chance at fixing them.
Saying that stuff doesn't work is useless.
If you're half as competent as you say you are, you'll be able to write down testcases in no time, and you'll be able to give them to us.
By Anonymous Coward (69.197.92.181) on
If you really have such strong proof that its openbsd specific, then perhaps you should stfu and post a couple testcases for everyone to try.
By djm@ (218.214.226.34) on
By Brad (216.138.200.42) brad at comstyle dot com on
By Anonymous Coward (68.100.75.121) on
By Anonymous Coward (198.175.14.194) on
By mirabile (81.173.168.114) on http://mirbsd.de/
Funny that OpenBSD defaults, system-wide, to
-fno-zero-initialized-in-bss whereas this has
not bitten me today _at all_ (I compared a
kernel built with the older gcc 3.2.3 and one
with the brand-new just ported gcc 3.4.4 and
found that exactly zero variables have moved
from .data to .bss (if eg. uextraloc were
static, it would have)...).
And I was surprised of how good quality gcc 3.4
is, compared to gcc 3.2 (but it is even slower,
admittedly, and produces larger code).