From: Daniel Pielmeier <daniel.pielmeier@googlemail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] verifying GCC version program was compiled with
Date: Sun, 05 Apr 2009 00:11:52 +0200 [thread overview]
Message-ID: <49D7DB28.30509@googlemail.com> (raw)
In-Reply-To: <200904042355.41849.alan.mckinnon@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2350 bytes --]
Alan McKinnon schrieb am 04.04.2009 23:55:
> On Saturday 04 April 2009 23:42:54 Daniel Pielmeier wrote:
>> Joseph schrieb am 04.04.2009 22:48:
>>> Is there a way to verify GCC version program was compiled with?
>>> I just want to check if all the programs were compiled with latest GCC
>>> version as I'm getting an errors at time to time.
>> I don't think it is possible to get the compiler or it's version used
>> for a specific program. If you are upgrading the compiler it is
>> advisable to recompile the complete system so all programs are compiled
>> with the same compiler version. Take a look at the gcc upgrading guide
>> [1] for the necessary steps you need to follow.
>>
>> [1] http://www.gentoo.org/doc/en/gcc-upgrading.xml
>
> This is complete nonsense advice. There is absolutely no need to rebuild the
> entire system every time you upgrade compilers, and whoever told you that is
> flat out wrong. If the gentoo docs told you that, then they are wrong, or
> misplaced, or the person writing them is overcautious to the point of being
> ridiculous. If this advice really was true, then a whole lot of stuff would
> break all over the world:
>
> - every Windows box on the planet would need a complete reinstall whenever a
> Windows Update happened (Yes, Microsoft does upgrade their compiler!)
> - third party apps would not run, as you have no way of knowing if Oracle's
> compiler is the same as yours (and you don't even have a guarantee that Oracle
> uses gcc). My Oracle instance at work is working just fine and I know for a
> fact the compilers used for it and SuSE are not even in the same version
> series.
> - Compiling any package locally could not work on a binary distro. But they
> do.
>
> There are *some* special cases where the gcc devs break stuff at an ABI level
> between versions (usually related to C++ not to C). These are well known and
> heavily documented - the toolchain devs make sure of this. 3.3 to 3.4 was such
> a case, there was another minor case early in the gcc-4 series. By no means do
> this mean that the fix for those cases must now be applied every time.
>
I must confess that I don't know if there is an ABI breakage between
4.1.2 and 4.3.2. So if there is none you may be fine without rebuilding
world.
--
Daniel Pielmeier
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 261 bytes --]
next prev parent reply other threads:[~2009-04-04 22:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-04 20:48 [gentoo-user] verifying GCC version program was compiled with Joseph
2009-04-04 21:42 ` Daniel Pielmeier
2009-04-04 21:55 ` Alan McKinnon
2009-04-04 22:11 ` Daniel Pielmeier [this message]
2009-04-05 8:53 ` Alan McKinnon
2009-04-04 23:31 ` Joseph
2009-04-05 8:51 ` Alan McKinnon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49D7DB28.30509@googlemail.com \
--to=daniel.pielmeier@googlemail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox