Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 406571 - sys-devel/gcc-4.6.3: version bump
Summary: sys-devel/gcc-4.6.3: version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/gcc-4.6/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-02 10:19 UTC by Tolga Dalman
Modified: 2012-04-30 18:32 UTC (History)
25 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
74_all_gcc46_cloog-dl.patch (74_all_gcc46_cloog-dl.patch,27.16 KB, patch)
2012-03-02 15:06 UTC, Andreas Sturmlechner
Details | Diff
76_all_4.7.0_c-family-headers.patch (76_all_4.7.0_c-family-headers.patch,1.64 KB, patch)
2012-03-02 15:07 UTC, Andreas Sturmlechner
Details | Diff
FUATUERS=test USE=test ebuild test output (gcc-4.6.3.txt,225.39 KB, text/plain)
2012-03-04 13:29 UTC, David Kredba
Details
/var/tmp/portage/sys-devel/gcc-4.6.3/temp/74_all_gcc46_cloog-dl.patch.out (74_all_gcc46_cloog-dl.patch.out,11.85 KB, text/plain)
2012-03-15 15:05 UTC, Patrick McMunn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tolga Dalman 2012-03-02 10:19:17 UTC
GCC 4.6.3 is just release with a number of important fixes. Please bump new ebuild.

Thanks!
Comment 1 Andreas Sturmlechner gentoo-dev 2012-03-02 15:04:28 UTC
I was bored last night and made gcc-4.6.3 build successfully.

The following tarballs can be renamed from 4.6.2 to 4.6.3 without modification:
- gcc-4.6.2-piepatches-v0.5.0.tar.bz2
- gcc-4.6.2-uclibc-patches-1.0.tar.bz2

gcc-4.6.2-patches-1.4.tar.bz2 needs to be unpacked, the following patches removed:
- 75_all_arm_4.7.0_strict-volatile-bitfields.patch
- 77_all_pr51106_4.6.3_ice-move_insn.patch

Those seem to have been committed upstream.

These packages didn't apply without porting:
- 74_all_gcc46_cloog-dl.patch
- 76_all_4.7.0_c-family-headers.patch (kdiff3 called this one malformed in 1.4)

I will upload my work so you can replace those two patches and then re-create the tar.bz2 package, I renamed it to gcc-4.6.3-patches-1.0.tar.bz2

The 4.6.2 ebuild works just fine, rename it to 4.6.3 and don't forget to set PATCH_VER="1.0" if you did rename the gentoo patchset too.
Comment 2 Andreas Sturmlechner gentoo-dev 2012-03-02 15:06:47 UTC
Created attachment 303993 [details, diff]
74_all_gcc46_cloog-dl.patch
Comment 3 Andreas Sturmlechner gentoo-dev 2012-03-02 15:07:17 UTC
Created attachment 303995 [details, diff]
76_all_4.7.0_c-family-headers.patch
Comment 4 Ulenrich 2012-03-03 19:05:49 UTC
Works like a charm 
(But I didnt test the graphite-cloog) 
Very thanx.
Comment 5 David Kredba 2012-03-04 13:27:57 UTC
Raw output of a ebuild test attached.
Contrib/test_results does not see output ofmake -k check.
Comment 6 David Kredba 2012-03-04 13:29:01 UTC
Created attachment 304211 [details]
FUATUERS=test USE=test ebuild test output
Comment 7 Wojciech Myrda 2012-03-11 14:19:40 UTC
strangly I am not able to compile gcc 4.6.3 as the simple renamong of the ebuild does not help. I stumbled upon strange error

gcc # ebuild gcc-4.6.3.ebuild digest
Error(s) in metadata for 'sys-devel/gcc-4.6.3':
  PDEPEND: USE flag 'go' referenced in conditional 'go?' is not in IUSE

I bypassed it by adding IUSE="${IUSE} go" in the ebuild but now I get

