<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/67971>67971</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
core dump when working with modules
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
yephick
</td>
</tr>
</table>
<pre>
Working on an embedded code (targeting Cypress's FX3) from within Visual Studio that is set up to use the project in "Open folder" mode, invoking GNU's make that (among other things) builds .pcm files and corresponding .o files. Getting a consistent crash:
>------ Build started: Project: Cypress-FX3, Configuration: ------
UART logging level is set to [msg_verbose]
app.cpp
usb/usb.cpp
MSBuild version 17.7.2+d6990bcfa for .NET Framework
app.cpp:16:8: fatal error: error in loading module 'uac' from prebuilt module path
import uac;
^
1 error generated.
make.exe: *** [build/obj/msg_verbose/./app.cpp.o] Error 1
makefile:324: recipe for target 'build/obj/msg_verbose/./app.cpp.o' failed
make.exe: *** Waiting for unfinished jobs....
usb/usb.cpp:10:8: fatal error: error in loading module 'uac' from prebuilt module path
import uac;
^
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\../../VC/Tools/Llvm/bin/clang++.exe" -fprebuilt-module-path=./build/obj/msg_verbose/ -fprebuilt-module-path=./build/obj/msg_verbose/usb/ -c -D__CYU3P_TX__=1 -DS2R_UART_LEVEL=msg_verbose "--sysroot=C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\../../Linux/gcc_arm/arm-none-eabi/" -I./SDK_1_3_4/inc -I./. "-IC:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\../../Linux/gcc_arm/arm-none-eabi/include" "-IC:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\../../Linux/gcc_arm/arm-none-eabi/include/c++/9.3.1" "-IC:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\../../Linux/gcc_arm/arm-none-eabi/include/c++/9.3.1/arm-none-eabi" "-IC:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\../../Linux/gcc_arm/lib/gcc/arm-none-eabi/9.3.1/include" -target armv9-arm-none-eabi -mcpu=arm926ej-s -mno-thumb -mfloat-abi=soft -msoft-float -mfpu=softvfp -march=armv5tej -marm -meabi 5 -mabi=apcs-gnu -Oz -fsigned-char -ffunction-sections -fdata-sections -fno-builtin -fstack-usage -fno-exceptions -fno-rtti -fno-stack-protector -fomit-frame-pointer -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-math-errno -fmerge-all-constants -fno-unroll-loops -fno-use-cxa-atexit -fstrict-enums -fshort-enums -Wall -Wsuggest-override -g2 -nostdlib -std=c++20 -flto=full -fc++-abi=arm -fvisibility-inlines-hidden -Wnon-virtual-dtor -Wctor-dtor-privacy -Wdeprecated-copy -Wno-redundant-move -Weffc++ -Wno-write-strings -MMD -MP -MTbuild/obj/msg_verbose/./usb/usb.cpp.o -o build/obj/msg_verbose/./usb/usb.cpp.o usb/usb.cpp
1. usb/usb.cpp:19:1: current parser token 'alignas'
Exception Code: 0xC0000005
#0 0x02e6a21d C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x29ca21d C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x29c91c5
#1 0x02e6a21d C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x3913eb9 C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x3913d6f
#2 0x02e6a21d C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x174abdb (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe+0x29ca21d)
#3 0x02e6a21d
#4 0x02e6a21d C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x2d15829 C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x2d15829
#5 0x02e6a21d C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x1754c0d
0x02E6A21D, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x00000000004A0000) + 0x29CA21D byte(s)
0x02E691C5, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x00000000004A0000) + 0x29C91C5 byte(s)
0x03DB3EB9, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x00000000004A0000) + 0x3913EB9 byte(s)
0x03DB3D6F, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x00000000004A0000) + 0x3913D6F byte(s)
0x01BEABDB, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x00000000004A0000) + 0x174ABDB byte(s)
0x778A62BF, C:\Windows\SYSTEM32\ntdll.dll(0x0000000077860000) + 0x462BF byte(s), RtlAllocateHeap() + 0x4DF byte(s)
0x031B5829, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x00000000004A0000) + 0x2D15829 byte(s)
0x031B5829, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x00000000004A0000) + 0x2D15829 byte(s)
0x01BF4C0D, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x00000000004A0000) + 0x1754C0D byte(s)
0x0813A628 <unknown module>
0x08137270 <unknown module>
S:\sub2r\Cypress-FX3\clang++ : error : clang frontend command failed due to signal (use -v to see invocation)
clang version 16.0.5
Target: armv9-arm-none-eabi
Thread model: posix
InstalledDir: C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\..\..\VC\Tools\Llvm\bin
clang++: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: C:\Users\yephick\AppData\Local\Temp\usb-4b6949.cpp
clang++: note: diagnostic msg: C:\Users\yephick\AppData\Local\Temp\usb-4b6949.sh
clang++: note: diagnostic msg:
********************
makefile:324: recipe for target 'build/obj/msg_verbose/./usb/usb.cpp.o' failed
make.exe: *** [build/obj/msg_verbose/./usb/usb.cpp.o] Error 1
Build failed.
[usb-4b6949.zip](https://github.com/llvm/llvm-project/files/12782117/usb-4b6949.zip)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzcWd9u27jSfxrmZkBBomzLusiFbdnd4ku2QeM2u1cBRVEyG4oUSMpJ9uk_kLISJyfp6RaLJnsMQxL_zfw4MxoNZ6i1olGcn6LpEk2LE9q7nTan97zbCXZzUurq_vRKmxuhGtAKqALelryqeAVMVxwQmTtqGu78hNV9Z7i1iGQWNn-kiORQG93CrXA7oeCrsD2VcOn6SmhwO-pAWLDcQd-B09BbDm7HoTP6G2cOhAJEyKeOK6i1rLhBhECrK47ICoTa64Dqw-9fAsOW3vCBKCJz2moP2O24Ac-7sR5M2QtZWYg61kItJLdAld-HMdx2WlWeXKSHoQg-cBd2RYFpZYV1XDlghtodShcoLlA8XtM1Dj9YegZgHTWOVyhdwMWwFf94EA4OglnBSqtaNL2hTmjlx2GgMZAE-LL4vAWpm8ZDkHzP5SgspwFNl61trvfclNpyNC3GVbTrItZ1Y7O3JSKb3pbHneeXA8w9N1ZoBUkWZRFBZFnN8jwuWU2h1gai39db2Bja8lttbp4zSBfJDKWLuUdeU0clcGO08c3w4JUnNQ0ibXXVS28qWU8ZItlgFJ3hXh9uHO6o241cRNtp48BPT5eHTjRdj8P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