[Bug 227699] devel/powerpc64-gcc: clang 6.0 crashes during build

2018-04-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227699

Dimitry Andric  changed:

   What|Removed |Added

 Status|New |Open
 CC||d...@freebsd.org
   Assignee|toolch...@freebsd.org   |d...@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-free"
"-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" "i486"
"-dwarf-column-info" "-debugger-tuning=gdb" "-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" "-pedantic"
"-fdeprecated-macro" "-ferror-limit" "19" "-fmessage-length" "114"
"-stack-protector" "1" "-fno-rtti" "-fobjc-runtime=gnustep"
"-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 

[Bug 227699] devel/powerpc64-gcc: clang 6.0 crashes during build

2018-04-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227699

Jan Beich  changed:

   What|Removed |Added

  Flags|maintainer-feedback?(kan@Fr |
   |eeBSD.org)  |
   Assignee|k...@freebsd.org |toolch...@freebsd.org

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"