From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6031D3870863; Sun, 22 May 2022 16:05:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6031D3870863 From: "mikpelinux at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/105681] libstdc++-v3 fails to build on msp430 Date: Sun, 22 May 2022 16:05:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: mikpelinux at gmail dot com 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: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2022 16:05:52 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105681 Mikael Pettersson changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikpelinux at gmail dot com --- Comment #3 from Mikael Pettersson --- I can reproduce in a cross to --target=3Dmsp430-unknown-elf --enable-languages=3Dc,c++ with binutils-2.38 and newlib-4.2.0.20211231. gcc-11.3.0 builds fine, but gcc-12.1.0 build fails with In file included from /mnt/scratch/cross/sources/gcc-12.1.0/libstdc++-v3/include/precompiled/extc= ++.h:61: /mnt/scratch/cross/objdir-gcc/msp430-unknown-elf/libstdc++-v3/include/ext/r= andom:355:69: error: narrowing conversion of '86243' from 'long int' to 'unsigned int' [-Wnarrowing] 355 | 0x00000000U, 0xe9528d85= U> | = ^ (several more) and In file included from /mnt/scratch/cross/objdir-gcc/msp430-unknown-elf/libstdc++-v3/include/ext/p= b_ds/hash_policy.hpp:475, from /mnt/scratch/cross/objdir-gcc/msp430-unknown-elf/libstdc++-v3/include/ext/p= b_ds/detail/standard_policies.hpp:45, from /mnt/scratch/cross/objdir-gcc/msp430-unknown-elf/libstdc++-v3/include/ext/p= b_ds/assoc_container.hpp:47, from /mnt/scratch/cross/sources/gcc-12.1.0/libstdc++-v3/include/precompiled/extc= ++.h:72: /mnt/scratch/cross/objdir-gcc/msp430-unknown-elf/libstdc++-v3/include/ext/p= b_ds/detail/resize_policy/hash_prime_size_policy_imp.hpp:73:32: error: narrowing conversion of '116731' from 'long unsigned int' to 'std::size_t' {aka 'unsigned int'} [-Wnarrowing] 73 | /* 14 */ 116731ul, | ^~~~~~~~ (many more)=