public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/37739]  New: bootstrap broken with core gcc > gcc-4.2.x
@ 2008-10-05 19:19 andreast at gcc dot gnu dot org
  2008-10-05 19:27 ` [Bug bootstrap/37739] " andreast at gcc dot gnu dot org
                   ` (39 more replies)
  0 siblings, 40 replies; 42+ messages in thread
From: andreast at gcc dot gnu dot org @ 2008-10-05 19:19 UTC (permalink / raw)
  To: gcc-bugs

Since a longer time bootstrap is broken for powerpc-unknown-linux-gnu, 32-bit
at least. The interesting condition is, it only fails when the bootstrapping
compiler is > 4.2.x, iow. 4.3.x and 4.4.x (Well 4.4 I did not confirm myself)

The failure started with r132589, this commit itself does not contain a fault
per se. It is just uncovering the issue.

The failure manifests itself as:
gcc  -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition
-Wc++-compat -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H  -o
cc1-dummy c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o
c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o
c-semantics.o c-ppoutput.o c-cppbuiltin.o c-objc-common.o c-dump.o c-pch.o
c-parser.o rs6000-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o
dummy-checksum.o \
          main.o tree-browser.o libbackend.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a ../libcpp/libcpp.a   ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a -lmpfr -lgmp   -lmpfr -lgmp
/usr/lib/gcc/ppc64-redhat-linux/4.3.0/../../../../lib/crt1.o: In function
`_start':
(.text+0x20): relocation truncated to fit: R_PPC_REL24 against symbol
`__libc_start_main@@GLIBC_2.0' defined in .glink section in
/usr/lib/gcc/ppc64-redhat-linux/4.3.0/../../../../lib/crt1.o
/usr/lib/gcc/ppc64-redhat-linux/4.3.0/crtbegin.o:(.fini+0x0): relocation
truncated to fit: R_PPC_REL24 against `.text'
/usr/lib/gcc/ppc64-redhat-linux/4.3.0/crtend.o:(.init+0x0): relocation
truncated to fit: R_PPC_REL24 against `.text'
c-lang.o: In function `VEC_tree_base_quick_insert':
/home/andreast/devel/gcc/head-clean/gcc/gcc/tree.h:190: relocation truncated to
fit: R_PPC_REL24 against symbol `memmove@@GLIBC_2.0' defined in .glink section
in /usr/lib/gcc/ppc64-redhat-linux/4.3.0/../../../../lib/crt1.o
c-lang.o: In function `VEC_tree_base_ordered_remove':
/home/andreast/devel/gcc/head-clean/gcc/gcc/tree.h:190: relocation truncated to
fit: R_PPC_REL24 against symbol `memmove@@GLIBC_2.0' defined in .glink section
in /usr/lib/gcc/ppc64-redhat-linux/4.3.0/../../../../lib/crt1.o
c-lang.o: In function `VEC_tree_base_block_remove':
/home/andreast/devel/gcc/head-clean/gcc/gcc/tree.h:190: relocation truncated to
fit: R_PPC_REL24 against symbol `memmove@@GLIBC_2.0' defined in .glink section
in /usr/lib/gcc/ppc64-redhat-linux/4.3.0/../../../../lib/crt1.o
c-lang.o: In function `VEC_tree_gc_copy':
/home/andreast/devel/gcc/head-clean/gcc/gcc/tree.h:191: relocation truncated to
fit: R_PPC_REL24 against symbol `memcpy@@GLIBC_2.0' defined in .glink section
in /usr/lib/gcc/ppc64-redhat-linux/4.3.0/../../../../lib/crt1.o
c-lang.o: In function `VEC_tree_gc_safe_grow_cleared':
/home/andreast/devel/gcc/head-clean/gcc/gcc/tree.h:191: relocation truncated to
fit: R_PPC_REL24 against symbol `memset@@GLIBC_2.0' defined in .glink section
in /usr/lib/gcc/ppc64-redhat-linux/4.3.0/../../../../lib/crt1.o
c-lang.o: In function `VEC_tree_heap_free':
/home/andreast/devel/gcc/head-clean/gcc/gcc/tree.h:192: relocation truncated to
fit: R_PPC_REL24 against symbol `free@@GLIBC_2.0' defined in .glink section in
/usr/lib/gcc/ppc64-redhat-linux/4.3.0/../../../../lib/crt1.o
c-lang.o: In function `VEC_tree_heap_copy':
/home/andreast/devel/gcc/head-clean/gcc/gcc/tree.h:192: relocation truncated to
fit: R_PPC_REL24 against symbol `memcpy@@GLIBC_2.0' defined in .glink section
in /usr/lib/gcc/ppc64-redhat-linux/4.3.0/../../../../lib/crt1.o
c-lang.o: In function `VEC_tree_heap_safe_grow_cleared':
/home/andreast/devel/gcc/head-clean/gcc/gcc/tree.h:192: additional relocation
overflows omitted from the output
collect2: ld returned 1 exit status
make[3]: *** [cc1-dummy] Error 1
make[3]: Leaving directory `/home/andreast/devel/gcc/head-clean/objdir/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/home/andreast/devel/gcc/head-clean/objdir'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/andreast/devel/gcc/head-clean/objdir'
make: *** [all] Error 2