gcc # emerge gcc
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-devel/gcc-4.6.3 from bigvo
 * gcc-4.6.3.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...[ ok ]
 * gcc-4.6.3-uclibc-patches-1.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...[ ok ]
 * gcc-4.6.3-patches-1.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...[ ok ]
 * gcc-4.6.3-piepatches-v0.5.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...[ ok ]
 * gcc-4.4.3-specs-0.2.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...[ ok ]
 * ERROR: sys-devel/gcc-4.6.3 failed (setup phase):
 *   Your ebuild needs to set the ETYPE variable
 *
 * Call stack:
 *          ebuild.sh, line  85:  Called pkg_setup
 *   gcc-4.6.3.ebuild, line  59:  Called toolchain_pkg_setup
 *   toolchain.eclass, line  23:  Called gcc_pkg_setup
 *   toolchain.eclass, line 783:  Called die
 * The specific snippet of code:
 *      [[ -z ${ETYPE} ]] && die "Your ebuild needs to set the ETYPE variable"

What might be a cause of that? In number of years with Gentoo I have not stumbeled upon this error myself nor I have found it in the forums...

please advice
Comment 8 Andreas Sturmlechner gentoo-dev 2012-03-11 16:45:01 UTC
Is there some mixup with an old toolchain.eclass going on in your local overlay?
Comment 9 Wojciech Myrda 2012-03-13 21:29:38 UTC
yes that was it. I forgot I had such a file when I copied it from toolchain overlay back in the day.

btw ebuild works perfectly and gcc works fine when build using instructions from Andreas Sturmlechner 

Thnka You both
Comment 10 Patrick McMunn 2012-03-15 15:03:39 UTC
For some reason the patch 74_all_gcc46_cloog-dl.patch is failing on my system. I don't know if the second patch works yet since it fails before it get to 76_all_4.7.0_c-family-headers.patch.

gcc-4.4.3-specs-0.2.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                     [ ok ]
 * ecj-4.5.jar RMD160 SHA1 SHA256 size ;-) ...                                                                                                                       [ ok ]
 * 
 * LTO support is still experimental and unstable.
 * Any bugs resulting from the use of LTO will not be fixed.
 * 
