From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 38FE938708C3; Tue, 22 Sep 2020 11:44:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 38FE938708C3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1600775085; bh=OlV1MarWUsaKNO3U3FL0k6g/pVW60HkDNXTI5/f/hzM=; h=From:To:Subject:Date:From; b=JOAA3VJWubdUQjXMowZj/0thiHB4BDCVeT4DbTYiAI/yC4zQkNzU78KEagjYRa/t3 vFcXb2RZItE1cIvYKJtxDRc1OzoXUu+WTNqTZeOWeOb8V/pkdLS0okYtfwTLBfkR3T 0ebC+JvUdlnd6hc9M98Wg6eAAU6eiskfIB46nxYg= From: "pkubaj at anongoth dot pl" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/97163] New: Build error with -mcpu=power9 on ppc64 Date: Tue, 22 Sep 2020 11:44:45 +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: 10.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pkubaj at anongoth dot pl 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Tue, 22 Sep 2020 11:44:45 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97163 Bug ID: 97163 Summary: Build error with -mcpu=3Dpower9 on ppc64 Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: pkubaj at anongoth dot pl Target Milestone: --- The same error happens also on GCC 9.3.0. I'm using Clang 11.0.0 rc2 to build, but it happened before with 10 (I only= now got to report it). Issue: gmake[5]: Entering directory '/tmp/usr/ports/lang/gcc10/work/.build/build-powerpc64-portbld-freebsd13.0/= libcpp' test -f config.h || (rm -f stamp-h1 && gmake stamp-h1) c++ -std=3Dgnu++98 -I/tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp -I. -I/tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/../include -I/tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/include -DLIBICONV_PLUG = -O2 -pipe -mcpu=3Dpower9 -DLIBICONV_PLUG -W -Wall -Wno-narrowing -Wwrite-str= ings -Wmissing-format-attribute -pedantic -Wno-long-long -fno-exceptions -fno-r= tti -I/tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp -I. -I/tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/../include -I/tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/include -DLIBICONV_PLUG = -c -o lex.o -MT lex.o -MMD -MP -MF .deps/lex.Tpo /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] In file included from /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:23: /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/system.h:439:9: warning: keyword is hidden by macro definition [-Wkeyword-macro] #define true 1 ^ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/system.h:440:9: warning: keyword is hidden by macro definition [-Wkeyword-macro] #define false 0 ^ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:544:26: warning: unk= nown attribute 'altivec' ignored [-Wunknown-attributes] typedef __attribute__((altivec(vector))) unsigned char vc; ^ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:546:12: error: excess elements in scalar initializer const vc repl_nl =3D { ^ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:550:12: error: excess elements in scalar initializer const vc repl_cr =3D { ^ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:554:12: error: excess elements in scalar initializer const vc repl_bs =3D { ^ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:558:12: error: excess elements in scalar initializer const vc repl_qm =3D { ^ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:571:14: error: use of undeclared identifier '__builtin_vec_vsx_ld' data =3D __builtin_vec_vsx_ld (0, s); ^ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:574:19: error: use of undeclared identifier '__builtin_vec_cmpeq' m_nl =3D (vc) __builtin_vec_cmpeq(data, repl_nl); ^ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:575:19: error: use of undeclared identifier '__builtin_vec_cmpeq' m_cr =3D (vc) __builtin_vec_cmpeq(data, repl_cr); ^ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:576:19: error: use of undeclared identifier '__builtin_vec_cmpeq' m_bs =3D (vc) __builtin_vec_cmpeq(data, repl_bs); ^ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:577:19: error: use of undeclared identifier '__builtin_vec_cmpeq' m_qm =3D (vc) __builtin_vec_cmpeq(data, repl_qm); ^ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:584:11: error: use of undeclared identifier '__builtin_vec_vcmpeq_p' while (!__builtin_vec_vcmpeq_p(/*__CR6_LT_REV*/3, t, zero)); ^ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:595:23: error: array= is too large (18446744073709551615 elements) unsigned long l[(N =3D=3D 2 || N =3D=3D 4) ? N : -1]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:602:13: warning: no = case matching constant switch condition '0' switch (N) ^ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:590:12: note: expand= ed from macro 'N' #define N (sizeof(vc) / sizeof(long)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:1729:8: warning: res= ult of comparison against a string literal is unspecified (use an explicit stri= ng comparison function instead) [-Wstring-compare] BUF_APPEND ("\\", 1); ^~~~~~~~~~~~~~~~~~~~ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:1699:30: note: expan= ded from macro 'BUF_APPEND' && (const uchar *)(STR) !=3D base \ ~~~~~~~~~~~~~~~~~~~~ ^ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:1738:5: warning: res= ult of comparison against a string literal is unspecified (use an explicit stri= ng comparison function instead) [-Wstring-compare] BUF_APPEND (" ", 1); ^~~~~~~~~~~~~~~~~~~ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:1699:30: note: expan= ded from macro 'BUF_APPEND' && (const uchar *)(STR) !=3D base \ ~~~~~~~~~~~~~~~~~~~~ ^ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:1741:8: warning: res= ult of comparison against a string literal is unspecified (use an explicit stri= ng comparison function instead) [-Wstring-compare] BUF_APPEND ("\n", 1); ^~~~~~~~~~~~~~~~~~~~ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:1699:30: note: expan= ded from macro 'BUF_APPEND' && (const uchar *)(STR) !=3D base \ ~~~~~~~~~~~~~~~~~~~~ ^ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:1764:5: warning: res= ult of comparison against a string literal is unspecified (use an explicit stri= ng comparison function instead) [-Wstring-compare] BUF_APPEND ("??", 2); ^~~~~~~~~~~~~~~~~~~~ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:1699:30: note: expan= ded from macro 'BUF_APPEND' && (const uchar *)(STR) !=3D base \ ~~~~~~~~~~~~~~~~~~~~ ^ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:1773:9: warning: res= ult of comparison against a string literal is unspecified (use an explicit stri= ng comparison function instead) [-Wstring-compare] BUF_APPEND ("/", 1); ^~~~~~~~~~~~~~~~~~~ /tmp/usr/ports/lang/gcc10/work/gcc-10.2.0/libcpp/lex.c:1699:30: note: expan= ded from macro 'BUF_APPEND' && (const uchar *)(STR) !=3D base \ ~~~~~~~~~~~~~~~~~~~~ ^ 9 warnings and 11 errors generated. gmake[5]: *** [Makefile:224: lex.o] Error 1 gmake[5]: Leaving directory '/tmp/usr/ports/lang/gcc10/work/.build/build-powerpc64-portbld-freebsd13.0/= libcpp' gmake[4]: *** [Makefile:2923: all-build-libcpp] Error 2 gmake[4]: Leaving directory '/tmp/usr/ports/lang/gcc10/work/.build' gmake[3]: *** [Makefile:22903: stage1-bubble] Error 2 gmake[3]: Leaving directory '/tmp/usr/ports/lang/gcc10/work/.build' gmake[2]: *** [Makefile:23235: bootstrap-lean] Error 2 gmake[2]: Leaving directory '/tmp/usr/ports/lang/gcc10/work/.build' *** Error code 1=