[llvm-bugs] [Bug 46437] New: clang-10: note: diagnostic msg: Error generating preprocessed source(s).

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 24 06:59:37 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46437

            Bug ID: 46437
           Summary: clang-10: note: diagnostic msg: Error generating
                    preprocessed source(s).
           Product: clang
           Version: 10.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: xuan.tang at crs-iimotion.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

Segmentation fault while building gtest for rocthrust using install script.
(build test enabled)

clang-10: error: unable to execute command: Segmentation fault (core dumped)
clang-10: error: clang frontend command failed due to signal (use -v to see
invocation)
HCC clang version 10.0.0
(/data/jenkins-workspace/compute-rocm-rel-3.3/external/hcc-tot/llvm-project/clang
1ce0fe5e88b2124494b9500817b4c2c66bdfa5aa) (based on HCC
3.1.20114-6776c83f-1ce0fe5e88b )
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm/hcc/bin
---------------------------------------

More detail:

fatal error: too many errors emitted, stopping now [-ferror-limit=]
Stack dump:
0.      Program arguments: /opt/rocm-3.3.0/hcc/bin/clang-10 -cc1
-D__KALMAR_HC__=1 -D__HCC_HC__=1 -famp-is-device -fno-builtin -fno-common
-triple amdgcn--amdhsa-hcc -aux-triple x86_64-unknown-linux-gnu -S
-disable-free -disable-llvm-verifier -main-file-name distance.cu
-mrelocation-model pic -pic-level 2 -mthread-model posix -mframe-pointer=none
-fmath-errno -fno-rounding-math -no-integrated-as -mconstructor-aliases
-dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir
/opt/rocm-3.3.0/hcc/lib/clang/10.0.0 -I/opt/rocm/hcc/bin/../include
-I/opt/rocm/hcc/bin/../hcc/include -isystem /opt/rocm/hcc/include -isystem
/opt/rocm-3.3.0/hip/include/hip/hcc_detail/cuda -isystem /opt/rocm/hsa/include
-isystem /opt/rocm-3.3.0/hip/include -isystem
/home/a/Projects/rocThrust/build/release/gtest/include -isystem
/home/a/Projects/rocThrust/testing/. -isystem /opt/rocm-3.3.0/include -isystem
/opt/rocm-3.3.0/rocprim/include -isystem /opt/rocm-3.3.0/hip/../include
-isystem /opt/rocm-3.3.0/hip/include -isystem /opt/rocm/include -isystem
/opt/rocm/hcc/include -D __HIPCC__ -D __HIP_ARCH_GFX803__=1 -I
/home/a/Projects/rocThrust/build/release/thrust/include -I
/home/a/Projects/rocThrust/thrust/.. -D NDEBUG -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/x86_64-linux-gnu/c++/9
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/x86_64-linux-gnu/c++/9
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/backward
-internal-isystem /usr/local/include -internal-isystem
/opt/rocm-3.3.0/hcc/lib/clang/10.0.0/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O3 -Wno-deprecated-register
-Wno-unused-command-line-argument -Wall -Wextra -Wno-unused-function -std=c++11
-fdeprecated-macro -fno-dwarf-directory-asm -fdebug-compilation-dir
/home/a/Projects/rocThrust/build/release/testing -ferror-limit 19
-fmessage-length 0 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops
-vectorize-slp -famp -fhsa-ext -fgpu-rdc -emit-llvm-bc -o
/tmp/distance-7bb1bc.s -x hc-kernel
/home/a/Projects/rocThrust/testing/distance.cu 
1.      <unknown> parser at unknown location
 #0 0x0000000001b803fa llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/opt/rocm-3.3.0/hcc/bin/clang-10+0x1b803fa)
 #1 0x0000000001b7e20c llvm::sys::RunSignalHandlers()
(/opt/rocm-3.3.0/hcc/bin/clang-10+0x1b7e20c)
 #2 0x0000000001b7e373 SignalHandler(int)
(/opt/rocm-3.3.0/hcc/bin/clang-10+0x1b7e373)
 #3 0x00007f651feb2890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
 #4 0x0000000003b8abfe clang::Lexer::SkipWhitespace(clang::Token&, char const*,
bool&) (/opt/rocm-3.3.0/hcc/bin/clang-10+0x3b8abfe)
 #5 0x0000000003b8fad7 clang::Lexer::LexTokenInternal(clang::Token&, bool)
(/opt/rocm-3.3.0/hcc/bin/clang-10+0x3b8fad7)
 #6 0x0000000003bf3f9f clang::Preprocessor::Lex(clang::Token&)
(/opt/rocm-3.3.0/hcc/bin/clang-10+0x3bf3f9f)
 #7 0x0000000002fb963b clang::Parser::ConsumeBrace()
(/opt/rocm-3.3.0/hcc/bin/clang-10+0x2fb963b)
 #8 0x0000000002fbc298 clang::Parser::ConsumeAnyToken(bool)
(/opt/rocm-3.3.0/hcc/bin/clang-10+0x2fbc298)
 #9 0x0000000002fbc50a
clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>,
clang::Parser::SkipUntilFlags) (/opt/rocm-3.3.0/hcc/bin/clang-10+0x2fbc50a)
#10 0x0000000002fbc715
clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>,
clang::Parser::SkipUntilFlags) (/opt/rocm-3.3.0/hcc/bin/clang-10+0x2fbc715)
#11 0x0000000002fbc73c
clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>,
clang::Parser::SkipUntilFlags) (/opt/rocm-3.3.0/hcc/bin/clang-10+0x2fbc73c)
#12 0x0000000002fbc715
clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>,
clang::Parser::SkipUntilFlags) (/opt/rocm-3.3.0/hcc/bin/clang-10+0x2fbc715)
#13 0x0000000002fbc73c
clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>,
clang::Parser::SkipUntilFlags) (/opt/rocm-3.3.0/hcc/bin/clang-10+0x2fbc73c)
#14 0x0000000002fbc73c
clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>,
clang::Parser::SkipUntilFlags) (/opt/rocm-3.3.0/hcc/bin/clang-10+0x2fbc73c)
#15 0x0000000002fbc715
clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>,
clang::Parser::SkipUntilFlags) (/opt/rocm-3.3.0/hcc/bin/clang-10+0x2fbc715)
#16 0x0000000002fbc73c
clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>,
clang::Parser::SkipUntilFlags) (/opt/rocm-3.3.0/hcc/bin/clang-10+0x2fbc73c)
...

#86 0x0000000002fbd2b1
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) (.part.207.constprop.210)
(/opt/rocm-3.3.0/hcc/bin/clang-10+0x2fbd2b1)#87 0x0000000002fbd2ef
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier)
(/opt/rocm-3.3.0/hcc/bin/clang-10+0x2fbd2ef)
#88 0x0000000002fc3ac0
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) (/opt/rocm-3.3.0/hcc/bin/clang-10+0x2fc3ac0)
#89 0x0000000002fc4510
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, bool)
(/opt/rocm-3.3.0/hcc/bin/clang-10+0x2fc4510)
#90 0x0000000002fb8a5d clang::ParseAST(clang::Sema&, bool, bool)
(/opt/rocm-3.3.0/hcc/bin/clang-10+0x2fb8a5d)
#91 0x0000000002284631 clang::FrontendAction::Execute()
(/opt/rocm-3.3.0/hcc/bin/clang-10+0x2284631)
#92 0x0000000002246dd0
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/opt/rocm-3.3.0/hcc/bin/clang-10+0x2246dd0)
#93 0x000000000232a79b
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/opt/rocm-3.3.0/hcc/bin/clang-10+0x232a79b)
#94 0x0000000000a0d70d cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/opt/rocm-3.3.0/hcc/bin/clang-10+0xa0d70d)
#95 0x000000000099c363 main (/opt/rocm-3.3.0/hcc/bin/clang-10+0x99c363)
#96 0x00007f651eafbb97 __libc_start_main
/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#97 0x0000000000a0a979 _start (/opt/rocm-3.3.0/hcc/bin/clang-10+0xa0a979)
[ 60%] Built target test_thrust_complex_transform
[ 60%] Building CXX object
testing/CMakeFiles/test_thrust_dereference.dir/testframework.cpp.o
[ 60%] Building CXX object
testing/CMakeFiles/test_thrust_binary_search_vector_descending.dir/testframework.cpp.o
[ 60%] Built target test_thrust_unittest_tester
Scanning dependencies of target test_thrust_advance
[ 60%] Building CXX object
testing/CMakeFiles/test_thrust_advance.dir/advance.cu.o
[ 60%] Built target test_thrust_for_each
Scanning dependencies of target test_thrust_functional
[ 60%] Building CXX object
testing/CMakeFiles/test_thrust_functional.dir/functional.cu.o
[ 60%] Building CXX object
testing/CMakeFiles/test_thrust_functional.dir/testframework.cpp.o
[ 60%] Building CXX object
testing/CMakeFiles/test_thrust_advance.dir/testframework.cpp.o
[ 60%] Linking CXX executable test_thrust_dereference
clang-10: error: unable to execute command: Segmentation fault (core dumped)
clang-10: error: clang frontend command failed due to signal (use -v to see
invocation)
HCC clang version 10.0.0
(/data/jenkins-workspace/compute-rocm-rel-3.3/external/hcc-tot/llvm-project/clang
1ce0fe5e88b2124494b9500817b4c2c66bdfa5aa) (based on HCC
3.1.20114-6776c83f-1ce0fe5e88b )
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm/hcc/bin
clang-10: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang-10: note: diagnostic msg: Error generating preprocessed source(s).
testing/CMakeFiles/test_thrust_distance.dir/build.make:62: recipe for target
'testing/CMakeFiles/test_thrust_distance.dir/distance.cu.o' failed
make[2]: *** [testing/CMakeFiles/test_thrust_distance.dir/distance.cu.o] Error
254
make[2]: *** Deleting file
'testing/CMakeFiles/test_thrust_distance.dir/distance.cu.o'
CMakeFiles/Makefile2:6236: recipe for target
'testing/CMakeFiles/test_thrust_distance.dir/all' failed
make[1]: *** [testing/CMakeFiles/test_thrust_distance.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 60%] Built target test_thrust_dereference

-- 
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/20200624/0d4f90d0/attachment-0001.html>


More information about the llvm-bugs mailing list