public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/52867] New: Compilation of gcc-4.4.7 with gcc-4.2.4 fails on arm platform
@ 2012-04-04 15:15 surrano at gmail dot com
  2012-04-04 18:17 ` [Bug bootstrap/52867] " rearnsha at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: surrano at gmail dot com @ 2012-04-04 15:15 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52867
           Summary: Compilation of gcc-4.4.7 with gcc-4.2.4 fails on arm
                    platform
    Classification: Unclassified
           Product: gcc
           Version: 4.4.7
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: surrano@gmail.com


Initial note: I don't know if it qualifies as a bug for GCC-4.2.4 (current
compiler) or GCC-4.4.7 (target compiler) so please adjust if necessary.

Architecture: ARM (D-Link DNS-323)
OS: chroot-ed Debian 5.0 Lenny

GCC used for compilation: 4.2.4
Delorian:/home/gab/dev/gcc-obj# gcc -v
Using built-in specs.
Target: arm-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2
--program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug
--enable-objc-gc --enable-mpfr --disable-libssp --enable-checking=release
--build=arm-linux-gnu --host=arm-linux-gnu --target=arm-linux-gnu
Thread model: posix
gcc version 4.2.4 (Debian 4.2.4-6)

GCC to be compiled: 4.4.7

GMP is fresh download, to be compiled together with GCC (5.0.4)
MPFR is fresh download, to be compiled together with GCC (3.1.0)
PPL is NOT installed (hope it's not mandatory)

Configure command: 
export CFLAGS="-O0"
../gcc-4.4.7/configure --enable-languages=c,c++ --with-mode=arm --disable-nls
2>&1 | tee log.configure3

Description of error:
1. When compiling without CFLAGS="-O0" (defaults to "-g -O2"), compilation
fails while building fixincludes:

gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -Wno-overlength-strings
-pedantic -Wno-long-long   -DHAVE_CONFIG_H -I. -I../../../gcc-4.4.7/fixincludes
-I../include -I../../../gcc-4.4.7/fixincludes/../include
../../../gcc-4.4.7/fixincludes/fixincl.c
../../../gcc-4.4.7/fixincludes/fixincl.c: In function 'run_compiles':
../../../gcc-4.4.7/fixincludes/fixincl.c:395: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.

Trial-and-error showed that compile gets over this point if "-O0" is used. The
"-g" flag is irrelevant, it is "-O2" that causes the segfault.

2. When compiling again, it fails because mpfr.h is not found.
I got over it by issuing "make compile" in mpfr dir.

3. When compiling again, it fails while compiling gcc/c-common.c:

gcc -c  -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 -I.
-I. -I../../gcc-4.4.7/gcc -I../../gcc-4.4.7/gcc/.
-I../../gcc-4.4.7/gcc/../include -I../../gcc-4.4.7/gcc/../libcpp/include
-I/home/gab/dev/gcc-obj/./gmp -I/home/gab/dev/gcc-4.4.7/gmp
-I/home/gab/dev/gcc-obj/./mpfr -I/home/gab/dev/gcc-4.4.7/mpfr 
-I../../gcc-4.4.7/gcc/../libdecnumber -I../../gcc-4.4.7/gcc/../libdecnumber/dpd
-I../libdecnumber    ../../gcc-4.4.7/gcc/c-common.c -o c-common.o
../../gcc-4.4.7/gcc/c-common.c: In function 'c_define_builtins':
../../gcc-4.4.7/gcc/c-common.c:3963: error: total size of local objects too
large
../../gcc-4.4.7/gcc/c-common.c:4036: confused by earlier errors, bailing out
The bug is not reproducible, so it is likely a hardware or OS problem.

I could not find any way to proceed forward with this.

Problem is reproducible on the command line when make fails, just by repeating
the appropriate gcc commands.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/52867] Compilation of gcc-4.4.7 with gcc-4.2.4 fails on arm platform
  2012-04-04 15:15 [Bug bootstrap/52867] New: Compilation of gcc-4.4.7 with gcc-4.2.4 fails on arm platform surrano at gmail dot com
@ 2012-04-04 18:17 ` rearnsha at gcc dot gnu.org
  2012-04-04 18:29 ` surrano at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2012-04-04 18:17 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #1 from Richard Earnshaw <rearnsha at gcc dot gnu.org> 2012-04-04 18:17:22 UTC ---
GCC 4.4 series is now end-of-life.  No further maintenance is planned.  Please
upgrade to a more recent set of sources


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/52867] Compilation of gcc-4.4.7 with gcc-4.2.4 fails on arm platform
  2012-04-04 15:15 [Bug bootstrap/52867] New: Compilation of gcc-4.4.7 with gcc-4.2.4 fails on arm platform surrano at gmail dot com
  2012-04-04 18:17 ` [Bug bootstrap/52867] " rearnsha at gcc dot gnu.org
