Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Aug 2017 19:35:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-toolchain@FreeBSD.org
Subject:   [Bug 221864] clang 5.0 crashes on assert: "replacement types must always be canonical"
Message-ID:  <bug-221864-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221864

            Bug ID: 221864
           Summary: clang 5.0 crashes on assert: "replacement types must
                    always be canonical"
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: needs-qa
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-toolchain@FreeBSD.org
          Reporter: jbeich@FreeBSD.org

Created attachment 185824
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D185824&action=
=3Dedit
src/llvm_wrapper/llvm_wrapper.cpp (preprocessed, compressed)

$ pkg install llvm40 cmake sdl2 git
$ cd /tmp
$ git clone https://github.com/programmerjake/vulkan-cpu
$ cd vulkan-cpu
$ cmake .
$ make
[...]
[  2%] Building CXX object
src/llvm_wrapper/CMakeFiles/vulkan_cpu_llvm_wrapper.dir/llvm_wrapper.cpp.o
cd /tmp/vulkan-cpu/src/llvm_wrapper && /usr/bin/CC=20=20
-I/usr/local/llvm40/include -I/tmp/vulkan-cpu/src -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Wall -ftemplate-depth=3D1024
-Werror "-Wno-error=3D#warnings" -std=3Dgnu++14 -o
CMakeFiles/vulkan_cpu_llvm_wrapper.dir/llvm_wrapper.cpp.o -c
/tmp/vulkan-cpu/src/llvm_wrapper/llvm_wrapper.cpp
Assertion failed: (Replacement.isCanonical() && "replacement types must alw=
ays
be canonical"), function getSubstTemplateTypeParmType, file
/poudriere/jails/head-amd64/usr/src/contrib/llvm/tools/clang/lib/AST/ASTCon=
text.cpp,
line 3520.
c++: error: unable to execute command: Abort trap
c++: error: clang frontend command failed due to signal (use -v to see
invocation)
FreeBSD clang version 5.0.0 (trunk 308421) (based on LLVM 5.0.0svn)
Target: x86_64-unknown-freebsd12.0
Thread model: posix
InstalledDir: /usr/bin
c++: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.freebsd.org/submit/ and include the crash backtrace, preproces=
sed
source, and associated run script.
c++: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/llvm_wrapper-eb0531.cpp
c++: note: diagnostic msg: /tmp/llvm_wrapper-eb0531.sh
c++: note: diagnostic msg:

********************
*** Error code 254

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-221864-29464>