Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 539950 - sys-devel/gcc-4.8.3 fails to compile on alpha because of the failed bootstrap comparison
Summary: sys-devel/gcc-4.8.3 fails to compile on alpha because of the failed bootstrap...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: Alpha Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard: fixed in 4.8.4
Keywords:
Depends on:
Blocks: gcc-4.8-stable
  Show dependency tree
 
Reported: 2015-02-13 09:59 UTC by Agostino Sarubbo
Modified: 2015-02-22 13:26 UTC (History)
1 user (show)

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


Attachments
build log (gcc-4.8.3:20150212-140015.log.bz2,131.22 KB, application/x-bzip)
2015-02-13 09:59 UTC, Agostino Sarubbo
Details
fix bootstrap comparison on alpha gcc-4.8.4 (0001-Backport-from-mainline.patch,9.62 KB, patch)
2015-02-20 13:17 UTC, Anthony Basile
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2015-02-13 09:59:14 UTC
Created attachment 396332 [details]
build log

4.9.2 works for me.

Portage 2.2.8-r1 (default/linux/alpha/13.0, gcc-4.7.3, glibc-2.19-r1, 3.18.1 alpha)                                                                                                                                                                                            
=================================================================                                                                                                                                                                                                              
System uname: Linux-3.18.1-alpha-EV68AL-with-gentoo-2.2                                                                                                                                                                                                                        
KiB Mem:     8304544 total,    355048 free                                                                                                                                                                                                                                     
KiB Swap:     977912 total,    966320 free                                                                                                                                                                                                                                     
Timestamp of tree: Fri, 13 Feb 2015 01:45:01 +0000                                                                                                                                                                                                                             
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2                                                                                                                                                                                                                                          
app-shells/bash:          4.2_p45                                                                                                                                                                                                                                              
dev-lang/perl:            5.18.2-r1                                                                                                                                                                                                                                            
dev-lang/python:          2.7.7, 3.3.5-r1                                                                                                                                                                                                                                      
dev-util/cmake:           2.8.12.2-r1                                                                                                                                                                                                                                          
sys-apps/baselayout:      2.2                                                                                                                                                                                                                                                  
sys-apps/openrc:          0.12.4                                                                                                                                                                                                                                               
sys-apps/sandbox:         2.6-r1                                                                                                                                                                                                                                               
sys-devel/autoconf:       2.13, 2.69                                                                                                                                                                                                                                           
sys-devel/automake:       1.13.4                                                                                                                                                                                                                                               
sys-devel/binutils:       2.23.2                                                                                                                                                                                                                                               
sys-devel/gcc:            4.7.3-r1, 4.9.2                                                                                                                                                                                                                                      
sys-devel/gcc-config:     1.7.3                                                                                                                                                                                                                                                
sys-devel/libtool:        2.4.2-r1                                                                                                                                                                                                                                             
sys-devel/make:           3.82-r4                                                                                                                                                                                                                                              
sys-kernel/linux-headers: 3.13 (virtual/os-headers)                                                                                                                                                                                                                            
sys-libs/glibc:           2.19-r1                                                                                                                                                                                                                                              
Repositories: gentoo                                                                                                                                                                                                                                                           
ACCEPT_KEYWORDS="alpha"                                                                                                                                                                                                                                                        
ACCEPT_LICENSE="*"                                                                                                                                                                                                                                                             
CBUILD="alpha-unknown-linux-gnu"                                                                                                                                                                                                                                               
CFLAGS="-mieee -pipe -O2 -mcpu=ev4"                                                                                                                                                                                                                                            
CHOST="alpha-unknown-linux-gnu"                                                                                                                                                                                                                                                
CONFIG_PROTECT="/etc"                                                                                                                                                                                                                                                          
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"                                                                                                               
CXXFLAGS="-mieee -pipe -O2 -mcpu=ev4"                                                                                                                                                                                                                                          
DISTDIR="/usr/portage/distfiles/"                                                                                                                                                                                                                                              
EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going y -1"                                                                                                                                                                                                                         
FCFLAGS="-O2 -pipe"                                                                                                                                                                                                                                                            
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"                                                                                                                                                                                                                                                   
FFLAGS="-O2 -pipe"                                                                                                                                                                                                                                                             
GENTOO_MIRRORS="http://distfiles.gentoo.org"                                                                                                                                                                                                                                   
LANG="it_IT.UTF-8"                                                                                                                                                                                                                                                             
LC_ALL="en_US.utf8"                                                                                                                                                                                                                                                            
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"                                                                                                                                                                                                                         
MAKEOPTS="-j4"                                                                                                                                                                                                                                                                 
PKGDIR="/usr/portage/packages"                                                                                                                                                                                                                                                 
PORTAGE_CONFIGROOT="/"                                                                                                                                                                                                                                                         
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                               
PORTAGE_TMPDIR="/var/tmp"                                                                                                                                                                                                                                                      
PORTDIR="/usr/portage"                                                                                                                                                                                                                                                         
PORTDIR_OVERLAY=""                                                                                                                                                                                                                                                             
USE="X acl alpha apng berkdb bzip2 cli cracklib crypt cxx dlz dri fortran gdbm iconv ipv6 libav modules ncurses nls nptl openmp pam pcre readline session ssl tcpd unicode zlib" ALSA_CARDS="ali5451 als4000 bt87x ca0106 cmipci emu10k1 ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 maestro3 trident usb-audio via82xx ymfpci" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage tdfx dummy v4l"
USE_PYTHON="2.7 3.3"
Comment 1 Anthony Basile gentoo-dev 2015-02-13 12:02:24 UTC
You can try 4.8.4 but it'll probably fail too because the only fix between 4.8.3 which is alpha related is PR 61586.  I can't help but notice that bug #519104 c #4 was able to fix the problem on 4.6 by removing a -march flag.  People have been building gcc on alpha and not hitting the comparison problem so it may be something trivial we're doing.  I'd hate to skip 4.8 only to hit the same trivial problem again on 4.9.
Comment 2 Agostino Sarubbo gentoo-dev 2015-02-14 19:23:49 UTC
(In reply to Anthony Basile from comment #1)
> I can't help but notice that bug #519104 c #4 was able to fix the problem on   > 4.6 by removing a -march flag. 

removing -mcpu=ev4 didn't help.
Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2015-02-20 11:56:45 UTC
I've talked with one of the gcc maintainers and he tells me that this commit should fix it:
https://gcc.gnu.org/ml/gcc-cvs/2015-02/msg00527.html

Sorry there's no upstream bug report...
Comment 4 Anthony Basile gentoo-dev 2015-02-20 13:17:35 UTC
Created attachment 397058 [details, diff]
fix bootstrap comparison on alpha gcc-4.8.4

1) Thanks for inquiring upstream Raul.

