[Bug target/47230] [4.6 Regression] gcc fails to bootstrap on alpha in stage2 with relocation truncated to fit: GPREL16 against ...

2015-03-27 Thread uros at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47230

--- Comment #27 from uros at gcc dot gnu.org ---
Author: uros
Date: Fri Mar 27 17:08:44 2015
New Revision: 221739

URL: https://gcc.gnu.org/viewcvs?rev=221739root=gccview=rev
Log:
Install back PR target/47230 fix (Revert the revert).

Added:
trunk/config/mh-alpha-linux
Modified:
trunk/ChangeLog
trunk/config/ChangeLog
trunk/configure
trunk/configure.ac
trunk/gcc/ChangeLog
trunk/gcc/doc/install.texi


[Bug target/47230] [4.6 Regression] gcc fails to bootstrap on alpha in stage2 with relocation truncated to fit: GPREL16 against ...

2015-02-25 Thread uros at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47230

--- Comment #25 from uros at gcc dot gnu.org ---
Author: uros
Date: Wed Feb 25 19:59:31 2015
New Revision: 220990

URL: https://gcc.gnu.org/viewcvs?rev=220990root=gccview=rev
Log:
Revert:
2014-07-26  Uros Bizjak  ubiz...@gmail.com

PR target/47230
* configure.ac (alpha*-*-linux*): Use mh-alpha-linux.
* configure: Regenerate.

/config

Revert:
2014-07-26  Uros Bizjak  ubiz...@gmail.com

PR target/47230
* mh-alpha-linux: New file.

/gcc

PR target/47230
* doc/install.texi (Specific, alpha*-*-*): Document that binutils 2.25
or newer are required.


Removed:
trunk/config/mh-alpha-linux
Modified:
trunk/ChangeLog
trunk/config/ChangeLog
trunk/configure
trunk/configure.ac
trunk/gcc/ChangeLog
trunk/gcc/doc/install.texi


[Bug target/47230] [4.6 Regression] gcc fails to bootstrap on alpha in stage2 with relocation truncated to fit: GPREL16 against ...

2015-02-25 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47230

