building for AARCH64, clang chokes on a number of files. I've attached the crash output files for review. PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: cc: note: diagnostic msg: /tmp/Sound-dfd8ae.c cc: note: diagnostic msg: /tmp/Sound-dfd8ae.sh cc: note: diagnostic msg: ******************** *** [Sound.o] Error code 254 make[2]: stopped in /wrkdirs/usr/ports/emulators/adamem/work --- makedata.o --- 5 warnings generated. --- DSP.o --- cc: error: unable to execute command: Abort trap (core dumped) cc: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 3.6.1 (tags/RELEASE_361/final 237755) 20150525 Target: aarch64-unknown-freebsd11.0 Thread model: posix cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script. --- Unix.o --- cc: error: unable to execute command: Abort trap (core dumped) cc: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 3.6.1 (tags/RELEASE_361/final 237755) 20150525 Target: aarch64-unknown-freebsd11.0 Thread model: posix cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script. --- Coleco.o --- cc: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: cc: note: diagnostic msg: /tmp/Coleco-8be1c5.c cc: note: diagnostic msg: /tmp/Coleco-8be1c5.sh cc: note: diagnostic msg: ******************** *** [Coleco.o] Error code 254 make[2]: stopped in /wrkdirs/usr/ports/emulators/adamem/work --- X.o --- cc: error: unable to execute command: Abort trap (core dumped) cc: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 3.6.1 (tags/RELEASE_361/final 237755) 20150525 Target: aarch64-unknown-freebsd11.0 Thread model: posix cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script. --- Unix.o --- cc: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: cc: note: diagnostic msg: /tmp/Unix-726593.c cc: note: diagnostic msg: /tmp/Unix-726593.sh cc: note: diagnostic msg: ******************** *** [Unix.o] Error code 254 make[2]: stopped in /wrkdirs/usr/ports/emulators/adamem/work --- snapedit.o --- 7 warnings generated. --- Z80.o --- cc: error: unable to execute command: Abort trap (core dumped) cc: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 3.6.1 (tags/RELEASE_361/final 237755) 20150525 Target: aarch64-unknown-freebsd11.0 Thread model: posix cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script. --- DSP.o --- cc: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: cc: note: diagnostic msg: /tmp/DSP-f44243.c cc: note: diagnostic msg: /tmp/DSP-f44243.sh cc: note: diagnostic msg: ******************** *** [DSP.o] Error code 254 make[2]: stopped in /wrkdirs/usr/ports/emulators/adamem/work --- ADAMEm.o --- cc: error: unable to execute command: Abort trap (core dumped) cc: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 3.6.1 (tags/RELEASE_361/final 237755) 20150525 Target: aarch64-unknown-freebsd11.0 Thread model: posix cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script. --- z80dasm.o --- 12 warnings generated. --- Z80.o --- cc: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: cc: note: diagnostic msg: /tmp/Z80-e044fe.c cc: note: diagnostic msg: /tmp/Z80-e044fe.sh cc: note: diagnostic msg: ******************** *** [Z80.o] Error code 254 make[2]: stopped in /wrkdirs/usr/ports/emulators/adamem/work --- ADAMEm.o --- cc: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: cc: note: diagnostic msg: /tmp/ADAMEm-0d0aea.c cc: note: diagnostic msg: /tmp/ADAMEm-0d0aea.sh cc: note: diagnostic msg: ******************** *** [ADAMEm.o] Error code 254 make[2]: stopped in /wrkdirs/usr/ports/emulators/adamem/work --- X.o --- cc: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: cc: note: diagnostic msg: /tmp/X-15f932.c cc: note: diagnostic msg: /tmp/X-15f932.sh cc: note: diagnostic msg: ******************** *** [X.o] Error code 254 make[2]: stopped in /wrkdirs/usr/ports/emulators/adamem/work 7 errors make[2]: stopped in /wrkdirs/usr/ports/emulators/adamem/work *** [x] Error code 2 make[1]: stopped in /wrkdirs/usr/ports/emulators/adamem/work 1 error make[1]: stopped in /wrkdirs/usr/ports/emulators/adamem/work ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make: stopped in /usr/ports/emulators/adamem
Created attachment 159063 [details] crash files from clang
It looks like we are hitting an assert in clang (with both 3.6 from base, and 3.8 from upstream): Assertion failed: (RegParmMax < 7 && "RegParmMax value is larger than AST can handle"), function getRegParmMax, file /home/andrew/freebsd/repo/llvm/tools/clang/include/clang/Basic/TargetInfo.h, line 823. Segmentation fault (core dumped)
Upstream bug: https://llvm.org/bugs/show_bug.cgi?id=24214
Fixed in Clang 3.7