2) Can you test this patch?  

  ebuild gcc-4.8.4.ebuild clean prepare
  apply patch
  ebuild gcc-4.8.4.ebuild install

If it works I'll add it to the 4.8.4 patchset.
Comment 5 Agostino Sarubbo gentoo-dev 2015-02-21 17:11:48 UTC
(In reply to Anthony Basile from comment #4)
> Created attachment 397058 [details, diff] [details, diff]
> fix bootstrap comparison on alpha gcc-4.8.4
> 
> 1) Thanks for inquiring upstream Raul.
> 
> 2) Can you test this patch?  
> 
>   ebuild gcc-4.8.4.ebuild clean prepare
>   apply patch
>   ebuild gcc-4.8.4.ebuild install
> 
> If it works I'll add it to the 4.8.4 patchset.

As discussed on irc, the patch does not clean apply because of the changelog, but with the patch of the .c files now gcc compiles for me without errors.
Comment 6 Anthony Basile gentoo-dev 2015-02-21 17:41:14 UTC
(In reply to Agostino Sarubbo from comment #5)
> (In reply to Anthony Basile from comment #4)
> > Created attachment 397058 [details, diff] [details, diff] [details, diff]
> > fix bootstrap comparison on alpha gcc-4.8.4
> > 
> > 1) Thanks for inquiring upstream Raul.
> > 
> > 2) Can you test this patch?  
> > 
> >   ebuild gcc-4.8.4.ebuild clean prepare
> >   apply patch
> >   ebuild gcc-4.8.4.ebuild install
> > 
> > If it works I'll add it to the 4.8.4 patchset.
> 
> As discussed on irc, the patch does not clean apply because of the
> changelog, but with the patch of the .c files now gcc compiles for me
> without errors.

This has been added to =sys-devel/gcc-4.8.4.  Patchset 1.3.  No revbump.  If you just emerge gcc-4.8.4 it should work directly from the ebuild.

Reopen if there is still some issue.
Comment 7 Agostino Sarubbo gentoo-dev 2015-02-22 13:26:05 UTC
I confirm that 4.8.4 compiles.