Bug 56001 - [4.7 Regression] relocation truncated to fit: R_PPC_REL24 breaks bootstrap on powerpc64-linux
Summary: [4.7 Regression] relocation truncated to fit: R_PPC_REL24 breaks bootstrap on...
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.7.3
: P1 normal
Target Milestone: 4.7.3
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-16 10:26 UTC by Mikael Pettersson
Modified: 2013-01-22 22:03 UTC (History)
0 users

See Also:
Host:
Target: powerpc64-linux
Build:
Known to work: 4.7.2, 4.8.0
Known to fail: 4.7.3
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Pettersson 2013-01-16 10:26:01 UTC
Attempting to bootstrap gcc-4.7-20130112 on powepc64-linux fails for me with:

gcc   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H  -o cc1 c-lang.o c-family/stub-objc.o attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o default-c.o rs6000-c.o \
  cc1-checksum.o main.o  libbackend.a libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a    -L/home/mikpe/pkgs/linux-ppc64/gmp-5.0.5/lib -L/home/mikpe/pkgs/linux-ppc64/mpfr-3.1.1/lib -L/home/mikpe/pkgs/linux-ppc64/mpc-1.0.1/lib -lmpc -lmpfr -lgmp   -L../zlib -lz
libbackend.a(except.o): In function `VEC_uchar_base_splice':
/mnt/archive/gcc-4.7-20130112/gcc/vecprim.h:27:(.text+0x9238): relocation truncated to fit: R_PPC_REL24 against symbol `memcpy@@GLIBC_2.0' defined in .plt section in /usr/lib/../lib/crt1.o
libbackend.a(except.o): In function `VEC_uchar_base_quick_insert':
/mnt/archive/gcc-4.7-20130112/gcc/vecprim.h:27:(.text+0x92f0): relocation truncated to fit: R_PPC_REL24 against symbol `memmove@@GLIBC_2.0' defined in .plt section in /usr/lib/../lib/crt1.o
libbackend.a(except.o): In function `VEC_uchar_base_ordered_remove':
/mnt/archive/gcc-4.7-20130112/gcc/vecprim.h:27:(.text+0x934c): relocation truncated to fit: R_PPC_REL24 against symbol `memmove@@GLIBC_2.0' defined in .plt section in /usr/lib/../lib/crt1.o
libbackend.a(except.o): In function `VEC_uchar_base_block_remove':
/mnt/archive/gcc-4.7-20130112/gcc/vecprim.h:27:(.text+0x93c0): relocation truncated to fit: R_PPC_REL24 against symbol `memmove@@GLIBC_2.0' defined in .plt section in /usr/lib/../lib/crt1.o
collect2: ld returned 1 exit status
make[3]: *** [cc1] Error 1
make[3]: Leaving directory `/mnt/archive/objdir47/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/mnt/archive/objdir47'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/mnt/archive/objdir47'
make: *** [bootstrap] Error 2

On the same machine with the same system toolchain (gcc-4.6.3, binutils-2.22), both the previous 4.7 snapshot (4.7-20130105) and the current 4.8 snapshot (4.8-20130113) bootstrapped fine.
Comment 1 Andreas Schwab 2013-01-16 19:04:34 UTC
Is your toolchain using BSS PLT?
Comment 2 Mikael Pettersson 2013-01-16 19:47:20 UTC
(In reply to comment #1)
> Is your toolchain using BSS PLT?

I don't know, it's fairly vanilla.  Do you have some test I could run?
Comment 3 Mikael Pettersson 2013-01-22 22:03:13 UTC
Works now, with gcc-4.7-20130119 on a partially updated system (newer glibc, binutils, system gcc, tcl, expect, dejagnu).  Closing.