From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2E7CA3858415; Wed, 6 Oct 2021 13:03:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E7CA3858415 From: "simark at simark dot ca" To: gdb-prs@sourceware.org Subject: [Bug build/28413] string_view-selftests.c build error on macOS Date: Wed, 06 Oct 2021 13:03:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simark at simark dot ca X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2021 13:03:54 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28413 --- Comment #8 from Simon Marchi --- (In reply to Bruno Haible from comment #7) > (In reply to Simon Marchi from comment #6) > > This one is on an Arch Linux system, updated a few > > weeks ago. It has: > >=20 > > - gcc 11.1.0-1 > > - glibc 2.33-5 >=20 > Still more information needed: > - Do you have Gnulib's c++defs.h, or the one by Enze Li? > - Do the compiler options that are being passed for this compilation un= it > include optimization options (-O*)? - It's the c++defs.h in GDB's source tree, so the one from gnulib commit 776af40e09b476a41073131a90022572f448c189, unmodified. - No optimization. The full compilation command line is: clang++ -x c++ -I. -I/home/simark/src/binutils-gdb/gdb -I/home/simark/src/binutils-gdb/gdb/config -DLOCALEDIR=3D"\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I/home/simark/src/binutils-gdb/gdb/../include/opcode -I/home/simark/src/binutils-gdb/gdb/../readline/readline/.. -I/home/simark/src/binutils-gdb/gdb/../zlib -I../bfd -I/home/simark/src/binutils-gdb/gdb/../bfd -I/home/simark/src/binutils-gdb/gdb/../include -I../libdecnumber -I/home/simark/src/binutils-gdb/gdb/../libdecnumber=20 -I/home/simark/src/binutils-gdb/gdb/../gnulib/import -I../gnulib/import -I/home/simark/src/binutils-gdb/gdb/.. -I.. -I/home/simark/src/binutils-gdb/gdb/../libbacktrace/ -I../libbacktrace/=20 -DTUI=3D1 -I/usr/include/guile/2.0 -pthread -I/usr/include/python3.9 -I/usr/include/python3.9 -I/home/simark/src/binutils-gdb/gdb/.. -pthread= =20 -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-swi= tch -Wno-char-subscripts -Wempty-body -Wno-sign-compare -Wno-mismatched-tags -Wno-error=3Ddeprecated-register -Wsuggest-override -Wdeprecated-copy -Wdeprecated-copy-dtor -Wredundant-move -Wmissing-declarations -Wmissing-prototypes -Wformat -Wformat-nonliteral -Werror -g3 -O0 -D_GLIBCXX_DEBUG=3D1 -ferror-limit=3D1 -c -o unittests/string_view-selfte= sts.o -MT unittests/string_view-selftests.o -MMD -MP -MF unittests/.deps/string_view-selftests.Tpo /home/simark/src/binutils-gdb/gdb/unittests/string_view-selftests.c I gave the gcc version, but the problem is actually when compiling with cla= ng, so here's the clang version: $ clang++ --version clang version 12.0.1 --=20 You are receiving this mail because: You are on the CC list for the bug.=