public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug sanitizer/63958] New: [5 Regression] bootstrap failure in the sanitizer libs on sparc-linux-gnu
@ 2014-11-19 11:51 doko at gcc dot gnu.org
  2014-11-19 12:33 ` [Bug sanitizer/63958] " rguenth at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: doko at gcc dot gnu.org @ 2014-11-19 11:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 63958
           Summary: [5 Regression] bootstrap failure in the sanitizer libs
                    on sparc-linux-gnu
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org

seen with r217751 on the trunk

libtool: compile:  /«PKGBUILDDIR»/build/./gcc/xgcc
-B/«PKGBUILDDIR»/build/./gcc/ -B/usr/lib/gcc-snapshot/sparc-linux-gnu/bin/
-B/usr/lib/gcc-snapshot/sparc-linux-gnu/lib/ -isystem
/usr/lib/gcc-snapshot/sparc-linux-gnu/include -isystem
/usr/lib/gcc-snapshot/sparc-linux-gnu/sys-include -DHAVE_CONFIG_H
-I../../../../src/libatomic/config/posix -I../../../../src/libatomic -I. -Wall
-Werror -pthread -g -O2 -m64 -MT init.lo -MD -MP -MF .deps/init.Tpo -c
../../../../src/libatomic/init.c -o init.o >/dev/null 2>&1
/«PKGBUILDDIR»/build/./gcc/xgcc -B/«PKGBUILDDIR»/build/./gcc/
-B/usr/lib/gcc-snapshot/sparc-linux-gnu/bin/
-B/usr/lib/gcc-snapshot/sparc-linux-gnu/lib/ -isystem
/usr/lib/gcc-snapshot/sparc-linux-gnu/include -isystem
/usr/lib/gcc-snapshot/sparc-linux-gnu/sys-include    -c -g -O2  -fPIC  -W -Wall
-gnatpg -nostdinc   a-wwboio.adb -o a-wwboio.o
In file included from
../../../../src/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:40:0:
/usr/include/sparc-linux-gnu/asm/stat.h:60:2: error: 'time_t' does not name a
type
  time_t  st_atime;
  ^
/usr/include/sparc-linux-gnu/asm/stat.h:62:2: error: 'time_t' does not name a
type
  time_t  st_mtime;
  ^
/usr/include/sparc-linux-gnu/asm/stat.h:64:2: error: 'time_t' does not name a
type
  time_t  st_ctime;
  ^
yes
In file included from
../../../../src/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:20:0:
../../../../src/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:64:78:
error: invalid application of 'sizeof' to incomplete type '__old_kernel_stat'
 COMPILER_CHECK(struct___old_kernel_stat_sz == sizeof(struct
__old_kernel_stat));
                                                                              ^
../../../../src/libsanitizer/sanitizer_common/sanitizer_internal_defs.h:272:65:
note: in definition of macro 'IMPL_COMPILER_ASSERT'
     typedef char IMPL_PASTE(assertion_failed_##_, line)[2*(int)(pred)-1]
                                                                 ^
../../../../src/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:64:1:
note: in expansion of macro 'COMPILER_CHECK'
 COMPILER_CHECK(struct___old_kernel_stat_sz == sizeof(struct
__old_kernel_stat));
 ^
../../../../src/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:67:16:
error: 'struct_kernel_stat_sz' was not declared in this scope
 COMPILER_CHECK(struct_kernel_stat_sz == sizeof(struct stat));
                ^
../../../../src/libsanitizer/sanitizer_common/sanitizer_internal_defs.h:272:65:
note: in definition of macro 'IMPL_COMPILER_ASSERT'
     typedef char IMPL_PASTE(assertion_failed_##_, line)[2*(int)(pred)-1]
                                                                 ^
../../../../src/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc:67:1:
note: in expansion of macro 'COMPILER_CHECK'
 COMPILER_CHECK(struct_kernel_stat_sz == sizeof(struct stat));
 ^
checking for getrlimit... Makefile:447: recipe for target
'sanitizer_platform_limits_linux.lo' failed
make[6]: *** [sanitizer_platform_limits_linux.lo] Error 1
make[6]: *** Waiting for unfinished jobs....
>From gcc-bugs-return-467385-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Nov 19 11:57:54 2014
Return-Path: <gcc-bugs-return-467385-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4205 invoked by alias); 19 Nov 2014 11:57:54 -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 4177 invoked by uid 48); 19 Nov 2014 11:57:50 -0000
From: "lh_mouse at 126 dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/63959] New: G++ misreports volatile int as trivially copyable
Date: Wed, 19 Nov 2014 11:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: lh_mouse at 126 dot com
X-Bugzilla-Status: UNCONFIRMED
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter
Message-ID: <bug-63959-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: 2014-11/txt/msg01857.txt.bz2
Content-length: 899

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

            Bug ID: 63959
           Summary: G++ misreports volatile int as trivially copyable
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lh_mouse at 126 dot com

The type trait std::is_trivially_copyable<volatile int>::value yields true on
g++ (GCC) 5.0.0 20141119 (experimental).

ISO C++ states that volatile types are NOT trivially copyable:

N3936 3.9 Types [basic.types]
9 Arithmetic types (3.9.1), ... Cv-unqualified scalar types, trivially copyable
class types (Clause 9), arrays of such types,
** and nonvolatile const-qualified versions of these types (3.9.3) **
are collectively called trivially copyable types. ...

So this is a bug. Please fix.


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

end of thread, other threads:[~2015-10-21  7:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-19 11:51 [Bug sanitizer/63958] New: [5 Regression] bootstrap failure in the sanitizer libs on sparc-linux-gnu doko at gcc dot gnu.org
2014-11-19 12:33 ` [Bug sanitizer/63958] " rguenth at gcc dot gnu.org
2014-11-19 19:26 ` kcc at gcc dot gnu.org
2014-11-19 21:20 ` kcc at gcc dot gnu.org
2014-11-19 22:13 ` davem at gcc dot gnu.org
2014-11-19 22:25 ` kcc at gcc dot gnu.org
2014-12-10 15:30 ` rguenth at gcc dot gnu.org
2015-02-24 11:22 ` jakub at gcc dot gnu.org
2015-02-26  9:41 ` doko at gcc dot gnu.org
2015-03-09 18:26 ` jakub at gcc dot gnu.org
2015-03-09 19:05 ` jakub at gcc dot gnu.org
2015-03-09 19:26 ` jakub at gcc dot gnu.org
2015-10-21  7:45 ` chefmax 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).