The bootstrapping compiler has this version:

[andreast@mini objdir]$ gcc -v
Using built-in specs.
Target: ppc64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--enable-secureplt --with-long-double-128 --build=ppc64-redhat-linux
--target=ppc64-redhat-linux --with-cpu=default32
Thread model: posix
gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC)


The configuration flags used:

/home/andreast/devel/gcc/head-clean/gcc/configure
--prefix=/home/andreas/devel/gcc/head-clean/testbin --disable-static
--enable-languages=c

With Janis and Peter B. we found a workaround to bootstrap again:

Basically we need a very recent binutils (I use (GNU Binutils)
2.19.50.20080922) and a tweak to link cc1: --relax.

I'll attach the workaround patch later.

Due to the fact that I do not know on how to go on I have to file this PR.
I'll add Janis and Peter to CC as they did a big contribution in analyzing this
issue.


-- 
           Summary: bootstrap broken with core gcc > gcc-4.2.x
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: andreast at gcc dot gnu dot org
 GCC build triplet: powerpc-unknown-linux-gnu
  GCC host triplet: powerpc-unknown-linux-gnu
GCC target triplet: powerpc-unknown-linux-gnu


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


^ permalink raw reply	[flat|nested] 42+ messages in thread
[parent not found: <bug-37739-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2012-01-28  4:57 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-05 19:19 [Bug bootstrap/37739] New: bootstrap broken with core gcc > gcc-4.2.x andreast at gcc dot gnu dot org
2008-10-05 19:27 ` [Bug bootstrap/37739] " andreast at gcc dot gnu dot org
2008-10-05 21:55 ` schwab at suse dot de
2008-10-06 21:16 ` [Bug bootstrap/37739] [4.4 Regression] " pinskia at gcc dot gnu dot org
2008-10-06 21:54 ` pinskia at gcc dot gnu dot org
2008-10-22  3:31 ` mmitchel at gcc dot gnu dot org
2008-11-14 15:11 ` jakub at gcc dot gnu dot org
2008-11-16 13:04 ` jakub at gcc dot gnu dot org
2008-12-11 10:03 ` jakub at gcc dot gnu dot org
2008-12-11 11:30 ` rguenth at gcc dot gnu dot org
2008-12-11 16:35 ` jakub at gcc dot gnu dot org
2008-12-15 19:36 ` andreast at gcc dot gnu dot org
2008-12-19 14:58 ` jakub at gcc dot gnu dot org
2008-12-19 15:04 ` jakub at gcc dot gnu dot org
2009-02-11 18:14 ` lucier at math dot purdue dot edu
2009-06-11  0:01 ` mikpe at it dot uu dot se
2009-06-14  9:27 ` acrux at linuxmail dot org
2009-07-02 16:26 ` jan at codejunky dot org
2009-07-02 16:36 ` lucier at math dot purdue dot edu
2009-07-02 16:49 ` bergner at gcc dot gnu dot org
2009-07-03  1:38 ` amodra at bigpond dot net dot au
2009-07-19 17:04 ` rguenth at gcc dot gnu dot org
2009-07-19 19:23 ` rguenth at gcc dot gnu dot org
2009-07-19 19:24 ` rguenth at gcc dot gnu dot org
2009-07-22 17:21 ` giffordj at la dot twcbc dot com
2009-07-23 13:37 ` jakub at gcc dot gnu dot org
2009-07-23 16:51 ` giffordj at la dot twcbc dot com
2009-07-23 16:56 ` jakub at gcc dot gnu dot org
2009-07-23 18:36 ` giffordj at la dot twcbc dot com
2009-07-24  9:47 ` jakub at gcc dot gnu dot org
2009-07-24 13:12 ` giffordj at la dot twcbc dot com
2009-07-26 20:28 ` giffordj at la dot twcbc dot com
2009-08-06 17:32 ` giffordj at la dot twcbc dot com
2009-08-11 15:10 ` giffordj at la dot twcbc dot com
2009-08-31 21:48 ` mmitchel at gcc dot gnu dot org
2009-09-30  2:29 ` amodra at bigpond dot net dot au
2009-10-07 13:35 ` jakub at gcc dot gnu dot org
2009-10-07 19:55 ` andreast at gcc dot gnu dot org
2009-10-07 22:35 ` amodra at bigpond dot net dot au
2009-10-08  5:10 ` andreast at gcc dot gnu dot org
2010-06-07  8:40 ` rguenth at gcc dot gnu dot org
     [not found] <bug-37739-4@http.gcc.gnu.org/bugzilla/>
2012-01-28  5:17 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).