[llvmlinux] Try build lasted clang with debug flags

Jan-Simon Möller dl9pf at gmx.de
Fri Apr 19 17:08:13 UTC 2013


Good finding, we need to look into that.

$ ./clang --help | grep "\-S"
  -S                      Only run preprocess and compilation steps

Weird.

Best,
JS

On Thursday 18 April 2013 23:43:15 Tinti wrote:
> Hi all,
> 
> I have found that removing the -S makes the following command build
> successfully. I have no idea if it is allowed or not.
> 
> /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 context.c -mrelocation-model static -relaxed-aliasing
> -fmath-errno -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/tmp/context-IsxguB.s
> -nostdsysteminc -nobuiltininc -resource-dir
> /mnt/w1/tinti/work/llvmlinux/toolchain/clang/install/bin/../lib/clang/3.3
> -dependency-file arch/arm/mm/.context.o.d -MT arch/arm/mm/context.o
> -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(context) -D KBUILD_MODNAME=KBUILD_STR(context)
> -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 231 -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
> /mnt/w1/tinti/work/llvmlinux/targets/vexpress/tmp/context-IsxguB.s -x c
> arch/arm/mm/context.c
> 
> Best regards,
> Tinti
> 
> On Thu, Apr 18, 2013 at 2:30 PM, Tinti <viniciustinti at gmail.com> wrote:
> > Hi
> > 
> > Concerning the src directory it will appear once you run make in
> > targets/vexpress directory.
> > 
> > Best regards,
> > Tinti
> > 
> > On Thu, Apr 18, 2013 at 2:15 PM, Tinti <viniciustinti at gmail.com> wrote:
> >> Hi Reanto,
> >> 
> >> Make sure that you have quilt installed in your system. Some people
> >> reported me this error.
> >> 
> >> Best regards,
> >> Tinti
> >> 
> >> On Thu, Apr 18, 2013 at 1:42 PM, Renato Golin 
<renato.golin at linaro.org>wrote:
> >>> Following this how-to:
> >>> 
> >>> http://llvm.linuxfoundation.org/index.php/Nexus_7
> >>> 
> >>> I get errors like this:
> >>> 
> >>> CMake Error at cmake/modules/AddLLVM.cmake:83 (add_executable):
> >>>   add_executable cannot create target "llvm-symbolizer" because another
> >>>   target with the same name already exists.  The existing target is an
> >>>   executable created in source directory
> >>> 
> >>> "/home/rengolin/devel/android/llvmlinux/toolchain/clang/src/llvm/project
> >>> s/compiler-rt/utils/llvm-symbolizer".>>> 
> >>>   See documentation for policy CMP0002 for more details.
> >>> 
> >>> Call Stack (most recent call first):
> >>>   cmake/modules/AddLLVM.cmake:99 (add_llvm_executable)
> >>>   tools/llvm-symbolizer/CMakeLists.txt:11 (add_llvm_tool)
> >>> 
> >>> Nevertheless, if I try just to compile the file that is failing for you,
> >>> using your command line arguments, I found that my vexpress directory
> >>> (that
> >>> you use as include path) does not have the 'src' dir inside.
> >>> 
> >>> cheers,
> >>> --renato
> >>> 
> >>> _______________________________________________
> >>> LLVMLinux mailing list
> >>> LLVMLinux at lists.linuxfoundation.org
> >>> https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux
> >> 
> >> --
> >> Simplicity is the ultimate sophistication
> > 
> > --
> > Simplicity is the ultimate sophistication
-- 

Dipl.-Ing.
Jan-Simon Möller

jansimon.moeller at gmx.de


More information about the LLVMLinux mailing list