Date: Sun, 22 Apr 2018 18:37:26 +0000 From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 227699] devel/powerpc64-gcc: clang 6.0 crashes during build Message-ID: <bug-227699-29464-xNqkGDvDu1@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-227699-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-227699-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227699 Dimitry Andric <dim@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open CC| |dim@FreeBSD.org Assignee|toolchain@FreeBSD.org |dim@FreeBSD.org --- Comment #3 from Dimitry Andric <dim@FreeBSD.org> --- 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, tree> 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 <int N> 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_location *, mem_usage *> 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 <const void *, std::pair<T *, size_t> > 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 <const void *, std::pair<T *, size_t> > 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 <class T> ^ 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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227699-29464-xNqkGDvDu1>