1、 文檔目標(biāo)
在使用Arm Development Studio(簡(jiǎn)稱(chēng)ArmDS)進(jìn)行嵌入式開(kāi)發(fā)時(shí),如果遇到編譯器提示“Warning: C9931W: Your license for Compiler (feature compiler) will expire in...”的問(wèn)題,這通常表明當(dāng)前使用的許可證即將到期。這一警告不僅會(huì)影響開(kāi)發(fā)效率,還可能對(duì)項(xiàng)目的持續(xù)性和穩(wěn)定性帶來(lái)潛在風(fēng)險(xiǎn)。因此,及時(shí)解決這一問(wèn)題顯得尤為重要。
2、 問(wèn)題場(chǎng)景
當(dāng)ArmDS的License快到維保期,在編譯程序時(shí),會(huì)出現(xiàn)“Warning: C9931W: Your license for Compiler (feature compiler) will expire in ”,如果設(shè)置了“Werror”(把所有的Warning當(dāng)Error),則工程就沒(méi)有編譯。

圖2-1
3、軟硬件環(huán)境
1)、軟件版本:ArmDS 2023.0 、DS5、FuSa Compiler6
2)、電腦環(huán)境:Ubuntu20.04
3)、外設(shè)硬件:無(wú)
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"