>>> Unpacking source...
>>> Unpacking gcc-4.6.3.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.6.3/work
>>> Unpacking gcc-4.6.3-patches-1.0.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.6.3/work
>>> Unpacking gcc-4.6.3-uclibc-patches-1.0.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.6.3/work
>>> Unpacking gcc-4.6.3-piepatches-v0.5.0.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.6.3/work
>>> Unpacking gcc-4.4.3-specs-0.2.0.tar.bz2 to /var/tmp/portage/sys-devel/gcc-4.6.3/work
 * Applying Gentoo patches ...
 *   01_all_joined-cpp-defs.patch ...                                                                                                                                [ ok ]
 *   03_all_java-nomulti.patch ...                                                                                                                                   [ ok ]
 *   08_all_cross-compile.patch ...                                                                                                                                  [ ok ]
 *   10_all_default-fortify-source.patch ...                                                                                                                         [ ok ]
 *   11_all_default-warn-format-security.patch ...                                                                                                                   [ ok ]
 *   12_all_default-warn-trampolines.patch ...                                                                                                                       [ ok ]
 *   15_all_libgomp-Werror.patch ...                                                                                                                                 [ ok ]
 *   25_all_alpha-mieee-default.patch ...                                                                                                                            [ ok ]
 *   26_all_alpha-asm-mcpu.patch ...                                                                                                                                 [ ok ]
 *   29_all_arm_armv4t-default.patch ...                                                                                                                             [ ok ]
 *   34_all_ia64_note.GNU-stack.patch ...                                                                                                                            [ ok ]
 *   38_all_sh_pr24836_all-archs.patch ...                                                                                                                           [ ok ]
 *   42_all_superh_default-multilib.patch ...                                                                                                                        [ ok ]
 *   50_all_libiberty-asprintf.patch ...                                                                                                                             [ ok ]
 *   51_all_libiberty-pic.patch ...                                                                                                                                  [ ok ]
 *   52_all_netbsd-Bsymbolic.patch ...                                                                                                                               [ ok ]
 *   74_all_gcc46_cloog-dl.patch ...

 * Failed Patch: 74_all_gcc46_cloog-dl.patch !
 *  ( /var/tmp/portage/sys-devel/gcc-4.6.3/work/patch/74_all_gcc46_cloog-dl.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/sys-devel/gcc-4.6.3/temp/74_all_gcc46_cloog-dl.patch.out

 * ERROR: sys-devel/gcc-4.6.3 failed (unpack phase):
 *   Failed Patch: 74_all_gcc46_cloog-dl.patch!
 * 
 * Call stack:
 *     ebuild.sh, line   84:  Called src_unpack
 *   environment, line 4495:  Called toolchain_src_unpack
 *   environment, line 5058:  Called gcc_src_unpack
 *   environment, line 2816:  Called epatch '/var/tmp/portage/sys-devel/gcc-4.6.3/work/patch'
 *   environment, line 1773:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 * 
 * If you need support, post the output of 'emerge --info =sys-devel/gcc-4.6.3',
 * the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.6.3'.
 * This ebuild is from an overlay named 'local': '/var/lib/layman/local/'
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.6.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.6.3/temp/environment'.
 * S: '/var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3'

>>> Failed to emerge sys-devel/gcc-4.6.3, Log file:

>>>  '/var/tmp/portage/sys-devel/gcc-4.6.3/temp/build.log'
Comment 11 Patrick McMunn 2012-03-15 15:05:53 UTC
Created attachment 305513 [details]
/var/tmp/portage/sys-devel/gcc-4.6.3/temp/74_all_gcc46_cloog-dl.patch.out
Comment 12 Ryan Hill (RETIRED) gentoo-dev 2012-03-16 04:31:48 UTC
If you guys can wait a couple days you won't have to worry about it.
Comment 13 Ryan Hill (RETIRED) gentoo-dev 2012-03-28 05:07:54 UTC
Sorry about the delay.  The patch for PR51106 (77_all_pr51106_4.6.3_ice-move_insn.patch) is causing an ICE elsewhere.  We'll wait for an updated patch to go in upstream.
Comment 14 Ryan Hill (RETIRED) gentoo-dev 2012-04-14 02:41:58 UTC
Magnus, I'm including piepatches 0.5.1 in this bump, is that correct?
Comment 15 Tolga Dalman 2012-04-16 09:32:54 UTC
I fail to understand where the actual problem is. As far as I can see from the referenced GCC bug (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51106), this issue affects several GCC versions (including GCC 4.6.2).
Comment 16 Robert Cabrera 2012-04-24 18:46:28 UTC
Any updates on when this may be hitting the tree?

I've tried the method Andreas detailed in comment 1 in my local overlay, but I'm having issues with the patches not applying correctly, so emerge fails.

I've had few serious problems with this branch (the exception being grub), but have experienced significant speed improvements over the stable 4.5.x branch on my core2 duo laptop. It used to take me over 32+ hours to recompile the 1100+ packages in my setup. Now with 4.6.2 it takes around 26. That's a tremendous improvement IMHO. I love to see if there's further speed improvement with 4.6.3.

I'd really like to see this update incorporated soon. Even if it's hard masked like previous versions of gcc-4.6.x. TIA
Comment 17 Ryan Hill (RETIRED) gentoo-dev 2012-04-27 01:19:40 UTC
As soon as I get a day off work.  It should be Saturday unless something else goes wrong.
Comment 18 Ryan Hill (RETIRED) gentoo-dev 2012-04-27 01:22:07 UTC
Actually, screw it, I'll do it now.
Comment 19 Alec Meyers 2012-04-27 15:59:25 UTC
(In reply to comment #18)
> Actually, screw it, I'll do it now.

I don't think you added it to CVS...
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/gcc/
Comment 20 Ryan Hill (RETIRED) gentoo-dev 2012-04-28 01:00:06 UTC
The commit failed but I wandered away without noticing.  Fixed now.
Comment 21 Michael Weber (RETIRED) gentoo-dev 2012-04-28 08:06:17 UTC
(In reply to comment #20)
> The commit failed but I wandered away without noticing.  Fixed now.

Thanks a lot!
Comment 22 Robert Cabrera 2012-04-30 18:31:39 UTC
Thanks, your rock!!!
Comment 23 Robert Cabrera 2012-04-30 18:32:09 UTC
(In reply to comment #22)
> Thanks, your rock!!!

I meant you rock!!! LOL!