[LLVMbugs] [Bug 15687] New: clang fails to build kernel/bound.c (Linux Kernel build)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Apr 5 08:44:02 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=15687
Bug ID: 15687
Summary: clang fails to build kernel/bound.c (Linux Kernel
build)
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: dl9pf at gmx.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Aborted with clang error.
Clang version: trunk at 178860
LLVM version: trunk at 178859
Linux Kernel: d08d528dc1848fb369a0b27cdb0749d8f6f38063 (3.9-rc6+)
make CONFIG_DEBUG_SECTION_MISMATCH=y CONFIG_DEBUG_INFO=1 -j1 CC=clang
make[1]: Entering directory `/local/dl9pf/llvmlinux/targets/x86_64/src/linux'
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `relocs'.
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
CC kernel/bounds.s
clang-3.3:
/local/dl9pf/llvmlinux/toolchain/clang/src/llvm/lib/IR/Value.cpp:553: void
llvm::ValueHandleBase::RemoveFromUseList(): Assertion `VP.getPointer() &&
VP.getPointer()->HasValueHandle && "Pointer doesn't have a use list!"' failed.
0 clang-3.3 0x0000000001995f4a llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1 clang-3.3 0x00000000019961d1
2 clang-3.3 0x0000000001995c20
3 libpthread.so.0 0x00007fc8af8fc1f0
4 libc.so.6 0x00007fc8aed5b3d5 gsignal + 53
5 libc.so.6 0x00007fc8aed5c858 abort + 328
6 libc.so.6 0x00007fc8aed542e2
7 libc.so.6 0x00007fc8aed54392
8 clang-3.3 0x00000000018b73d9
llvm::ValueHandleBase::RemoveFromUseList() + 91
9 clang-3.3 0x0000000000f4e97d
10 clang-3.3 0x000000000152dc34
11 clang-3.3 0x00000000019e02b7
12 clang-3.3 0x00000000019d9dea
clang::CodeGen::CodeGenFunction::StartFunction(clang::GlobalDecl,
clang::QualType, llvm::Function*, clang::CodeGen::CGFunctionInfo const&,
clang::CodeGen::FunctionArgList const&, clang::SourceLocation) + 832
13 clang-3.3 0x00000000019daae7
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 539
14 clang-3.3 0x00000000019edef7
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
+ 669
15 clang-3.3 0x00000000019eb041
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 383
16 clang-3.3 0x00000000019ea97e
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 696
17 clang-3.3 0x00000000019f0efa
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 320
18 clang-3.3 0x00000000019c94ad
19 clang-3.3 0x00000000019c853a
20 clang-3.3 0x0000000001d2ab27 clang::ParseAST(clang::Sema&, bool, bool)
+ 554
21 clang-3.3 0x0000000001c376a4 clang::ASTFrontendAction::ExecuteAction()
+ 298
22 clang-3.3 0x00000000019c7851 clang::CodeGenAction::ExecuteAction() +
1273
23 clang-3.3 0x0000000001c37226 clang::FrontendAction::Execute() + 200
24 clang-3.3 0x0000000001c11416
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 564
25 clang-3.3 0x000000000199ae26
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1060
26 clang-3.3 0x0000000000c0782d cc1_main(char const**, char const**, char
const*, void*) + 641
27 clang-3.3 0x0000000000c019b3 main + 508
28 libc.so.6 0x00007fc8aed47a15 __libc_start_main + 245
29 clang-3.3 0x0000000000c00089
Stack dump:
0. Program arguments:
/local/dl9pf/llvmlinux/toolchain/clang/install/bin/clang-3.3 -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -disable-llvm-verifier
-main-file-name bounds.c -mrelocation-model static -mdisable-fp-elim
-relaxed-aliasing -mdisable-tail-calls -fmath-errno -masm-verbose
-mconstructor-aliases -fuse-init-array -mcode-model kernel -disable-red-zone
-target-cpu x86-64 -target-feature -sse -target-feature -mmx -target-feature
-sse2 -target-feature -3dnow -target-feature -avx -momit-leaf-frame-pointer -g
-coverage-file /local/dl9pf/llvmlinux/targets/x86_64/src/linux/kernel/bounds.s
-nostdsysteminc -nobuiltininc -resource-dir
/local/dl9pf/llvmlinux/toolchain/clang/install/bin/../lib/clang/3.3
-dependency-file kernel/.bounds.s.d -MT kernel/bounds.s -sys-header-deps
-isystem
/local/dl9pf/llvmlinux/toolchain/clang/install/bin/../lib/clang/3.3/include
-include
/local/dl9pf/llvmlinux/targets/x86_64/src/linux/include/linux/kconfig.h -D
__KERNEL__ -D CONFIG_AS_CFI=1 -D CONFIG_AS_CFI_SIGNAL_FRAME=1 -D
CONFIG_AS_CFI_SECTIONS=1 -D CONFIG_AS_FXSAVEQ=1 -D CONFIG_AS_AVX=1 -D
CONFIG_AS_AVX2=1 -D KBUILD_STR(s)=#s -D KBUILD_BASENAME=KBUILD_STR(bounds) -D
KBUILD_MODNAME=KBUILD_STR(bounds) -I
/local/dl9pf/llvmlinux/targets/x86_64/src/linux/arch/x86/include -I
arch/x86/include/generated -I include -I
/local/dl9pf/llvmlinux/targets/x86_64/src/linux/arch/x86/include/uapi -I
arch/x86/include/generated/uapi -I
/local/dl9pf/llvmlinux/targets/x86_64/src/linux/include/uapi -I
include/generated/uapi -O2 -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
-Werror-implicit-function-declaration -Wno-format-security -Wno-sign-compare
-Wno-unused-variable -Wno-tautological-compare -Wdeclaration-after-statement
-Wno-pointer-sign -fdebug-compilation-dir
/local/dl9pf/llvmlinux/targets/x86_64/src/linux -ferror-limit 19
-fmessage-length 117 -fwrapv -mstackrealign -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fno-common -fdiagnostics-show-option
-fcolor-diagnostics -backend-option -vectorize-loops -o kernel/bounds.s -x c
kernel/bounds.c
1. <eof> parser at end of file
2. kernel/bounds.c:14:6: LLVM IR generation of declaration 'foo'
3. kernel/bounds.c:14:6: Generating code for declaration 'foo'
clang-3.3: error: unable to execute command: Aborted
clang-3.3: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang-3.3: note: diagnostic msg: PLEASE submit a bug report to and include the
crash backtrace, preprocessed source, and associated run script.
clang-3.3: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.3: note: diagnostic msg:
/local/dl9pf/llvmlinux/targets/x86_64/tmp/bounds-gN5RQ7.c
clang-3.3: note: diagnostic msg:
/local/dl9pf/llvmlinux/targets/x86_64/tmp/bounds-gN5RQ7.sh
clang-3.3: note: diagnostic msg:
********************
make[2]: *** [kernel/bounds.s] Error 254
kernel/bounds.c :
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/kernel/bounds.c
Files attached.
--
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/20130405/b87ec9df/attachment.html>
More information about the llvm-bugs
mailing list