public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/65902] New: GCC-5.1 fails to bootstrap for eCos/arm-eabi
@ 2015-04-27 14:15 bernd.edlinger at hotmail dot de
  2015-04-28 13:32 ` [Bug libgcc/65902] " rearnsha at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bernd.edlinger at hotmail dot de @ 2015-04-27 14:15 UTC (permalink / raw)
  To: gcc-bugs

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


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

* [Bug libgcc/65902] GCC-5.1 fails to bootstrap for eCos/arm-eabi
  2015-04-27 14:15 [Bug libgcc/65902] New: GCC-5.1 fails to bootstrap for eCos/arm-eabi bernd.edlinger at hotmail dot de
@ 2015-04-28 13:32 ` rearnsha at gcc dot gnu.org
  2015-04-28 14:23 ` bernd.edlinger at hotmail dot de
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2015-04-28 13:32 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |arm-eabi

--- Comment #2 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
The standard headers should only be defining bool if stdbool.h has been
included.  So this looks more like a build environment error than a bug in GCC.


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

* [Bug libgcc/65902] GCC-5.1 fails to bootstrap for eCos/arm-eabi
  2015-04-27 14:15 [Bug libgcc/65902] New: GCC-5.1 fails to bootstrap for eCos/arm-eabi bernd.edlinger at hotmail dot de
  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
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bernd.edlinger at hotmail dot de @ 2015-04-28 14:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
(In reply to Richard Earnshaw from comment #2)
> The standard headers should only be defining bool if stdbool.h has been
> included.  So this looks more like a build environment error than a bug in
> GCC.

yes. that is not too smart to define bool in the wrong header...

but somehow we are also defining that in the wrong place?


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

* [Bug libgcc/65902] GCC-5.1 fails to bootstrap for eCos/arm-eabi
  2015-04-27 14:15 [Bug libgcc/65902] New: GCC-5.1 fails to bootstrap for eCos/arm-eabi bernd.edlinger at hotmail dot de
  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
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-04-28 14:47 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
But that is not in a header other packages use, it is in the source, and we
aren't including stdbool.h.
So this really looks like an eCos bug.


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

* [Bug libgcc/65902] GCC-5.1 fails to bootstrap for eCos/arm-eabi
  2015-04-27 14:15 [Bug libgcc/65902] New: GCC-5.1 fails to bootstrap for eCos/arm-eabi bernd.edlinger at hotmail dot de
                   ` (2 preceding siblings ...)
  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
  4 siblings, 0 replies; 6+ messages in thread
From: bernd.edlinger at hotmail dot de @ 2015-04-28 18:21 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Well, I thought maybe it would not hurt to be more permissive...

At least math.h and stdlib.h include <cyg/infra/cyg_type.h>
which contains something like this:

#ifndef __cplusplus

typedef cyg_halbool bool;

# ifndef false
#  define false 0
# endif

# ifndef true
#  define true (!false)
# endif

#endif


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

* [Bug libgcc/65902] GCC-5.1 fails to bootstrap for eCos/arm-eabi
  2015-04-27 14:15 [Bug libgcc/65902] New: GCC-5.1 fails to bootstrap for eCos/arm-eabi bernd.edlinger at hotmail dot de
                   ` (3 preceding siblings ...)
  2015-04-28 18:21 ` bernd.edlinger at hotmail dot de
@ 2015-04-29  9:06 ` rearnsha at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2015-04-29  9:06 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #6 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
(In reply to Bernd Edlinger from comment #5)
> Well, I thought maybe it would not hurt to be more permissive...
> 
> At least math.h and stdlib.h include <cyg/infra/cyg_type.h>
> which contains something like this:
> 
> #ifndef __cplusplus
> 
> typedef cyg_halbool bool;
> 
> # ifndef false
> #  define false 0
> # endif
> 
> # ifndef true
> #  define true (!false)
> # endif
> 
> #endif

Neither of those headers should be doing that...

I think you'll find more packages than just GCC are going to fail to build if
they do.


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

end of thread, other threads:[~2015-04-29  9:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-27 14:15 [Bug libgcc/65902] New: GCC-5.1 fails to bootstrap for eCos/arm-eabi bernd.edlinger at hotmail dot de
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

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