[llvm-bugs] [Bug 40184] New: Clang 8.0 SVN (up to 350161) crashed for building Notepad2 (https://github.com/zufuliu/notepad2) for ARM64 in Release configuration
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Dec 30 04:55:20 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=40184
Bug ID: 40184
Summary: Clang 8.0 SVN (up to 350161) crashed for building
Notepad2 (https://github.com/zufuliu/notepad2) for
ARM64 in Release configuration
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: zufuliu at 163.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
Created attachment 21280
--> https://bugs.llvm.org/attachment.cgi?id=21280&action=edit
Stacktrace for Clang svn 347735 and 350161
Step to Produce:
1. Install latest Visual Studio 2017 15.9.4 and Windows 10 SDK 10.0.17763.0
2. Install LLVM for Visual Studio from
https://github.com/zufuliu/llvm-utils/releases, using LLVM_VS2017.zip. This
MSBuild source code is very similar to source in
http://llvm.org/svn/llvm-project/llvm/trunk/tools/msbuild, except I added ARM64
support (and other small changes):
<AdditionalOptions Condition="'$(Platform)' ==
'ARM64'">--target=aarch64-pc-windows-msvc $(ClangClAdditionalOptions)
%(AdditionalOptions)</AdditionalOptions>
3. Get source code for https://github.com/zufuliu/notepad2, Open
build\VS2017\Notepad2.sln, select LLVMDebug + ARM64 and LLVMRelease + ARM64 to
build both project, result:
LLVMDebug + ARM64 LLVMRelease + ARM64
metapath OK OK
Notepad2 OK Clang Crashed for both c++17
and c++2a
Host Windows 10 x64 Pro 1803 v10.0.17134.472 on i5-4570.
Detail stacktrace ("/showFilenames -v" is added to LLVM -> Additional Compiler
Options) for c++2a (c++17 is very similar) is in attachment.
SVN r347735 from http://llvm.org/builds/:
1>Assertion failed:
Subtarget.isCallingConvWin64(MF.getFunction().getCallingConv()) && "Funclets
should only be present on Win64", file
C:\src\llvm_package_347735\llvm\lib\Target\AArch64\AArch64FrameLowering.cpp,
line 1506
Self build 350161 trunk:
1>Assertion failed: unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
"Invalid Object Idx!", file
H:\llvm\llvm\include\llvm/CodeGen/MachineFrameInfo.h, line 489
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181230/81759107/attachment-0001.html>
More information about the llvm-bugs
mailing list