Assertion failed: (isSimple() && "Expected a SimpleValueType!"), function getSimpleVT, file /usr/src/lib/clang/libllvmaarch64codegen/../../../contrib/llvm/include/llvm/CodeGen/ValueTypes.h, line 222. 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.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0) Target: aarch64-unknown-freebsd12.0 Thread model: posix InstalledDir: /usr/bin 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. 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/gdevcd8-751c5c.c cc: note: diagnostic msg: /tmp/gdevcd8-751c5c.sh cc: note: diagnostic msg: ******************** gmake[3]: *** [contrib/contrib.mak:205: soobj/gdevcd8.o] Error 254 gmake[3]: Leaving directory '/wrkdirs/usr/ports/print/ghostscript9-agpl-base/work/ghostscript-9.16' gmake[2]: *** [base/unix-dll.mak:134: so-subtarget] Error 2 gmake[2]: Leaving directory '/wrkdirs/usr/ports/print/ghostscript9-agpl-base/work/ghostscript-9.16' gmake[1]: *** [base/unix-dll.mak:120: so] Error 2 gmake[1]: Leaving directory '/wrkdirs/usr/ports/print/ghostscript9-agpl-base/work/ghostscript-9.16' *** Error code 1 Stop. make: stopped in /usr/ports/print/ghostscript9-agpl-base
I can build this with clang 3.9 and llvm r279852 [1]. For llvm 3.8 there seem to be further patches needed. [1] http://llvm.org/viewvc/llvm-project?view=revision&revision=279852
If anybody still has the gdevcd8-751c5c.c and gdevcd8-751c5c.sh files, please attach them to this bug.
Created attachment 176895 [details] gzip of original gdevcd8-e7b8ed.c
Created attachment 176896 [details] Minimised test case
Created attachment 176897 [details] build script
A commit references this bug: Author: dim Date: Fri Nov 11 21:01:46 UTC 2016 New revision: 308559 URL: https://svnweb.freebsd.org/changeset/base/308559 Log: Pull in r263169 from upstream llvm trunk (by Tim Northover): AArch64: only try to use scaled fcvt ops on legal vector types. Before we ended up calling getSimpleVectorType on a <3 x float>, which asserted. This fixes an assertion when building the print/ghostscript9-agpl-base port for AArch64. PR: 213865 MFC after: 3 days Changes: head/contrib/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Since I don't have any AArch64 setup, can one of you please confirm that after r308559 this port builds to completion successfully?
A commit references this bug: Author: dim Date: Mon Nov 14 18:57:22 UTC 2016 New revision: 308648 URL: https://svnweb.freebsd.org/changeset/base/308648 Log: MFC r308559: Pull in r263169 from upstream llvm trunk (by Tim Northover): AArch64: only try to use scaled fcvt ops on legal vector types. Before we ended up calling getSimpleVectorType on a <3 x float>, which asserted. This fixes an assertion when building the print/ghostscript9-agpl-base port for AArch64. PR: 213865 Changes: _U stable/11/ stable/11/contrib/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp