"Wil Reichert" <[EMAIL PROTECTED]> posted [EMAIL PROTECTED], excerpted below, on Wed, 26 Nov 2008 09:47:25 -0800:
> On Wed, Nov 26, 2008 at 9:19 AM, Bob Sanders <[EMAIL PROTECTED]> wrote: >> Sebastian Klüsener, mused, then expounded: >>> I'd change that to 'march=amdfam10' or 'march=native' if your gcc is a >>> recent one. Recent means >=4.3. >>> >>> >> True. I'm running stable - 4.1.2, thus that option isn't available. > > Native was added in gcc 4.2. I've got a system running running all > stable packages with just that version of gcc unmasked, its been around > quite a while now & most everything in portage has no problem with it. It's also worth noting that due to Gentoo's gcc slotting, one can use gcc-config to switch between gcc versions. Thus using a new and still masked gcc isn't as much of a problem as it might be, since you can use the new version for most things and switch to the old version for anything that's still broken with the new version. When an emerge --emptytree @system @world works just using the new version, you can then unmerge the old version. I've done this over several gcc upgrades, now. It works well for C programs, but there can be issues with C++ occasionally, since gcc provides libstdc++ which must remain compatible. Over the versions I've done this with, it has been mostly compatible, but not always 100%. At one point some stuff in KDE would break if I was switched to the older gcc, since I had compiled it with the newer gcc, with a mostly compatible libstdc++, but one that added a few new functions. So anything that used the new functions would break when switched to the old gcc and thus the old libstdc++. But most of KDE would work, so I'd switch to the old version just long enough to compile whatever package wouldn't yet compile with the new gcc, and wouldn't use the KDE stuff that was broken (basically anything having to do with the web, IDR whether it was just the web, or all Internet functionality) while I did so. Then I'd switch back to the newer gcc, and everything would work again. -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman