[llvmlinux] Try build lasted clang with debug flags

Jan-Simon Möller dl9pf at gmx.de
Thu Apr 18 13:47:14 UTC 2013


Hi Tinti!

Debug builds are huge. I need to try that - thanks for the report.


On Wednesday 17 April 2013 23:52:10 Tinti wrote:
> I am using jansimon branch and I have:
> 
> * replaced the CMAKE_BUILD_TYPE=Release for CMAKE_BUILD_TYPE=Debug.
> * remove one assert because Register due the commit below
> 
> commit 6af228a92a7b8414fa3c1b3c37ee659d32e66e1b
> Author: Roman Divacky <rdivacky at freebsd.org>
> Date:   Thu Dec 20 14:43:30 2012 +0000
> 
>     Remove MCTargetAsmLexer and its derived classes now that edis,
>     its only user, is gone.
> 
> 
>     git-svn-id:
> https://llvm.org/svn/llvm-project/llvm/trunk@17069991177308-0d34-0410-b5e6-9
> 6231b3b80d8
> 
> 
> And I get:
> 
> /usr/bin/gcc
> /mnt/w1/tinti/work/llvmlinux/toolchain/clang/install/bin/clang
> export ARCH=arm
> export
> ARM_CROSS_GCC_TOOLCHAIN=/mnt/w1/tinti/work/llvmlinux/arch/arm/toolchain/code
> sourcery/arm-2011.03 export CC=clang -gcc-toolchain
> /mnt/w1/tinti/work/llvmlinux/arch/arm/toolchain/codesourcery/arm-2011.03
> export CFLAGS=
> export
> COMPILER_PATH=/mnt/w1/tinti/work/llvmlinux/arch/arm/toolchain/codesourcery/a
> rm-2011.03 export CROSS_COMPILE=arm-none-linux-gnueabi-
> export HOST=arm-none-linux-gnueabi
> export HOST_TRIPLE=arm-none-linux-gnueabi
> export JOBS=1
> export KBUILD_OUTPUT=
> export LD=
> export MARCH=
> export MFLOAT=
> export
> PATH=/mnt/w1/tinti/work/llvmlinux/arch/arm/toolchain/codesourcery/arm-2011.0
> 3/bin:/mnt/w1/tinti/work/llvmlinux/arch/arm/bin:/mnt/w1/tinti/work/llvmlinux
> /toolchain/clang/install/bin:/home/tinti/.rvm/gems/ruby-1.9.3-p194 at tinti
> /bin:/home/tinti/.rvm/gems/ruby-1.9.3-p194 at global
> /bin:/home/tinti/.rvm/rubies/ruby-1.9.3-p194/bin:/home/tinti/.rvm/bin:/usr/l
> ib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/
> bin:/usr/games:/home/tinti/Qt5.0.0/5.0.0/gcc_64/bin:/home/tinti/Qt5.0.0/Tool
> s/QtCreator/bin:/home/tinti/Local/bin:/mnt/w1/tinti/work/llvmlinux/arch/all/
> bin:/mnt/w1/tinti/work/llvmlinux/tools export
> TMPDIR=/mnt/w1/tinti/work/llvmlinux/targets/vexpress/tmp
> export USE_CCACHE=
> export V=
> ---------------------------------------------------------------------
> clang -gcc-toolchain
> /mnt/w1/tinti/work/llvmlinux/arch/arm/toolchain/codesourcery/arm-2011.03
> -print-file-name=include
> /mnt/w1/tinti/work/llvmlinux/toolchain/clang/install/bin/../lib/clang/3.3/in
> clude make CONFIG_DEBUG_SECTION_MISMATCH=y CONFIG_DEBUG_INFO=1 -j1
> CONFIG_NO_ERROR_ON_MISMATCH=y ARCH=arm
> CROSS_COMPILE=arm-none-linux-gnueabi- CC="clang -gcc-toolchain
> /mnt/w1/tinti/work/llvmlinux/arch/arm/toolchain/codesourcery/arm-2011.03"
> make[1]: Entering directory
> `/mnt/w1/tinti/work/llvmlinux/targets/vexpress/src/linux'
>   CHK     include/generated/uapi/linux/version.h
>   CHK     include/generated/utsrelease.h
>   UPD     include/generated/utsrelease.h
>   Generating include/generated/mach-types.h
>   CC      kernel/bounds.s
> clang-3.3:
> /mnt/w1/tinti/work/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       0x0000000001a32166 llvm::sys::PrintStackTrace(_IO_FILE*)
> + 38
> 1  clang-3.3       0x0000000001a323ed
> 2  clang-3.3       0x0000000001a31e3c
> 3  libpthread.so.0 0x00002aeb17915cb0
> 4  libc.so.6       0x00002aeb1836d425 gsignal + 53
> 5  libc.so.6       0x00002aeb18370b8b abort + 379
> 6  libc.so.6       0x00002aeb183660ee
> 7  libc.so.6       0x00002aeb18366192
> 8  clang-3.3       0x0000000001953a81
> llvm::ValueHandleBase::RemoveFromUseList() + 91
> 9  clang-3.3       0x0000000000fd14c3
> 10 clang-3.3       0x00000000015cb5d4
> 11 clang-3.3       0x0000000001a7d7a1
> 12 clang-3.3       0x0000000001a77230
> clang::CodeGen::CodeGenFunction::StartFunction(clang::GlobalDecl,
> clang::QualType, llvm::Function*, clang::CodeGen::CGFunctionInfo const&,
> clang::CodeGen::FunctionArgList const&, clang::SourceLocation) + 880
> 13 clang-3.3       0x0000000001a77fba
> clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
> llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 580
> 14 clang-3.3       0x0000000001a8b7bd
> clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDec
> l) + 839
> 15 clang-3.3       0x0000000001a88733
> clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 383
> 16 clang-3.3       0x0000000001a880b1
> clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 653
> 17 clang-3.3       0x0000000001a8e95f
> clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 335
> 18 clang-3.3       0x0000000001a66735
> 19 clang-3.3       0x0000000001a65868
> 20 clang-3.3       0x0000000001dcd5e1 clang::ParseAST(clang::Sema&, bool,
> bool) + 545
> 21 clang-3.3       0x0000000001cdd01a
> clang::ASTFrontendAction::ExecuteAction() + 298
> 22 clang-3.3       0x0000000001a64afa clang::CodeGenAction::ExecuteAction()
> + 1414
> 23 clang-3.3       0x0000000001cdcb9c clang::FrontendAction::Execute() + 200
> 24 clang-3.3       0x0000000001cb679a
> clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 564
> 25 clang-3.3       0x0000000001a37388
> clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1018
> 26 clang-3.3       0x0000000000c876e0 cc1_main(char const**, char const**,
> char const*, void*) + 722
> 27 clang-3.3       0x0000000000c817e7 main + 496
> 28 libc.so.6       0x00002aeb1835876d __libc_start_main + 237
> 29 clang-3.3       0x0000000000c7ff79
> Stack dump:
> 0. Program arguments:
> /mnt/w1/tinti/work/llvmlinux/toolchain/clang/install/bin/clang-3.3 -cc1
> -triple armv7-none-linux-gnueabi -S -disable-free -disable-llvm-verifier
> -main-file-name bounds.c -mrelocation-model static -relaxed-aliasing
> -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
> -target-abi aapcs-linux -target-cpu cortex-a8 -msoft-float -mfloat-abi soft
> -target-feature +soft-float -target-feature +soft-float-abi -target-feature
> -neon -g -coverage-file
> /mnt/w1/tinti/work/llvmlinux/targets/vexpress/src/linux/kernel/bounds.s
> -nostdsysteminc -nobuiltininc -resource-dir
> /mnt/w1/tinti/work/llvmlinux/toolchain/clang/install/bin/../lib/clang/3.3
> -dependency-file kernel/.bounds.s.d -MT kernel/bounds.s -sys-header-deps
> -isystem
> /mnt/w1/tinti/work/llvmlinux/toolchain/clang/install/bin/../lib/clang/3.3/in
> clude -include
> /mnt/w1/tinti/work/llvmlinux/targets/vexpress/src/linux/include/linux/kconfi
> g.h -D __KERNEL__ -D __LINUX_ARM_ARCH__=7 -D KBUILD_STR(s)=#s -D
> KBUILD_BASENAME=KBUILD_STR(bounds) -D KBUILD_MODNAME=KBUILD_STR(bounds) -I
> /mnt/w1/tinti/work/llvmlinux/targets/vexpress/src/linux/arch/arm/include -I
> arch/arm/include/generated -I include -I
> /mnt/w1/tinti/work/llvmlinux/targets/vexpress/src/linux/arch/arm/include/uap
> i -I arch/arm/include/generated/uapi -I
> /mnt/w1/tinti/work/llvmlinux/targets/vexpress/src/linux/include/uapi -I
> include/generated/uapi -c-isystem . -c-isystem /home/tinti/Local/include
> -O2 -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
> -Werror-implicit-function-declaration -Wno-format-security
> -Wno-asm-operand-widths -Wno-unused-variable -Wno-tautological-compare
> -Wdeclaration-after-statement -Wno-pointer-sign -fno-dwarf2-cfi-asm
> -fno-dwarf-directory-asm -fdebug-compilation-dir
> /mnt/w1/tinti/work/llvmlinux/targets/vexpress/src/linux -ferror-limit 19
> -fmessage-length 142 -fwrapv -stack-protector 1 -mstackrealign -fno-builtin
> -fno-signed-char -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 (core dumped)
> clang-3.3: error: clang frontend command failed due to signal (use -v to
> see invocation)
> clang version 3.3
> Target: arm-none-linux-gnueabi
> 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:
> /mnt/w1/tinti/work/llvmlinux/targets/vexpress/tmp/bounds-BXIv0T.c
> clang-3.3: note: diagnostic msg:
> /mnt/w1/tinti/work/llvmlinux/targets/vexpress/tmp/bounds-BXIv0T.sh
> clang-3.3: note: diagnostic msg:
> 
> ********************
> make[2]: *** [kernel/bounds.s] Error 254
> make[1]: *** [prepare0] Error 2
> make[1]: Leaving directory
> `/mnt/w1/tinti/work/llvmlinux/targets/vexpress/src/linux'
> Command exited with non-zero status 2
> ---------------------------------------------------------------------
>  Build Time
>  ---------------------------------------------------------------------
>  User time (seconds): 1.28
>  System time (seconds): 0.75
>  Percent of CPU this job got: 64%
>  Elapsed (wall clock) time (h:mm:ss or m:ss): 0:03.17
>  Maximum resident set size (kbytes): 78624
>  Major (requiring I/O) page faults: 5
>  Minor (reclaiming a frame) page faults: 310523
>  Voluntary context switches: 908
>  Involuntary context switches: 1041
>  Command being timed:
> "/mnt/w1/tinti/work/llvmlinux/arch/arm/bin/make-kernel.sh"
>  Swaps: 0
>  File system inputs: 952
>  File system outputs: 1928
>  Page size (bytes): 4096
>  Exit status: 2
> make: *** [state/kernel-build] Error 2
> 
> 
> I dont know if it helps.
> 
> Regards
-- 

Dipl.-Ing.
Jan-Simon Möller

jansimon.moeller at gmx.de


More information about the LLVMLinux mailing list