@ 2012-04-04 18:29 ` surrano at gmail dot com
  2012-04-05 10:04 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: surrano at gmail dot com @ 2012-04-04 18:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Szűcs, Gábor <surrano at gmail dot com> 2012-04-04 18:28:52 UTC ---
(In reply to comment #1)
> GCC 4.4 series is now end-of-life.  No further maintenance is planned.  Please
> upgrade to a more recent set of sources

Hello,

Thanks for the feedback; since 4.4.7 was released less than a month ago I was
not aware of this. The reason of choosing 4.4 was that I didn't dare to go
upper in versions.

The good news is that, after another "make distclean" compiler got beyond
c-common.c and eventually going forward...

Accepting your statement, please advise what is the best bet for a compiler for
such an archaic architecture (considering that Lenny is last of Debian that
supports arm; Squeeze supports only armel). Does it make sense to even try
compiling e.g. 4.7, or I should stay as low as possible, with 4.5 being the
oldest one maintained? (none beyond 4.4 list armv5 in "successful builds")

Generally speaking; is there a list on supported architectures / cpus at least?

Thanks in advance,
G.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/52867] Compilation of gcc-4.4.7 with gcc-4.2.4 fails on arm platform
  2012-04-04 15:15 [Bug bootstrap/52867] New: Compilation of gcc-4.4.7 with gcc-4.2.4 fails on arm platform surrano at gmail dot com
  2012-04-04 18:17 ` [Bug bootstrap/52867] " rearnsha at gcc dot gnu.org
  2012-04-04 18:29 ` surrano at gmail dot com
@ 2012-04-05 10:04 ` rguenth at gcc dot gnu.org
  2012-04-08 14:38 ` rearnsha at gcc dot gnu.org
  2012-04-08 15:13 ` surrano at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-04-05 10:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-04-05 10:03:10 UTC ---
Btw, as the ICE happens in the _host_ compiler which is 4.2.x this is even
longer unsupported.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/52867] Compilation of gcc-4.4.7 with gcc-4.2.4 fails on arm platform
  2012-04-04 15:15 [Bug bootstrap/52867] New: Compilation of gcc-4.4.7 with gcc-4.2.4 fails on arm platform surrano at gmail dot com
                   ` (2 preceding siblings ...)
  2012-04-05 10:04 ` rguenth at gcc dot gnu.org
@ 2012-04-08 14:38 ` rearnsha at gcc dot gnu.org
  2012-04-08 15:13 ` surrano at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2012-04-08 14:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Richard Earnshaw <rearnsha at gcc dot gnu.org> 2012-04-08 14:38:23 UTC ---
If the problem is with your installed compiler, there are a number of ways in
which you might work around the problem:
- Build stage1 with optimization enabled: STAGE1_CFLAGS
- Build an interim compiler, say gcc-4.3 and then use that to build gcc-4.4
- Cross build your compiler on another host

As to the question about later versions of GCC, then 4.6 should certainly still
support building for ARMv5.  I would expect 4.7 to still work too, but it
hasn't been tested much in that configuration and the old Linux ABI port has
been marked deprecated.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/52867] Compilation of gcc-4.4.7 with gcc-4.2.4 fails on arm platform
  2012-04-04 15:15 [Bug bootstrap/52867] New: Compilation of gcc-4.4.7 with gcc-4.2.4 fails on arm platform surrano at gmail dot com
                   ` (3 preceding siblings ...)
  2012-04-08 14:38 ` rearnsha at gcc dot gnu.org
@ 2012-04-08 15:13 ` surrano at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: surrano at gmail dot com @ 2012-04-08 15:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Szűcs, Gábor <surrano at gmail dot com> 2012-04-08 15:12:53 UTC ---
Thanks a lot!

For the records: I managed to proceed with compilation till stage3 where I had
to disable compare as per install docs. Afterwards, cc1 seems to have some flaw
because it halts with segfault. I assume either my gcc-4.2 or even my hardware
is damaged, so I gave up. I'll try cross-compiling 4.6 (and maybe 4.4 as well).

Thanks a lot for all your advices.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-04-08 15:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-04 15:15 [Bug bootstrap/52867] New: Compilation of gcc-4.4.7 with gcc-4.2.4 fails on arm platform surrano at gmail dot com
2012-04-04 18:17 ` [Bug bootstrap/52867] " rearnsha at gcc dot gnu.org
2012-04-04 18:29 ` surrano at gmail dot com
2012-04-05 10:04 ` rguenth at gcc dot gnu.org
2012-04-08 14:38 ` rearnsha at gcc dot gnu.org
2012-04-08 15:13 ` surrano at gmail dot com

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).