Bug 460143 - Wrong compiler is shipping with product
Summary: Wrong compiler is shipping with product
Status: RESOLVED DUPLICATE of bug 391432
Alias: None
Product: openSUSE 11.1
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Final
Hardware: All openSUSE 11.1
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-18 11:39 UTC by Chris Drake
Modified: 2009-01-18 15:08 UTC (History)
5 users (show)

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Drake 2008-12-18 11:39:50 UTC
Your kernel was built with "gcc" version "4.3.2", while you are shipping 
"/usr/bin/gcc" version "4.3". This configuration is not recommended and server may crash if customers don't use exactly the same compiler as one used for building your kernel. 

To reproduce: 

1. install everything (right-click and select "all in this list" during install)

2. observe the installed compiler version differs from the version used to compile the kernel.
Comment 1 Justin Haygood 2008-12-18 22:02:53 UTC
What does "gcc --version" say for you? Shows 4.3.2 for me.
Comment 2 Hans-Peter Holler 2008-12-19 17:31:09 UTC
Guess this message comes from vmware-config.pl in versions up to 6.0.x, right?
If so, it's not SUSE to blame. If you're in 6.0.x you can ignore this. 6.5.x doesn't throw the message.
If not, please tell where the message comes from. 
Comment 3 Forgotten User qMyteedNxa 2008-12-21 19:33:37 UTC
yes, this is a vmware issue. have seen this several times. iirc, there was a workaround in vmware.
Comment 4 Alexander Orlovskyy 2008-12-22 09:18:14 UTC
Closing bug , if you have some logs, than reopen the bug.
Comment 5 cn d 2008-12-28 17:44:51 UTC
Looks like someone changed the functionality of the gcc "dumpversion" command since SUSE10.3 - since this appears to be the only way to extract the actual numeric version of the compiler without all the eye-candy (thus being suitable for consumtion by 3rd party scripts etc) - I'd suggest that this is some kind of bug - although perhaps in the way you've chosen to configure/compile gcc itself, rather than what actaul version you've shipped.  Compare, for example, the 2 outputs from below.

------- from 11.1 --------

# gcc -dumpversion
4.3

# cat /etc/issue
Welcome to openSUSE 11.1   - Kernel \r (\l).

# uname -a
Linux hot 2.6.27.7-4-default #1 SMP 2008-11-25 00:02:37 +0100 x86_64 x86_64 x86_64 GNU/Linux

# gcc --version
gcc (SUSE Linux) 4.3.2 [gcc-4_3-branch revision 141291]
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

------- from 10.3 --------

# gcc -dumpversion
4.2.1

# cat /etc/issue

Welcome to openSUSE 10.3 (X86-64) - Kernel \r (\l).

# uname -a
Linux ca2 2.6.22.17-0.1-default #1 SMP 2008/02/10 20:01:04 UTC x86_64 x86_64 x86_64 GNU/Linux

# gcc --version
gcc (GCC) 4.2.1 (SUSE Linux)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

---------------------------

Changing the functionality of something as important as the compiler version output switch in gcc strikes me as being somewhat of a "Bad Idea"(tm) :-)
Comment 6 Forgotten User qMyteedNxa 2009-01-16 08:19:04 UTC
i have seen some more bugreports  where people have problems with dumpversion only returning part of the version information, i.e. 4.3 instead of 4.3.1.

anyway, i think i`t strange. 

is "dumpversion" expected to show different version number information apart from "--version" ? 

i thought it was just a script-friendly param to avoid users needing to grep/cut the version number theirself, so why does it differ ?
Comment 7 Cyril Hrubis 2009-01-18 15:08:14 UTC
Switch dumpversion is internal for gcc path resolving and the script should use last line output from gcc -v instead. See bug #391432.

*** This bug has been marked as a duplicate of bug 391432 ***