1、 文檔目標(biāo)
解決ArmDS快到期時(shí),編譯提示“Warning: C9931W: Your license for Compiler (feature compiler) will expire in ”的問題。
2、 問題場景
當(dāng)ArmDS的License快到維保期,在編譯程序時(shí),會出現(xiàn)“Warning: C9931W: Your license for Compiler (feature compiler) will expire in ”,如果設(shè)置了“Werror”(把所有的Warning當(dāng)Error),則工程就沒有編譯。
圖2-1
3、軟硬件環(huán)境
1)、軟件版本:ArmDS 2023.0 、DS5、FuSa Compiler6
2)、電腦環(huán)境:Ubuntu20.04
3)、外設(shè)硬件:無
4、解決方法
1)、確認(rèn)所使用的編譯器是Compiler5還是Compiler6。
2)、如果是Compiler5,則在環(huán)境變量中設(shè)置如下內(nèi)容,所圖4-1所示:
圖4-1
3)、如果是Compiler6,則在環(huán)境變量中設(shè)置如圖4-2所示的內(nèi)容:
圖4-2
4)、如果是短期用,則可以直接在命令行中,輸入如圖4-3的內(nèi)容,(注:不要重啟命令行終端):
export "ARMCOMPILER6_ASMOPT=--licretry --diag_suppress=9931,9933"
export "ARMCOMPILER6_FROMELFOPT=--licretry --diag_suppress=9931,9933"
export "ARMCOMPILER6_LINKOPT=--licretry --diag_suppress=9931,9933"