[llvm-bugs] [Bug 50955] New: bad compile modules

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jul 1 08:35:26 PDT 2021


            Bug ID: 50955
           Summary: bad compile modules
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++2b
          Assignee: unassignedclangbugs at nondot.org
          Reporter: lexakopp2212 at gmail.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

Created attachment 24993
  --> https://bugs.llvm.org/attachment.cgi?id=24993&action=edit
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
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
PLEASE submit a bug report to https://bugs.llvm.org/ 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
1.      <eof> parser at end of file
2.      /usr/include/c++/v1/ostream:867:1: instantiating function definition
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

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/20210701/8b1bad0f/attachment.html>

More information about the llvm-bugs mailing list