public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/65902] New: GCC-5.1 fails to bootstrap for eCos/arm-eabi
Date: Mon, 27 Apr 2015 14:15:00 -0000	[thread overview]
Message-ID: <bug-65902-4@http.gcc.gnu.org/bugzilla/> (raw)

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65902

            Bug ID: 65902
           Summary: GCC-5.1 fails to bootstrap for eCos/arm-eabi
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bernd.edlinger at hotmail dot de
  Target Milestone: ---

build for eCos fails in libgcc because sys-include/cyg/infra/cyg_type.h
typedef's bool and libgcc/unwind-arm-common.inc defines it too.

../gcc-5.1.0/configure --prefix=/home/ed/gnu/arm-eabi --target=arm-eabi
--with-newlib --enable-languages=c,c++ --disable-hosted-libstdcxx
--disable-__cxa-atexit --disable-libquadmath --disable-decimal-float

make
[...]
/home/ed/gnu/gcc-build-arm/./gcc/xgcc -B/home/ed/gnu/gcc-build-arm/./gcc/
-B/home/ed/gnu/arm-eabi/arm-eabi/bin/ -B/home/ed/gnu/arm-eabi/arm-eabi/lib/
-isystem /home/ed/gnu/arm-eabi/arm-eabi/include -isystem
/home/ed/gnu/arm-eabi/arm-eabi/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC 
-DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition 
-isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector   -fno-inline -I. -I. -I../.././gcc
-I../../../gcc-5.1.0/libgcc -I../../../gcc-5.1.0/libgcc/.
-I../../../gcc-5.1.0/libgcc/../gcc -I../../../gcc-5.1.0/libgcc/../include 
-DHAVE_CC_TLS  -o _fractunsUDIHQ.o -MT _fractunsUDIHQ.o -MD -MP -MF
_fractunsUDIHQ.dep -DL_fractuns -DFROM_UDI -DTO_HQ -c
../../../gcc-5.1.0/libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/home/ed/gnu/gcc-build-arm/./gcc/xgcc -B/home/ed/gnu/gcc-build-arm/./gcc/
-B/home/ed/gnu/arm-eabi/arm-eabi/bin/ -B/home/ed/gnu/arm-eabi/arm-eabi/lib/
-isystem /home/ed/gnu/arm-eabi/arm-eabi/include -isystem
/home/ed/gnu/arm-eabi/arm-eabi/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC 
-DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition 
-isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector   -fno-inline -I. -I. -I../.././gcc
-I../../../gcc-5.1.0/libgcc -I../../../gcc-5.1.0/libgcc/.
-I../../../gcc-5.1.0/libgcc/../gcc -I../../../gcc-5.1.0/libgcc/../include 
-DHAVE_CC_TLS  -o _fractunsUDISQ.o -MT _fractunsUDISQ.o -MD -MP -MF
_fractunsUDISQ.dep -DL_fractuns -DFROM_UDI -DTO_SQ -c
../../../gcc-5.1.0/libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
In file included from
../../../../gcc-5.1.0/libgcc/config/arm/unwind-arm.c:143:0:
../../../../gcc-5.1.0/libgcc/unwind-arm-common.inc:39:23: error: conflicting
types for ‘bool’
 typedef unsigned char bool;
                       ^
In file included from
/home/ed/gnu/arm-eabi/arm-eabi/sys-include/cyg/libc/stdio/stdio.h:61:0,
                 from /home/ed/gnu/arm-eabi/arm-eabi/sys-include/stdio.h:80,
                 from ../../../../gcc-5.1.0/libgcc/../gcc/tsystem.h:87,
                 from ../../../../gcc-5.1.0/libgcc/unwind-arm-common.inc:25,
                 from ../../../../gcc-5.1.0/libgcc/config/arm/unwind-arm.c:143:
/home/ed/gnu/arm-eabi/arm-eabi/sys-include/cyg/infra/cyg_type.h:171:21: note:
previous declaration of ‘bool’ was here
 typedef cyg_halbool bool;
                     ^
In file included from
../../../../gcc-5.1.0/libgcc/config/arm/unwind-arm.c:143:0:
../../../../gcc-5.1.0/libgcc/unwind-arm-common.inc: In function
‘get_eit_entry’:
../../../../gcc-5.1.0/libgcc/unwind-arm-common.inc:245:29: warning: cast
discards ‘const’ qualifier from pointer target type [-Wcast-qual]
       ucbp->pr_cache.ehtp = (_Unwind_EHT_Header *)&eitp->content;
                             ^
make[4]: *** [unwind-arm.o] Fehler 1
make[4]: Verlasse Verzeichnis
'/home/ed/gnu/gcc-build-arm/arm-eabi/thumb/libgcc'
make[3]: *** [multi-do] Fehler 1
make[3]: Verlasse Verzeichnis '/home/ed/gnu/gcc-build-arm/arm-eabi/libgcc'
make[2]: *** [all-multi] Fehler 2
make[2]: *** Warte auf noch nicht beendete Prozesse...
make[2]: Verlasse Verzeichnis '/home/ed/gnu/gcc-build-arm/arm-eabi/libgcc'
make[1]: *** [all-target-libgcc] Fehler 2
make[1]: Verlasse Verzeichnis '/home/ed/gnu/gcc-build-arm'
make: *** [all] Fehler 2
>From gcc-bugs-return-484736-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Apr 27 14:16:34 2015
Return-Path: <gcc-bugs-return-484736-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82240 invoked by alias); 27 Apr 2015 14:16:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 82169 invoked by uid 48); 27 Apr 2015 14:16:29 -0000
From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/65902] GCC-5.1 fails to bootstrap for eCos/arm-eabi
Date: Mon, 27 Apr 2015 14:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgcc
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bernd.edlinger at hotmail dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65902-4-GnoVf70s8Y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65902-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65902-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-04/txt/msg02288.txt.bz2
Content-length: 632

https://gcc.gnu.org/bugzilla/show_bug.cgi?ide902

--- Comment #1 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
this would fix the regression:

--- libgcc/unwind-arm-common.inc.jj     2015-01-05 13:33:28.000000000 +0100
+++ libgcc/unwind-arm-common.inc        2015-04-27 15:54:04.378469179 +0200
@@ -36,7 +36,7 @@

 /* Definitions for C++ runtime support routines.  We make these weak
    declarations to avoid pulling in libsupc++ unnecessarily.  */
-typedef unsigned char bool;
+#define bool unsigned char

 typedef struct _ZSt9type_info type_info; /* This names C++ type_info type */
 enum __cxa_type_match_result


             reply	other threads:[~2015-04-27 14:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-27 14:15 bernd.edlinger at hotmail dot de [this message]
2015-04-28 13:32 ` [Bug libgcc/65902] " rearnsha at gcc dot gnu.org
2015-04-28 14:23 ` bernd.edlinger at hotmail dot de
2015-04-28 14:47 ` jakub at gcc dot gnu.org
2015-04-28 18:21 ` bernd.edlinger at hotmail dot de
2015-04-29  9:06 ` rearnsha at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-65902-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).