Bug 201758 - emulators/adamem crashes clang
Summary: emulators/adamem crashes clang
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm64 Any
: --- Affects Some People
Assignee: Andrew Turner
URL:
Keywords:
Depends on:
Blocks: 201763
  Show dependency treegraph
 
Reported: 2015-07-22 15:12 UTC by Sean Bruno
Modified: 2015-11-08 08:49 UTC (History)
2 users (show)

See Also:


Attachments
crash files from clang (483.86 KB, application/x-gzip)
2015-07-22 15:15 UTC, Sean Bruno
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Bruno freebsd_committer 2015-07-22 15:12:11 UTC

    
Comment 1 Sean Bruno freebsd_committer 2015-07-22 15:13:46 UTC
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
Comment 2 Sean Bruno freebsd_committer 2015-07-22 15:15:19 UTC
Created attachment 159063 [details]
crash files from clang
Comment 3 Andrew Turner freebsd_committer 2015-07-22 15:45:36 UTC
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)
Comment 4 Andrew Turner freebsd_committer 2015-07-22 16:28:55 UTC
Upstream bug: https://llvm.org/bugs/show_bug.cgi?id=24214
Comment 5 Andrew Turner freebsd_committer 2015-11-08 08:49:19 UTC
Fixed in Clang 3.7