conflicting switches: -march=armv7 -mcpu=cortex-a8

When compile Skype Silk 1.0.9 using Arm Gcc 4.6  with the instruction of Silk's Makefile,the error occur:

$make clean all TOOLCHAIN_PREFIX=arm-linux-gnueabi-gcc TARGET_CPU=cortex-a8 TARGET_ARCH=armv7


<stdin>:1:0: warning: switch -mcpu=cortex-a8 conflicts with -march= switch

Solution:

Specifying both -march= and -mcpu= is redundant, and may not in fact have done what you expected in previous compiler versions (maybe even depending on the order in which the arguments were given). The -march switch selects a "generic" ARMv7-A CPU, and -mcpu selects specifically a Cortex-A8 CPU with tuning specific for that core.

Either use "-march=armv7-a -mtune=cortex-a8", or just use "-mcpu=cortex-a8".

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章