AR# 52422

14.2 EDK/SDK - Compilation error occurs if using the dmb or sev functions with arm-xilinx-linux-gnueabi-gcc

描述

When using the dmb or sev functions with arm-xilinx-linux-gnueabi-gcc, the following compilation error occurs on the SDK console:

make all
 Building file: ../src/helloworld.c
 Invoking: ARM Linux gcc compiler
 arm-xilinx-linux-gnueabi-gcc -Wall -O0 -g3 -c -fmessage-length=0 -I../../hello_world_bsp_1/ps7_cortexa9_0/include -MMD -MP -MF"src/helloworld.d" -MT"src/helloworld.d" -o"src/helloworld.o" "../src/helloworld.c"
 C:\Users\stephenm\AppData\Local\Temp\ccouG8lo.s: Assembler messages:
 C:\Users\stephenm\AppData\Local\Temp\ccouG8lo.s:68: Error: selected processor does not support ARM mode `dmb'
 C:\Users\stephenm\AppData\Local\Temp\ccouG8lo.s:72: Error: selected processor does not support ARM mode `sev'
 make: *** [src/helloworld.o] Error 1"

How can I fix this issue?

解决方案

To fix this problem, add the switch -mcpu=armv7-a, or -march=armv7-a to the C/C++ Build settings -> ARM Linux GCC Compiler -> Miscellaneous -> Other Flags as shown below:

compiler_other_flags.png

This issue is fixed in Vivado 2013.2.

AR# 52422
日期 09/24/2014
状态 Active
Type 综合文章
Tools