--- Comment #26 from Uroš Bizjak ubizjak at gmail dot com ---
(In reply to uros from comment #25)

The linker bug [1] was fixed in binutils 2.25 and GCC workaround was removed
for gcc 5.0.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=5276

[Bug target/47230] [4.6 Regression] gcc fails to bootstrap on alpha in stage2 with relocation truncated to fit: GPREL16 against ...

2014-07-26 Thread uros at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47230

--- Comment #21 from uros at gcc dot gnu.org ---
Author: uros
Date: Sat Jul 26 15:11:14 2014
New Revision: 213081

URL: https://gcc.gnu.org/viewcvs?rev=213081root=gccview=rev
Log:
PR target/47230
* configure.ac (alpha*-*-linux*): Use mh-alpha-linux.
* configure: Regenerate.

config/ChangeLog:

PR target/47230
* mh-alpha-linux: New file.


Added:
trunk/config/mh-alpha-linux
Modified:
trunk/ChangeLog
trunk/config/ChangeLog
trunk/configure
trunk/configure.ac


[Bug target/47230] [4.6 Regression] gcc fails to bootstrap on alpha in stage2 with relocation truncated to fit: GPREL16 against ...

2014-07-26 Thread uros at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47230

--- Comment #22 from uros at gcc dot gnu.org ---
Author: uros
Date: Sat Jul 26 15:18:04 2014
New Revision: 213082

URL: https://gcc.gnu.org/viewcvs?rev=213082root=gccview=rev
Log:
PR target/47230
* configure.ac (alpha*-*-linux*): Use mh-alpha-linux.
* configure: Regenerate.

config/ChangeLog:

PR target/47230
* mh-alpha-linux: New file.


Added:
branches/gcc-4_9-branch/config/mh-alpha-linux
Modified:
branches/gcc-4_9-branch/ChangeLog
branches/gcc-4_9-branch/config/ChangeLog
branches/gcc-4_9-branch/configure
branches/gcc-4_9-branch/configure.ac


[Bug target/47230] [4.6 Regression] gcc fails to bootstrap on alpha in stage2 with relocation truncated to fit: GPREL16 against ...

2014-07-26 Thread uros at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47230

--- Comment #23 from uros at gcc dot gnu.org ---
Author: uros
Date: Sat Jul 26 15:23:33 2014
New Revision: 213083

URL: https://gcc.gnu.org/viewcvs?rev=213083root=gccview=rev
Log:
PR target/47230
* configure.ac (alpha*-*-linux*): Use mh-alpha-linux.
* configure: Regenerate.

config/ChangeLog:

PR target/47230
* mh-alpha-linux: New file.


Added:
branches/gcc-4_8-branch/config/mh-alpha-linux
Modified:
branches/gcc-4_8-branch/ChangeLog
branches/gcc-4_8-branch/config/ChangeLog
branches/gcc-4_8-branch/configure
branches/gcc-4_8-branch/configure.ac


[Bug target/47230] [4.6 Regression] gcc fails to bootstrap on alpha in stage2 with relocation truncated to fit: GPREL16 against ...

2014-07-26 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47230

--- Comment #24 from Uroš Bizjak ubizjak at gmail dot com ---
Fixed (worked around) for real for 4.8.4, 4.9.2 and 4.10.

[Bug target/47230] [4.6 Regression] gcc fails to bootstrap on alpha in stage2 with relocation truncated to fit: GPREL16 against ...

2013-04-12 Thread jakub at gcc dot gnu.org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47230



Jakub Jelinek jakub at gcc dot gnu.org changed:



   What|Removed |Added



 Status|NEW |RESOLVED

 Resolution||FIXED

   Target Milestone|4.6.4   |4.7.0



--- Comment #20 from Jakub Jelinek jakub at gcc dot gnu.org 2013-04-12 
16:17:20 UTC ---

The 4.6 branch has been closed, fixed in GCC 4.7.0.


[Bug target/47230] [4.6 Regression] gcc fails to bootstrap on alpha in stage2 with relocation truncated to fit: GPREL16 against ...

2012-04-12 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47230

--- Comment #18 from Mikael Pettersson mikpe at it dot uu.se 2012-04-12 
10:09:32 UTC ---
It seems to be triggered(*) by Uros' PR46533 patch in r166999:
http://gcc.gnu.org/viewcvs?view=revisionrevision=166999

Repeat-by:
1. have cross tools to alpha-linux hosted on e.g. x86, mine has binutils-2.20.1
2. build gcc-4.6 r166998 as cross to alpha-linux
3. used the above to cross-build a linux-3.3.0 kernel, this works for me
4. repeat steps 2 and 3 with gcc-4.6 r166999, gcc builds ok but the kernel
build fails with the usual 'relocation truncated to fit: GPREL16 against ...'
errors

In my cross environment gcc 4.7 and 4.8 also fail to build a linux kernel, but
4.5.3 and 4.4.7 work.

(*) Presumably gcc triggers a bug in ld.


[Bug target/47230] [4.6 Regression] gcc fails to bootstrap on alpha in stage2 with relocation truncated to fit: GPREL16 against ...

2012-04-12 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47230

--- Comment #19 from Uros Bizjak ubizjak at gmail dot com 2012-04-12 10:24:36 
UTC ---
(In reply to comment #18)
 It seems to be triggered(*) by Uros' PR46533 patch in r166999:
 http://gcc.gnu.org/viewcvs?view=revisionrevision=166999

I don't think that this patch has anything to do with GPREL16. The patch fixes
relocation on functions, where you have problems with symbol relocations.

 Repeat-by:
 1. have cross tools to alpha-linux hosted on e.g. x86, mine has 
 binutils-2.20.1
 2. build gcc-4.6 r166998 as cross to alpha-linux
 3. used the above to cross-build a linux-3.3.0 kernel, this works for me
 4. repeat steps 2 and 3 with gcc-4.6 r166999, gcc builds ok but the kernel
 build fails with the usual 'relocation truncated to fit: GPREL16 against ...'
 errors

Just stick -Wl,--no-relax somewhere. This is standard practice to build a
kernel.


[Bug target/47230] [4.6 Regression] gcc fails to bootstrap on alpha in stage2 with relocation truncated to fit: GPREL16 against ...

2012-04-11 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47230

--- Comment #17 from Mikael Pettersson mikpe at it dot uu.se 2012-04-11 
20:48:54 UTC ---
With binutils-2.22 (vanilla) I'm unable to bootstrap gcc-4.6.3 on
alphaev6-unknown-linux, due to a bunch of 'relocation truncated to fit' errors.
 Applying the patch from #c12 allows gcc-4.6.3 to bootstrap, but that compiler
is unable to build a linux-3.3.0 kernel, the final vmlinux link step fails with
a bunch of 'relocation truncated to fit: GPREL16' errors .

gcc-4.4.7 + binutils-2.22 works.


[Bug target/47230] [4.6 Regression] gcc fails to bootstrap on alpha in stage2 with relocation truncated to fit: GPREL16 against ...

2012-03-15 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47230

Uros Bizjak ubizjak at gmail dot com changed:

   What|Removed |Added

Summary|[4.6/4.7/4.8 Regression]|[4.6 Regression] gcc fails
   |gcc fails to bootstrap on   |to bootstrap on alpha in
   |alpha in stage2 with|stage2 with relocation
   |relocation truncated to|truncated to fit: GPREL16
   |fit: GPREL16 against ...   |against ...

--- Comment #16 from Uros Bizjak ubizjak at gmail dot com 2012-03-15 14:17:23 
UTC ---
gcc again bootstraps OK on 4.7 branch and 4.8 mainline.


[Bug target/47230] [4.6 Regression] gcc fails to bootstrap on alpha in stage2 with relocation truncated to fit: GPREL16 against ...

2011-03-07 Thread belyshev at depni dot sinp.msu.ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47230

Serge Belyshev belyshev at depni dot sinp.msu.ru changed:

   What|Removed |Added

   Keywords||link-failure
 Status|RESOLVED|REOPENED
   Last reconfirmed|2011-01-09 13:11:00 |2011-03-07 19:05
 CC||belyshev at depni dot
   ||sinp.msu.ru
  Component|bootstrap   |target
 Resolution|FIXED   |

--- Comment #3 from Serge Belyshev belyshev at depni dot sinp.msu.ru 
2011-03-07 19:07:36 UTC ---
Bootstrap issue disappeared, but now linux kernel build fails with the same
error:

  ld  -static -N  --build-id -o .tmp_vmlinux1 -T arch/alpha/kernel/vmlinux.lds
arch/alpha/kernel/head.o  init/built-in.o --start-group  usr/built-in.o 
arch/alpha/kernel/built-in.o  arch/alpha/mm/built-in.o 
arch/alpha/math-emu/built-in.o  kernel/built-in.o  mm/built-in.o  fs/built-in.o
 ipc/built-in.o  security/built-in.o  crypto/built-in.o  block/built-in.o 
lib/lib.a  arch/alpha/lib/lib.a  lib/built-in.o  arch/alpha/lib/built-in.o 
drivers/built-in.o  sound/built-in.o  firmware/built-in.o  net/built-in.o
--end-group 
init/built-in.o: In function `do_one_initcall':
/home/ssb/src/linux/init/main.c:736: relocation truncated to fit: GPREL16
against symbol `initcall_debug' defined in .sbss section in init/built-in.o
/home/ssb/src/linux/init/main.c:746: relocation truncated to fit: GPREL16
against symbol `initcall_debug' defined in .sbss section in init/built-in.o
/home/ssb/src/linux/init/main.c:758: relocation truncated to fit: GPREL16
against symbol `initcall_debug' defined in .sbss section in init/built-in.o
init/built-in.o: In function `set_reset_devices':
/home/ssb/src/linux/init/main.c:197: relocation truncated to fit: GPREL16
against symbol `reset_devices' defined in .sbss section in init/built-in.o
init/built-in.o: In function `init_setup':
/home/ssb/src/linux/init/main.c:333: relocation truncated to fit: GPREL16
against `.sbss'
init/built-in.o: In function `rdinit_setup':
/home/ssb/src/linux/init/main.c:350: relocation truncated to fit: GPREL16
against `.sbss'
init/built-in.o: In function `unknown_bootoption':
/home/ssb/src/linux/init/main.c:296: relocation truncated to fit: GPREL16
against `.sbss'
/home/ssb/src/linux/init/main.c:299: relocation truncated to fit: GPREL16
against `.sbss'
/home/ssb/src/linux/init/main.c:304: relocation truncated to fit: GPREL16
against `.sbss'
/home/ssb/src/linux/init/main.c:305: relocation truncated to fit: GPREL16
against `.sbss'
/home/ssb/src/linux/init/main.c:314: additional relocation overflows omitted
from the output
make: *** [.tmp_vmlinux1] Error 1