[llvm-bugs] [Bug 48500] New: Fatal error occurs when compiling Android P with amd processor

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Dec 13 23:51:50 PST 2020


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

            Bug ID: 48500
           Summary: Fatal error occurs when compiling Android P with amd
                    processor
           Product: clang
           Version: 6.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: lifeilong789 at gmail.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

I got a fatal error when compiling Android p source code on amd processor
Ubuntu16. The same code will not report error on intel processor Ubuntu16.
I got a fatal error when compiling Android p source code on amd processor
Ubuntu16. The same code will not report error on intel processor Ubuntu16.



FAILED:
out/soong/.intermediates/external/vixl/libvixl-arm/linux_glibc_x86_static/obj/external/vixl/src/aarch32/disasm-aarch32.o 
PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++ -c
-Iexternal/vixl/src -Iexternal/vixl  -Wa,--noexecstack -fPIC -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS
-D__STDC_CONSTANT_MACROS
--gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8
--sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot
-fstack-protector-strong -msse3 -m32 -march=prescott -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE=1 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused
-Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG
-fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing
-fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof
-Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic
-Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined
-Wno-zero-as-null-pointer-constant -fdebug-prefix-map=$PWD/=  
-Iexternal/libcxx/include -Iexternal/libcxxabi/include -Isystem/core/include
-Isystem/media/audio/include -Ihardware/libhardware/include
-Ihardware/libhardware_legacy/include -Ihardware/ril/include
-Ilibnativehelper/include -Iframeworks/native/include
-Iframeworks/native/opengl/include -Iframeworks/av/include 
-Ilibnativehelper/include_jni -Wall -Werror -Wimplicit-fallthrough -target
i686-linux-gnu
-Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin
-fPIC -D_USING_LIBCXX -std=gnu++14 -Wsign-promo
-Wno-inconsistent-missing-override -Wno-null-dereference
-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative
-Wno-gnu-include-next  -DVIXL_INCLUDE_TARGET_T32
-DVIXL_GENERATE_SIMULATOR_INSTRUCTIONS_VALUE=0 -Wextra
-fdiagnostics-show-option -Wredundant-decls -Wunreachable-code
-Wmissing-noreturn -pedantic -Wwrite-strings -DVIXL_CODE_BUFFER_MALLOC -O3
-isystem
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8
-isystem
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward
-isystem
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux/32
-nostdinc++ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
-Werror=address-of-temporary -Werror=return-type
-Wno-tautological-constant-compare -Wno-null-pointer-arithmetic
-Wno-enum-compare -Wno-enum-compare-switch -MD -MF
out/soong/.intermediates/external/vixl/libvixl-arm/linux_glibc_x86_static/obj/external/vixl/src/aarch32/disasm-aarch32.o.d
-o
out/soong/.intermediates/external/vixl/libvixl-arm/linux_glibc_x86_static/obj/external/vixl/src/aarch32/disasm-aarch32.o
external/vixl/src/aarch32/disasm-aarch32.cc
#0 0x00000000014b9f84
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x14b9f84)
#1 0x00000000014ba1b6
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x14ba1b6)
#2 0x00007f43d941f3c0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x153c0)
#3 0x00000000010a6ae0 llvm::DebugLoc::get() const
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x10a6ae0)
#4 0x00000000010249c9
llvm::LexicalScopes::extractLexicalScopes(llvm::SmallVectorImpl<std::__1::pair<llvm::MachineInstr
const*, llvm::MachineInstr const*> >&, llvm::DenseMap<llvm::MachineInstr
const*, llvm::LexicalScope*, llvm::DenseMapInfo<llvm::MachineInstr const*>,
llvm::detail::DenseMapPair<llvm::MachineInstr const*, llvm::LexicalScope*> >&)
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x10249c9)
#5 0x000000000102476d llvm::LexicalScopes::initialize(llvm::MachineFunction
const&)
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x102476d)
#6 0x0000000001a9b64e
llvm::DebugHandlerBase::beginFunction(llvm::MachineFunction const*)
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x1a9b64e)
#7 0x0000000001a4b660 llvm::AsmPrinter::EmitFunctionHeader()
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x1a4b660)
#8 0x0000000001a4bcae llvm::AsmPrinter::EmitFunctionBody()
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x1a4bcae)
#9 0x0000000000ac7e22
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0xac7e22)
#10 0x0000000000e6389a
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0xe6389a)
#11 0x00000000010fea7b llvm::FPPassManager::runOnFunction(llvm::Function&)
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x10fea7b)
#12 0x00000000010fece3 llvm::FPPassManager::runOnModule(llvm::Module&)
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x10fece3)
#13 0x00000000010ff164 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x10ff164)
#14 0x0000000001616432 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::__1::unique_ptr<llvm::raw_pwrite_stream,
std::__1::default_delete<llvm::raw_pwrite_stream> >)
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x1616432)
#15 0x0000000001cad14c
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x1cad14c)
#16 0x000000000213a7f6 clang::ParseAST(clang::Sema&, bool, bool)
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x213a7f6)
#17 0x00000000019c4a5b clang::FrontendAction::Execute()
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x19c4a5b)
#18 0x0000000001972738
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x1972738)
#19 0x0000000001a48cc4
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x1a48cc4)
#20 0x00000000007b7db6 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x7b7db6)
#21 0x00000000007b3f6d main
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x7b3f6d)
#22 0x00007f43d8d7f0b3 __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x270b3)
#23 0x00000000007b30b2 _start
(prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+0x7b30b2)
Stack dump:
0.      Program arguments:
prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real -cc1 -triple
i686--linux-gnu -emit-obj -mnoexecstack -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name disasm-aarch32.cc -mrelocation-model pic
-pic-level 2 -mthread-model posix -relaxed-aliasing -fmath-errno -masm-verbose
-mconstructor-aliases -target-cpu prescott -target-feature +sse3
-dwarf-column-info -debug-info-kind=limited -dwarf-version=4
-debugger-tuning=gdb -momit-leaf-frame-pointer -coverage-notes-file
/proc/self/cwd/out/soong/.intermediates/external/vixl/libvixl-arm/linux_glibc_x86_static/obj/external/vixl/src/aarch32/disasm-aarch32.gcno
-nostdinc++ -resource-dir
prebuilts/clang/host/linux-x86/clang-4691093/lib64/clang/6.0.2 -dependency-file
out/soong/.intermediates/external/vixl/libvixl-arm/linux_glibc_x86_static/obj/external/vixl/src/aarch32/disasm-aarch32.o.d
-MT
out/soong/.intermediates/external/vixl/libvixl-arm/linux_glibc_x86_static/obj/external/vixl/src/aarch32/disasm-aarch32.o
-sys-header-deps -isystem
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8
-isystem
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward
-isystem
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux/32
-I external/vixl/src -I external/vixl -U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=2
-D __STDC_FORMAT_MACROS -D __STDC_CONSTANT_MACROS -D _FILE_OFFSET_BITS=64 -D
_LARGEFILE_SOURCE=1 -D ANDROID -D NDEBUG -U DEBUG -D
__compiler_offsetof=__builtin_offsetof -I external/libcxx/include -I
external/libcxxabi/include -I system/core/include -I system/media/audio/include
-I hardware/libhardware/include -I hardware/libhardware_legacy/include -I
hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I
frameworks/native/opengl/include -I frameworks/av/include -I
libnativehelper/include_jni -D _USING_LIBCXX -D
_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -D VIXL_INCLUDE_TARGET_T32 -D
VIXL_GENERATE_SIMULATOR_INSTRUCTIONS_VALUE=0 -D VIXL_CODE_BUFFER_MALLOC
-isysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot
-internal-isystem
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/local/include
-internal-isystem
prebuilts/clang/host/linux-x86/clang-4691093/lib64/clang/6.0.2/include
-internal-externc-isystem
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/i386-linux-gnu
-internal-externc-isystem
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/include
-internal-externc-isystem
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include -O3
-W -Wall -Wno-unused -Winit-self -Wpointer-arith -Wno-multichar
-Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic
-Wno-unused-command-line-argument -Wno-expansion-to-defined
-Wno-zero-as-null-pointer-constant -Wall -Werror -Wimplicit-fallthrough
-Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference
-Wno-thread-safety-negative -Wno-gnu-include-next -Wextra -Wredundant-decls
-Wunreachable-code -Wmissing-noreturn -Wwrite-strings
-Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
-Werror=address-of-temporary -Werror=return-type
-Wno-tautological-constant-compare -Wno-null-pointer-arithmetic
-Wno-enum-compare -Wno-enum-compare-switch -pedantic -std=gnu++14
-fdeprecated-macro -fdebug-compilation-dir /proc/self/cwd
-fdebug-prefix-map=/proc/self/cwd=
-fdebug-prefix-map=/home/lfl/project/android_mtk_p_mt6761_watch_2020004/=
-ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o
out/soong/.intermediates/external/vixl/libvixl-arm/linux_glibc_x86_static/obj/external/vixl/src/aarch32/disasm-aarch32.o
-x c++ external/vixl/src/aarch32/disasm-aarch32.cc 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'external/vixl/src/aarch32/disasm-aarch32.cc'.
4.      Running pass 'X86 Assembly Printer' on function
'@_ZN4vixl7aarch3212Disassembler9DecodeT32Ej'
clang++.real: error: unable to execute command: Segmentation fault (core
dumped)
clang++.real: error: clang frontend command failed due to signal (use -v to see
invocation)
Android (4691093 based on r316199) clang version 6.0.2
(https://android.googlesource.com/toolchain/clang
183abd29fc496f55536e7d904e0abae47888fc7f)
(https://android.googlesource.com/toolchain/llvm
34361f192e41ed6e4e8f9aca80a4ea7e9856f327) (based on LLVM 6.0.2svn)
Target: i686--linux-gnu
Thread model: posix
InstalledDir: prebuilts/clang/host/linux-x86/clang-4691093/bin
clang++.real: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.

-- 
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/20201214/8ba545eb/attachment-0001.html>


More information about the llvm-bugs mailing list