[llvmlinux] vexpress make target errors

Vinicius Tinti viniciustinti at gmail.com
Tue Nov 17 17:49:55 UTC 2015


On Mon, Sep 28, 2015 at 11:47 AM, Peter Teoh <htmldeveloper at gmail.com> wrote:
> Got the following errors when I did a "make" for target vexpress:
>
>    arm-linux-gnueabihf-ld -EL    -r -o arch/arm/mm/built-in.o
> arch/arm/mm/dma-mapping.o arch/arm/mm/extable.o arch/arm/mm/fault.o
> arch/arm/mm/init.o arch/arm/mm/iomap.o arch/arm/mm/fault-armv.o
> arch/arm/mm/flush.o arch/arm/mm/idmap.o arch/arm/mm/ioremap.o
> arch/arm/mm/mmap.o arch/arm/mm/pgd.o arch/arm/mm/mmu.o
> arch/arm/mm/pageattr.o arch/arm/mm/proc-syms.o arch/arm/mm/alignment.o
> arch/arm/mm/abort-ev7.o arch/arm/mm/pabort-v7.o arch/arm/mm/cache-v7.o
> arch/arm/mm/copypage-v6.o arch/arm/mm/context.o arch/arm/mm/tlb-v7.o
> arch/arm/mm/proc-v7.o arch/arm/mm/l2c-common.o
> arch/arm/mm/cache-l2x0.o arch/arm/mm/l2c-l2x0-resume.o ;
> scripts/mod/modpost arch/arm/mm/built-in.o
>   /sda7/llvmlinux/llvmlinux/toolchain/clang/head/install/bin/clang
> -Wp,-MD,arch/arm/kernel/.entry-armv.o.d  -nostdinc -isystem
> /sda7/llvmlinux/llvmlinux/toolchain/clang/head/install/bin/../lib/clang/3.8.0/include
> -I/sda7/llvmlinux/llvmlinux/targets/vexpress/src/linux/arch/arm/include
> -Iarch/arm/include/generated/uapi -Iarch/arm/include/generated
> -I/sda7/llvmlinux/llvmlinux/targets/vexpress/src/linux/include
> -Iinclude -I/sda7/llvmlinux/llvmlinux/targets/vexpress/src/linux/arch/arm/include/uapi
> -Iarch/arm/include/generated/uapi
> -I/sda7/llvmlinux/llvmlinux/targets/vexpress/src/linux/include/uapi
> -Iinclude/generated/uapi -include
> /sda7/llvmlinux/llvmlinux/targets/vexpress/src/linux/include/linux/kconfig.h
> -D__KERNEL__ -mlittle-endian -Qunused-arguments -D__ASSEMBLY__ -target
> arm-linux-gnueabihf -gcc-toolchain
> /sda7/llvmlinux/llvmlinux/arch/arm/toolchain/linaro/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux
> -no-integrated-as -mabi=aapcs-linux -mfpu=vfp -funwind-tables -marm
> -D__LINUX_ARM_ARCH__=7 -march=armv7-a -include asm/unified.h
> -msoft-float -Wa,-gdwarf-2   -c -o arch/arm/kernel/entry-armv.o
> /sda7/llvmlinux/llvmlinux/targets/vexpress/src/linux/arch/arm/kernel/entry-armv.S
> make -f /sda7/llvmlinux/llvmlinux/targets/vexpress/src/linux/scripts/Makefile.build
> obj=certs
> /sda7/llvmlinux/llvmlinux/targets/vexpress/src/linux/arch/arm/kernel/entry-armv.S:
> Assembler messages:
> /sda7/llvmlinux/llvmlinux/targets/vexpress/src/linux/arch/arm/kernel/entry-armv.S:202:
> Error: non-constant expression in ".if" statement
> /sda7/llvmlinux/llvmlinux/targets/vexpress/src/linux/arch/arm/kernel/entry-armv.S:212:
> Error: non-constant expression in ".if" statement
> /sda7/llvmlinux/llvmlinux/targets/vexpress/src/linux/arch/arm/kernel/entry-armv.S:262:
> Error: non-constant expression in ".if" statement
> /sda7/llvmlinux/llvmlinux/targets/vexpress/src/linux/arch/arm/kernel/entry-armv.S:300:
> Error: non-constant expression in ".if" statement
> /sda7/llvmlinux/llvmlinux/targets/vexpress/src/linux/arch/arm/kernel/entry-armv.S:309:
> Error: non-constant expression in ".if" statement
> /sda7/llvmlinux/llvmlinux/targets/vexpress/src/linux/arch/arm/kernel/entry-armv.S:337:
> Error: non-constant expression in ".if" statement
> /sda7/llvmlinux/llvmlinux/targets/vexpress/src/linux/arch/arm/kernel/entry-armv.S:435:
> Error: non-constant expression in ".if" statement
> /sda7/llvmlinux/llvmlinux/targets/vexpress/src/linux/arch/arm/kernel/entry-armv.S:445:
> Error: non-constant expression in ".if" statement
> /sda7/llvmlinux/llvmlinux/targets/vexpress/src/linux/arch/arm/kernel/entry-armv.S:458:
> Error: non-constant expression in ".if" statement
> /sda7/llvmlinux/llvmlinux/targets/vexpress/src/linux/arch/arm/kernel/entry-armv.S:742:
> Error: non-constant expression in ".if" statement
> /sda7/llvmlinux/llvmlinux/targets/vexpress/src/linux/arch/arm/kernel/entry-armv.S:762:
> Error: non-constant expression in ".if" statement
> clang-3.8: error: assembler command failed with exit code 1 (use -v to
> see invocation)
> make[3]: *** [arch/arm/kernel/entry-armv.o] Error 1
> make[2]: *** [arch/arm/kernel] Error 2
> make[2]: *** Waiting for unfinished jobs....
>
>
> What I cannot understand is why the line number inside entry-armv.S
> always coincide with the assembly statement "svc_entry"?
>
> Can someone help me out?

Hi Peter,

Sorry by the late reply. This is because we are using no-integrated-as
and this messages are coming from the Assembler not the Compiler.
To see the lines that match the command you need to generate the .s
file and then use it as input (or just check its lines).

I am facing this problem too and I am trying to check it.

Thanks for the report,
Vinicius

>
>
> --
> Regards,
> Peter Teoh
> _______________________________________________
> LLVMLinux mailing list
> LLVMLinux at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux



-- 
Simplicity is the ultimate sophistication


More information about the LLVMLinux mailing list