View previous topic :: View next topic |
Author |
Message |
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Wed May 09, 2012 9:52 am Post subject: Why GCC stable at 4.5.3-r2? |
|
|
Even Debian testing has moved to 4.7, but it's been AGES since Gentoo is stuck at 4.5. I didn't find many issues in bugzilla... what could be the problem? _________________ My blog |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8938
|
Posted: Wed May 09, 2012 10:06 am Post subject: |
|
|
Packages fail with 4.6. Search for the tracker bug, the info is all there. |
|
Back to top |
|
|
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Wed May 09, 2012 10:11 am Post subject: |
|
|
I believe you checked https://bugs.gentoo.org/show_bug.cgi?id=gcc-4.6 and noticed that at least grub cannot compile with 4.6 series
And as far as 4.7 is concerned, there are quite a lot of applications not compiling with it : https://bugs.gentoo.org/show_bug.cgi?id=390247 together with the problem that it breaks the PaX gcc plugins needed for the hardened-sources.
What are the new features you are especially interested in ? _________________
|
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8938
|
Posted: Wed May 09, 2012 10:14 am Post subject: |
|
|
Just unmask it if you believe to be unaffected.
The issue with grub seems to be hard to reproduce, at least I don't have any issue compiling it (4.6.3). |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Wed May 09, 2012 11:42 am Post subject: Re: Why GCC stable at 4.5.3-r2? |
|
|
dE_logics wrote: | Even Debian testing has moved to 4.7, but it's been AGES since Gentoo is stuck at 4.5. I didn't find many issues in bugzilla... what could be the problem? |
With all due respect, debian do not need to worry about +15k packages being able to compile with an infinite number of different configurations, architectures, configure options, CFLAGS, etc. They just need to be able to compile themselves to produce a binary that will be common for all the debian users. |
|
Back to top |
|
|
ulenrich Veteran
Joined: 10 Oct 2010 Posts: 1480
|
Posted: Wed May 09, 2012 12:52 pm Post subject: |
|
|
Hilarious if you think of this comparison of Gentoo with other Distros:
3 -versus- infinite
states of software packages.
Gentoo has these 3 states of his software in effect:
-stable
-unstable
-unsupported
where others using their
-Releases (infinite)
-unstable
-experimental
-oldlibs(Debian)
The last would help in this regard (gcc):
Grub1 should have (the additional state) of "old" |
|
Back to top |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Wed May 09, 2012 2:47 pm Post subject: |
|
|
So there's still a lot of work remaining. _________________ My blog |
|
Back to top |
|
|
jdhore Retired Dev
Joined: 13 Apr 2007 Posts: 106
|
Posted: Wed May 09, 2012 6:34 pm Post subject: |
|
|
genstorm wrote: | Just unmask it if you believe to be unaffected.
The issue with grub seems to be hard to reproduce, at least I don't have any issue compiling it (4.6.3). |
It's actually not that Grub compiled against GCC 4.6.3 fails to compile, the problem is MUCH weirder. It problem is, it compiles fine, it installs fine, but when you reboot after you do grub-install, it fails to start. |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8938
|
Posted: Wed May 09, 2012 6:43 pm Post subject: |
|
|
Well, at least I thought I did all that and it worked for me. But not for some. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Wed May 09, 2012 9:47 pm Post subject: |
|
|
jdhore wrote: | genstorm wrote: | Just unmask it if you believe to be unaffected.
The issue with grub seems to be hard to reproduce, at least I don't have any issue compiling it (4.6.3). |
It's actually not that Grub compiled against GCC 4.6.3 fails to compile, the problem is MUCH weirder. It problem is, it compiles fine, it installs fine, but when you reboot after you do grub-install, it fails to start. |
I just switched to Lilo after many many years with Grub (and getting lost with Grub2). Lilo can boot two kernels, current and failsafe, need no more. And has no mysterious problems with GCC. _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Thu May 10, 2012 6:54 am Post subject: |
|
|
Jaglover wrote: | I just switched to Lilo |
++
Jaglover wrote: | Lilo can boot two kernels. |
I get 4 on a standard basis and sometimes 6. _________________
|
|
Back to top |
|
|
broken_chaos Guru
Joined: 18 Jan 2006 Posts: 370 Location: Ontario, Canada
|
Posted: Thu May 10, 2012 7:37 pm Post subject: |
|
|
Syslinux (specifically Extlinux) is another option. I've been using it on a 64-bit only system (no IA-32 emulation, no multilib -- meaning no GRUB) with no problems (but I don't dual boot or do anything fancy). |
|
Back to top |
|
|
MarekSieradzki n00b
Joined: 05 Oct 2010 Posts: 18
|
Posted: Fri May 11, 2012 12:43 am Post subject: |
|
|
Since when is Grub 1 not obsolete?
Quote: | With all due respect, debian do not need to worry about +15k packages being able to compile with an infinite number of different configurations, architectures, configure options, CFLAGS, etc. They just need to be able to compile themselves to produce a binary that will be common for all the debian users. |
What? Since when is Gentoo a polished distribution instead of just collection of information allowing simpler building of everything from source? |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Fri May 11, 2012 12:55 am Post subject: |
|
|
MarekSieradzki wrote: | Quote: | With all due respect, debian do not need to worry about +15k packages being able to compile with an infinite number of different configurations, architectures, configure options, CFLAGS, etc. They just need to be able to compile themselves to produce a binary that will be common for all the debian users. |
What? Since when is Gentoo a polished distribution instead of just collection of information allowing simpler building of everything from source? |
It's a lot more than the latter, but it's not a polished binary distro: it's as polished as a source-distro can be imo.
The point still stands: gentoo has to be a lot more careful about pushing out a new major release of gcc, especially if it results in visible user-breakage of common system tools. The whole point is that due to the variability of configurations, settings which are frozen across a binary distro, it's not as simple as getting a set of tools working in just one configuration. And no, it's not sufficient to just forget about the subset of users who run into problems: rather the problem should be tracked down and fixed so everyone benefits, now and into the future. |
|
Back to top |
|
|
MarekSieradzki n00b
Joined: 05 Oct 2010 Posts: 18
|
Posted: Fri May 11, 2012 9:58 am Post subject: |
|
|
My point is that Grub 1 isn't worth the maintenance cost. |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6749
|
Posted: Fri May 11, 2012 10:09 am Post subject: |
|
|
MarekSieradzki wrote: | My point is that Grub 1 isn't worth the maintenance cost. |
There is not really a stable alternative yet: The first grub2 not hanging forever on my machine was 2.00_beta0, and then the next betas were all broken in various ways. 2.00_beta5 seems again usable, but with such a releas policy (working, non-working, still-not-working, broken-in-another-way, working again) this is nothing one can use for a production system. |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Fri May 11, 2012 11:01 am Post subject: |
|
|
steveL wrote: | MarekSieradzki wrote: | Quote: | With all due respect, debian do not need to worry about +15k packages being able to compile with an infinite number of different configurations, architectures, configure options, CFLAGS, etc. They just need to be able to compile themselves to produce a binary that will be common for all the debian users. |
What? Since when is Gentoo a polished distribution instead of just collection of information allowing simpler building of everything from source? |
It's a lot more than the latter, but it's not a polished binary distro: it's as polished as a source-distro can be imo.
The point still stands: gentoo has to be a lot more careful about pushing out a new major release of gcc, especially if it results in visible user-breakage of common system tools. The whole point is that due to the variability of configurations, settings which are frozen across a binary distro, it's not as simple as getting a set of tools working in just one configuration. And no, it's not sufficient to just forget about the subset of users who run into problems: rather the problem should be tracked down and fixed so everyone benefits, now and into the future. |
I am not going into that debate. If someone is not able to see what the difference is then s/he clearly lacks the background to argue with me about that. Not that I am ubber or something, it's just evident...
The main point here is that Debian or Ubuntu users do not need to care about their gcc being able to compile their whole system. They only need to care about gcc being able to compile their own personal projects, which they develop, and which they can fix themselves if some issue arises. |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Fri May 11, 2012 11:03 am Post subject: |
|
|
MarekSieradzki wrote: | My point is that Grub 1 isn't worth the maintenance cost. |
I am sure that grub is not what's holding gcc 4.7 from being stabilized. But, if you want things to happen faster, you can always join and help with grub2, gcc or whatever else. Every hand is welcome. |
|
Back to top |
|
|
platojones Veteran
Joined: 23 Oct 2002 Posts: 1602 Location: Just over the horizon
|
Posted: Fri May 11, 2012 11:31 am Post subject: |
|
|
As noted in an earlier post with the bugzilla link, gcc 7 is getting stabilized. The 'broken packages' list is being whittled down by upstream maintainers relatively quickly. I have gcc 7 installed and the vast majority of my packages build fine. Linux kernel compiles and runs fine with it...and gcc 7 compiles noticeably faster on many packages. So start using gcc 7 and sending bug reports to get it done faster. |
|
Back to top |
|
|
EatMeerkats Apprentice
Joined: 15 Mar 2006 Posts: 234
|
Posted: Fri May 11, 2012 12:39 pm Post subject: |
|
|
platojones wrote: | As noted in an earlier post with the bugzilla link, gcc 7 is getting stabilized. The 'broken packages' list is being whittled down by upstream maintainers relatively quickly. I have gcc 7 installed and the vast majority of my packages build fine. Linux kernel compiles and runs fine with it...and gcc 7 compiles noticeably faster on many packages. So start using gcc 7 and sending bug reports to get it done faster. |
Except, you know, you can't build firefox or chromium with it (I'm assuming you really mean gcc 4.7). Considering that 4.6 is still hard masked and 4.7 isn't even in portage yet, this is probably a really bad idea unless you want to break things… |
|
Back to top |
|
|
trippels Tux's lil' helper
Joined: 24 Nov 2010 Posts: 137 Location: Berlin
|
Posted: Fri May 11, 2012 2:29 pm Post subject: |
|
|
The trick is to use this little patch:
Code: | iff --git a/libgcc/gthr-posix.h b/libgcc/gthr-posix.h
index b5b1611..d6f2ace 100644
--- a/libgcc/gthr-posix.h
+++ b/libgcc/gthr-posix.h
@@ -34,6 +34,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define __GTHREADS_CXX0X 1
#include <pthread.h>
+#include <unistd.h>
#if ((defined(_LIBOBJC) || defined(_LIBOBJC_WEAK)) \
|| !defined(_GTHREAD_USE_MUTEX_TIMEDLOCK))
|
With this almost all gcc-4.7 compile failures will disappear.
I'm using 4.7 since the beginning of this year without any problems. |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Fri May 11, 2012 3:10 pm Post subject: |
|
|
MarekSieradzki wrote: | My point is that Grub 1 isn't worth the maintenance cost. |
No, that was your first point, which I left alone. Your second point was that Gentoo is not really a distro but "just [a] collection of information allowing simpler building of everything from source" which is untrue of Gentoo, but might be true of LFS. Gentoo gives you the tools to maintain an installation, or many installations, customised to your specs and built from source.
With respect to grub, I haven't looked at the code, so I don't know what changes when you compile with gcc-4.6 vs 4.5; irrespective, gcc is generating code that no longer works. In any event, afaict it's a simple fix (add -fno-reorder-functions) which has been incorporated, although another culprit appears to be a patch to allow placing /boot above the 1TB limit, a patch which most other distros like fedora and ubuntu don't use. See bug 360513. I think the best option would be just to stop using that distro-specific patch, especially since it doesn't even appear to work (comment 81). |
|
Back to top |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Fri May 11, 2012 3:54 pm Post subject: |
|
|
Here, grub2 doesn't even compile. My last build was 09/03/11, and since then then compile always failed. _________________ My blog |
|
Back to top |
|
|
platojones Veteran
Joined: 23 Oct 2002 Posts: 1602 Location: Just over the horizon
|
Posted: Fri May 11, 2012 4:32 pm Post subject: |
|
|
EatMeerkats wrote: |
Except, you know, you can't build firefox or chromium with it (I'm assuming you really mean gcc 4.7). Considering that 4.6 is still hard masked and 4.7 isn't even in portage yet, this is probably a really bad idea unless you want to break things… |
Sure, several big package don't compile yet, but as I said, most things do. I know Chromium is already getting attention. 4.7 is the official gcc release now.
Skip 4.6, it's a dead end...we're talking 4.7.
And yes, it's not in portage yet, but will be very soon...for know, I'm just pulling from the toolchain overlay. And I'm not using it exclusively...I switch back and forth betwee 4.5.3 and 4.7...it's easy to do with gcc-config. |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8938
|
Posted: Sat May 12, 2012 11:03 am Post subject: |
|
|
Just look at the respective tracker bugs 4.6 vs 4.7 and expect much, much more to come for the latter as it gets more testing (see gcc-4.5 and 4.4 trackers for clues). So stabilizing 4.6 is really more realistic unless you are prepared to wait even longer for 4.7, and it helps progression anyway. |
|
Back to top |
|
|
|