cc1: error: bad value (‘generic-armv7-a’) for ‘-mtune=’ switch

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

cc1: error: bad value (‘generic-armv7-a’) for ‘-mtune=’ switch

ソリューションへジャンプ
1,133件の閲覧回数
rprronad
Contributor III

While compiling the defconfig file using the make tool for my iMX6ULL-based custom SOM, I encountered the following error:


scripts/kconfig/conf --syncconfig Kconfig
UPD include/config.h
CFG u-boot.cfg
GEN include/autoconf.mk
GEN include/autoconf.mk.dep
UPD include/config/uboot.release
UPD include/generated/version_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
UPD include/generated/dt.h
ENVC include/generated/env.txt
ENVP include/generated/env.in
ENVT include/generated/environment.h
CC lib/asm-offsets.s
cc1: error: bad value (‘generic-armv7-a’) for ‘-mtune=’ switch
cc1: note: valid arguments to ‘-mtune=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client rocketlake icelake-server cascadelake tigerlake cooperlake sapphirerapids alderlake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm intel x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 znver3 btver1 btver2 generic native
make[1]: *** [scripts/Makefile.build:143: lib/asm-offsets.s] Error 1
make: *** [Makefile:1954: prepare0] Error 2

Could someone help me resolve this issue?


Thank you.

0 件の賞賛
1 解決策
1,120件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

You need to fixed the toolchain, as example:

wget https://releases.linaro.org/components/toolchain/binaries/4.9-2017.01/aarch64-linux-gnu/gcc-linaro-4.9.4-2017.01-x86_64_aarch64-linux-gnu.tar.xz

CROSS_COMPILE=/opt/gcc-linaro-4.9.4-2017.01-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- ARCH=arm64

 

Regards

元の投稿で解決策を見る

2 返答(返信)
1,121件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

You need to fixed the toolchain, as example:

wget https://releases.linaro.org/components/toolchain/binaries/4.9-2017.01/aarch64-linux-gnu/gcc-linaro-4.9.4-2017.01-x86_64_aarch64-linux-gnu.tar.xz

CROSS_COMPILE=/opt/gcc-linaro-4.9.4-2017.01-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- ARCH=arm64

 

Regards

1,113件の閲覧回数
rprronad
Contributor III
Yeah, I followed the steps outlined in https://fastbitlab.com/toolchain-installation-and-path-settings/ to fix the toolchain (I choice stable version: gcc-linaro-12.3.1-2023.06-x86_64_arm-linux-gnueabihf) in my host machine's .bashrc file. However, the same error persists.

Could you please suggest the proper steps to resolve this issue?

Thank you & Regards,
Ravikumar
タグ(2)
0 件の賞賛