Assertion failed: ((TLI.getTypeAction(*DAG.getContext(), Op.getValueType()) == TargetLowering::TypeLegal || TLI.isTypeLegal(Op.getValueType()) || Op.getOpcode() == ISD::TargetConstant) && "Unexpected illegal type!"), function LegalizeOp, file /usr/src/contrib/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp, line 921.
cc: error: unable to execute command: Abort trap
cc: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 4.0.0 (branches/release_40 292009) (based on LLVM 4.0.0)
build log: http://sprunge.us/eAMU
Created attachment 178998 [details]
gegl/buffer/gegl-sampler-nohalo.c (preprocessed, compressed)
Created attachment 178999 [details]
command line args (for cc as clang 4.0)
Can you reproduce on /projects/clang400-import@312309 or devel/llvm-devel after editing .sh file?
(In reply to Jan Beich (mail not working) from comment #3)
> Can you reproduce on /projects/clang400-import@312309 or devel/llvm-devel
> after editing .sh file?
Yes, I can reproduce with clang 4.0.0 (branches/release_40 292009) (as in the clang400-import branch). Investigating...
Minimized a test case, and submitted it upstream as https://llvm.org/bugs/show_bug.cgi?id=31672
A commit references this bug:
Date: Sun Jan 22 18:31:49 UTC 2017
New revision: 312643
Pull in r292758 from upstream llvm trunk (by Sanjay Patel):
[x86] avoid crashing with illegal vector type (PR31672)
This fixes an assertion while building graphics/gegl3.
After r312643, I can build graphics/gegl to completion now, with the SIMD option checked.
graphics/gegl3, like graphics/svgalib, is a blocker for x11/gnome3 metaport. It doesn't have SIMD option unlike graphics/gegl. Anyway, gegl3 builds fine now: http://sprunge.us/NPdF