UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 52422

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

Description

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?

Solution

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
Date Created 10/16/2012
Last Updated 09/24/2014
Status Active
Type General Article
Tools
  • EDK - 14.1
  • EDK - 14.2