<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - recent regression: clang asserts building ITK: "Elements of a VectorType must be a primitive type""
   href="http://llvm.org/bugs/show_bug.cgi?id=19299">19299</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>recent regression: clang asserts building ITK: "Elements of a VectorType must be a primitive type"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>release blocker
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sean@rogue-research.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=12314" name="attach_12314" title="requested files">attachment 12314</a> <a href="attachment.cgi?id=12314&action=edit" title="requested files">[details]</a></span>
requested files

I have some buildbots that build open source projects with my own build of
clang.  Every once in a while I update my clang build, and when I updated from
r203163 to r204925 the other day, my ITK builds started failing in release
builds (but not debug).  The error persists in r205200.

The error is shown here:
<a href="http://open.cdash.org/viewBuildError.php?buildid=3275542">http://open.cdash.org/viewBuildError.php?buildid=3275542</a>

It outputs:

Assertion failed: (isValidElementType(ElementType) && "Elements of a VectorType
must be a primitive type"), function get, file
/Users/builder/llvm/llvm/lib/IR/Type.cpp, line 707.
0  clang-3.5         0x0000000102d81dd8 llvm::sys::PrintStackTrace(__sFILE*) +
40
1  clang-3.5         0x0000000102d822d4 SignalHandler(int) + 548
2  libsystem_c.dylib 0x00007fff8af2190a _sigtramp + 26
3  libsystem_c.dylib 0x00000000000001a0 _sigtramp + 1963845808
4  clang-3.5         0x0000000102d82096 abort + 22
5  clang-3.5         0x0000000102d82071 __assert_rtn + 81
6  clang-3.5         0x0000000102acffe7 llvm::VectorType::get(llvm::Type*,
unsigned int) + 295
7  clang-3.5         0x0000000102e21b3f (anonymous
namespace)::BoUpSLP::getTreeCost() + 2447
8  clang-3.5         0x0000000102e1d3c4 (anonymous
namespace)::SLPVectorizer::runOnFunction(llvm::Function&) + 10068
9  clang-3.5         0x0000000102aba4bb
llvm::FPPassManager::runOnFunction(llvm::Function&) + 347
10 clang-3.5         0x0000000102ae931a (anonymous
namespace)::CGPassManager::runOnModule(llvm::Module&) + 1994
11 clang-3.5         0x0000000102abad29
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1081
12 clang-3.5         0x0000000102abb13d
llvm::legacy::PassManager::run(llvm::Module&) + 13
13 clang-3.5         0x00000001033596fa
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
5770
14 clang-3.5         0x000000010346daac
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 588
15 clang-3.5         0x0000000103726034 clang::ParseAST(clang::Sema&, bool,
bool) + 516
16 clang-3.5         0x000000010346c5da clang::CodeGenAction::ExecuteAction() +
122
17 clang-3.5         0x0000000102f56506 clang::FrontendAction::Execute() + 134
18 clang-3.5         0x0000000102f2ef0d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 973
19 clang-3.5         0x0000000102f8a444
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4372
20 clang-3.5         0x0000000102349df1 cc1_main(char const**, char const**,
char const*, void*) + 945
21 clang-3.5         0x0000000102346ace main + 1150
22 libdyld.dylib     0x00007fff8adf77e1 start + 0
Stack dump:
0.    Program arguments: /Users/builder/llvm/llvm-rel-install/bin/clang-3.5
-cc1 -triple x86_64-apple-macosx10.8.0 -emit-obj -disable-free -main-file-name
itkTransformFactoryBase.cxx -mrelocation-model pic -pic-level 2
-mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -gdwarf-2
-coverage-file
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/IO/TransformBase/src/CMakeFiles/ITKIOTransformBase.dir/itkTransformFactoryBase.cxx.o
-resource-dir /Users/builder/llvm/llvm-rel-install/bin/../lib/clang/3.5.0
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
-D _FORTIFY_SOURCE=2 -D NDEBUG -I
/Users/builder/external/ITK/Modules/ThirdParty/DoubleConversion/src/double-conversion
-I
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/ThirdParty/KWSys/src
-I /Users/builder/external/ITK/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I
/Users/builder/external/ITK/Modules/ThirdParty/VNL/src/vxl/vcl -I
/Users/builder/external/ITK/Modules/ThirdParty/VNL/src/vxl/core -I
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/ThirdParty/VNL/src/vxl/v3p/netlib
-I
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/ThirdParty/VNL/src/vxl/vcl
-I
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/ThirdParty/VNL/src/vxl/core
-I /Users/builder/external/ITK/Modules/ThirdParty/VNLInstantiation/include -I
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/Core/Common -I
/Users/builder/external/ITK/Modules/Core/Common/include -I
/Users/builder/external/ITK/Modules/Filtering/ImageFilterBase/include -I
/Users/builder/external/ITK/Modules/Core/ImageAdaptors/include -I
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/ThirdParty/Netlib
-I /Users/builder/external/ITK/Modules/Numerics/Statistics/include -I
/Users/builder/external/ITK/Modules/Core/Transform/include -I
/Users/builder/external/ITK/Modules/Core/ImageFunction/include -I
/Users/builder/external/ITK/Modules/Filtering/ImageGrid/include -I
/Users/builder/external/ITK/Modules/Filtering/ImageCompose/include -I
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/IO/ImageBase -I
/Users/builder/external/ITK/Modules/IO/ImageBase/include -I
/Users/builder/external/ITK/Modules/Core/Mesh/include -I
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/ThirdParty/ZLIB/src
-I
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/ThirdParty/MetaIO/src/MetaIO
-I /Users/builder/external/ITK/Modules/ThirdParty/MetaIO/src/MetaIO -I
/Users/builder/external/ITK/Modules/Core/SpatialObjects/include -I
/Users/builder/external/ITK/Modules/Filtering/ImageStatistics/include -I
/Users/builder/external/ITK/Modules/Filtering/Path/include -I
/Users/builder/external/ITK/Modules/Filtering/ImageIntensity/include -I
/Users/builder/external/ITK/Modules/Filtering/DisplacementField/include -I
/Users/builder/external/ITK/Modules/IO/TransformBase/include -O3 -Weverything
-Wno-padded -Wno-missing-noreturn -Wno-unused-macros -Wno-missing-prototypes
-Wno-sign-conversion -Wno-conversion -Wno-unreachable-code-break
-Wno-extra-semi -Wno-weak-vtables -Wno-c++98-compat-pedantic
-Wno-global-constructors -Wno-unreachable-code -Wno-documentation
-Wno-float-equal -Wno-exit-time-destructors -Wno-implicit-fallthrough
-Wno-switch-enum -Wno-covered-switch-default -Wno-missing-variable-declarations
-Wno-undef -Wno-weak-template-vtables -Wno-conditional-uninitialized
-Wno-unused-member-function -Wno-old-style-cast -Wno-over-aligned -Wall
-Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch
-Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings
-Wno-strict-overflow -Wno-deprecated -Wno-invalid-offsetof -Woverloaded-virtual
-std=c++11 -fdebug-compilation-dir
/Users/builder/external/ITK-clang-rel-x86_64-static/Modules/IO/TransformBase/src
-ferror-limit 19 -fmessage-length 0 -stack-protector 3 -mstackrealign -fblocks
-fobjc-runtime=macosx-10.8.0 -fencode-extended-block-signature -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o
CMakeFiles/ITKIOTransformBase.dir/itkTransformFactoryBase.cxx.o -x c++
/Users/builder/external/ITK/Modules/IO/TransformBase/src/itkTransformFactoryBase.cxx 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'CallGraph Pass Manager' on module
'/Users/builder/external/ITK/Modules/IO/TransformBase/src/itkTransformFactoryBase.cxx'.
4.    Running pass 'SLP Vectorizer' on function
'@_ZN3itk20ImageTransformHelperILj3ELj1ELj2EddE32TransformPhysicalPointToIndexRowERKNS_6MatrixIdLj3ELj3EEERKNS_5PointIdLj3EEES9_RS7_RNS_5IndexILj3EEERKNS_7Concept6Detail15UniqueType_boolILb0EEE'
clang-3.5: error: unable to execute command: Illegal instruction: 4
clang-3.5: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.5.0 (205200)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
clang-3.5: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.5: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.5: note: diagnostic msg:
/var/folders/_j/yk9_m1js2jq67w2sbxfgrxkr0000gn/T/itkTransformFactoryBase-daf49c.cpp
clang-3.5: note: diagnostic msg:
/var/folders/_j/yk9_m1js2jq67w2sbxfgrxkr0000gn/T/itkTransformFactoryBase-daf49c.sh
clang-3.5: note: diagnostic msg: 

********************</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>