From owner-freebsd-toolchain@freebsd.org Sun Apr 22 18:37:28 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A1A0AFB4DDA for ; Sun, 22 Apr 2018 18:37:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 345F378215 for ; Sun, 22 Apr 2018 18:37:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id E834DFB4DD9; Sun, 22 Apr 2018 18:37:27 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C3719FB4DD8 for ; Sun, 22 Apr 2018 18:37:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 40EA77820B for ; Sun, 22 Apr 2018 18:37:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 6DAA8220FA for ; Sun, 22 Apr 2018 18:37:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3MIbQ4c067636 for ; Sun, 22 Apr 2018 18:37:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3MIbQsr067634 for toolchain@FreeBSD.org; Sun, 22 Apr 2018 18:37:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 227699] devel/powerpc64-gcc: clang 6.0 crashes during build Date: Sun, 22 Apr 2018 18:37:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Apr 2018 18:37:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227699 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open CC| |dim@FreeBSD.org Assignee|toolchain@FreeBSD.org |dim@FreeBSD.org --- Comment #3 from Dimitry Andric --- I cannot reproduce. I just get a long string of errors, and no crash: $ clang "-cc1" "-triple" "i386-unknown-freebsd12.0" "-emit-obj" "-disable-f= ree" "-main-file-name" "insn-opinit.c" "-mrelocation-model" "static" "-mthread-model" "posix" "-mdisable-fp-elim" "-relaxed-aliasing" "-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-target-cpu" "i4= 86" "-dwarf-column-info" "-debugger-tuning=3Dgdb" "-coverage-notes-file" "/wrkdirs/usr/ports/devel/powerpc64-gcc/work/.build/gcc/insn-opinit.gcno" "= -D" "CROSS_DIRECTORY_STRUCTURE" "-D" "LIBICONV_PLUG" "-D" "LIBICONV_PLUG" "-D" "IN_GCC" "-D" "CROSS_DIRECTORY_STRUCTURE" "-D" "HAVE_CONFIG_H" "-D" "LIBICONV_PLUG" "-O2" "-W" "-Wall" "-Wno-narrowing" "-Wwrite-strings" "-Wcast-qual" "-Wmissing-format-attribute" "-Woverloaded-virtual" "-Wno-long-long" "-Wno-variadic-macros" "-Wno-overlength-strings" "-pedanti= c" "-fdeprecated-macro" "-ferror-limit" "19" "-fmessage-length" "114" "-stack-protector" "1" "-fno-rtti" "-fobjc-runtime=3Dgnustep" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-loops" "-vectorize-slp" "-x" "c++" "insn-opinit-e12175.c" In file included from insn-opinit.c:5: In file included from /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/system.h:681: /usr/local/include/gmp.h:469:7: error: use of undeclared identifier 'std' using std::FILE; ^ /usr/local/include/gmp.h:2278:19: error: use of undeclared identifier 'std' __GMP_DECLSPEC_XX std::ostream& operator<< (std::ostream &, mpz_srcptr); ^ /usr/local/include/gmp.h:2278:45: error: use of undeclared identifier 'std' __GMP_DECLSPEC_XX std::ostream& operator<< (std::ostream &, mpz_srcptr); ^ /usr/local/include/gmp.h:2279:19: error: use of undeclared identifier 'std' __GMP_DECLSPEC_XX std::ostream& operator<< (std::ostream &, mpq_srcptr); ^ /usr/local/include/gmp.h:2279:45: error: use of undeclared identifier 'std' __GMP_DECLSPEC_XX std::ostream& operator<< (std::ostream &, mpq_srcptr); ^ /usr/local/include/gmp.h:2280:19: error: use of undeclared identifier 'std' __GMP_DECLSPEC_XX std::ostream& operator<< (std::ostream &, mpf_srcptr); ^ /usr/local/include/gmp.h:2280:45: error: use of undeclared identifier 'std' __GMP_DECLSPEC_XX std::ostream& operator<< (std::ostream &, mpf_srcptr); ^ /usr/local/include/gmp.h:2281:19: error: use of undeclared identifier 'std' __GMP_DECLSPEC_XX std::istream& operator>> (std::istream &, mpz_ptr); ^ /usr/local/include/gmp.h:2281:45: error: use of undeclared identifier 'std' __GMP_DECLSPEC_XX std::istream& operator>> (std::istream &, mpz_ptr); ^ /usr/local/include/gmp.h:2282:19: error: use of undeclared identifier 'std' __GMP_DECLSPEC_XX std::istream& operator>> (std::istream &, mpq_ptr); ^ /usr/local/include/gmp.h:2282:45: error: use of undeclared identifier 'std' __GMP_DECLSPEC_XX std::istream& operator>> (std::istream &, mpq_ptr); ^ /usr/local/include/gmp.h:2283:19: error: use of undeclared identifier 'std' __GMP_DECLSPEC_XX std::istream& operator>> (std::istream &, mpf_ptr); ^ /usr/local/include/gmp.h:2283:45: error: use of undeclared identifier 'std' __GMP_DECLSPEC_XX std::istream& operator>> (std::istream &, mpf_ptr); ^ In file included from insn-opinit.c:6: /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:62:1: warning: class 'rtx_def' was previously declared as a struct [-Wmismatched-tags] class rtx_def; ^ /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:55:8: note: previous use is here struct rtx_def; ^ /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:266:9: error: use of undeclared identifier 'std' typedef std::pair tree_pair; ^ In file included from insn-opinit.c:6: In file included from /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:344: /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/wide-int.h:1112:1: warning: 'fixed_wide_int_storage' defined as a class template here but previously declared as a struct template [-Wmismatched-tags] class GTY(()) fixed_wide_int_storage ^ /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/wide-int.h:279:18: note: did you mean class here? template struct fixed_wide_int_storage; ^~~~~~ class In file included from insn-opinit.c:6: In file included from /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:348: In file included from /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/hash-table.h:235: /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/ggc.h:277:15: warning: struct 'rtx_def' was previously declared as a class [-Wmismatched-tags] static inline struct rtx_def * ^ /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:62:7: note: previous use is here class rtx_def; ^ In file included from insn-opinit.c:6: In file included from /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:348: In file included from /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/hash-table.h:235: /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/ggc.h:280:11: warning: struct 'rtx_def' was previously declared as a class [-Wmismatched-tags] return (struct rtx_def *) ggc_internal_alloc (s PASS_MEM_STAT); ^ /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:62:7: note: previous use is here class rtx_def; ^ In file included from insn-opinit.c:6: In file included from /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:348: In file included from /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/hash-table.h:560: /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/mem-stats.h:126:1: warning: 'mem_usage' defined as a struct here but previously declared as a class [-Wmismatched-tags] struct mem_usage ^ /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/hash-table.h:341:= 1: note: did you mean struct here? class mem_usage; ^~~~~ struct In file included from insn-opinit.c:6: In file included from /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:348: In file included from /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/hash-table.h:560: /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/mem-stats.h:179:1= 3: error: use of undeclared identifier 'std' typedef std::pair mem_pair_t; ^ /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/mem-stats.h:184:1= 5: error: member reference base type 'const mem_pair_t' (aka 'const int') is not a structure or union return (*f.second) < (*s.second); ~^~~~~~~ /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/mem-stats.h:184:2= 9: error: member reference base type 'const mem_pair_t' (aka 'const int') is not a structure or union return (*f.second) < (*s.second); ~^~~~~~~ /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/mem-stats.h:291:3= 5: error: use of undeclared identifier 'std' typedef hash_map > reverse_object_map_t; ^ /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/mem-stats.h:291:4= 5: error: 'T' does not refer to a value typedef hash_map > reverse_object_map_t; ^ /wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/mem-stats.h:261:1= 7: note: declared here template ^ fatal error: too many errors emitted, stopping now [-ferror-limit=3D] 5 warnings and 20 errors generated. --=20 You are receiving this mail because: You are the assignee for the bug.=