<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - bad compile modules"
href="https://bugs.llvm.org/show_bug.cgi?id=50955">50955</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>bad compile modules
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++2b
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>lexakopp2212@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>blitzrakete@gmail.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=24993" name="attach_24993" title="print module">attachment 24993</a> <a href="attachment.cgi?id=24993&action=edit" title="print module">[details]</a></span>
print module
i try build c++ module, but i get frontend problem
mkdir prebuild
clang++ -std=c++2a -stdlib=libc++ -fmodules-ts --precompile -x c++-module
sharedData.cpp -o prebuild/sharedData.pcm -emit-llvm -Xclang
-disable-llvm-passes
clang++ -std=c++2a -fmodules-ts -c prebuild/sharedData.pcm -o
prebuild/sharedData.o -emit-llvm -Xclang -disable-llvm-passes
clang++ -std=c++2a -stdlib=libc++ -fmodules-ts --precompile -x c++-module
print.cpp -o prebuild/print.pcm
-fmodule-file=sharedData=prebuild/sharedData.pcm -emit-llvm -Xclang
-disable-llvm-passes
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang++ -std=c++2a -stdlib=libc++ -fmodules-ts
--precompile -x c++-module print.cpp -o prebuild/print.pcm
-fmodule-file=sharedData=prebuild/sharedData.pcm -emit-llvm -Xclang
-disable-llvm-passes
1. <eof> parser at end of file
2. /usr/include/c++/v1/ostream:867:1: instantiating function definition
'std::__1::operator<<<std::char_traits<char>>'
3. /usr/include/c++/v1/ostream:719:1: instantiating function definition
'std::__put_character_sequence<char, std::char_traits<char>>'
4. /usr/include/c++/v1/locale:1378:1: instantiating function definition
'std::__pad_and_output<char, std::char_traits<char>>'
#0 0x0000000002a23da4 (clang+++0x2a23da4)
#1 0x0000000002a22e45 (clang+++0x2a22e45)
#2 0x00000000029c51c8 (clang+++0x29c51c8)
#3 0x00000000029c5072 (clang+++0x29c5072)
#4 0x00007fd63cdd4890 __restore_rt sigaction.c:0:0
#5 0x00000000047fd912 (toolchain/proton-clang/bin/clang+++0x47fd912)
#6 0x0000000001306a20 (toolchain/proton-clang/bin/clang+++0x1306a20)
clang-13: error: clang frontend command failed with exit code 139 (use -v to
see invocation)
#clang++ -std=c++2a -fmodules-ts -c prebuild/print.pcm -o prebuild/print.o
-emit-llvm -Xclang -disable-llvm-passes</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>