Ubuntu20.04 使用V1.91帶的GCC12 編譯時(shí)報(bào)錯(cuò) fatal error: cannot execute 'cc1'

環(huán)境 Ubuntu 20.04,?


GCC版本12.2.0

/opt/gcc-riscv/riscv-wch-embedded-gcc12-v1.91/bin/riscv-none-elf-gcc?--version
riscv-none-elf-gcc?(xPack?GNU?RISC-V?Embedded?GCC?x86_64)?12.2.0
Copyright?(C)?2022?Free?Software?Foundation,?Inc.
This?is?free?software;?see?the?source?for?copying?conditions.??There?is?NO
warranty;?not?even?for?MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.


執(zhí)行編譯報(bào)錯(cuò)

/opt/gcc-riscv/riscv-wch-embedded-gcc12-v1.91/bin/riscv-none-elf-gcc?-march=rv32imac?-mabi=ilp32?-mcmodel=medany?-msmall-data-limit=8?-mno-save-restore?-fmessage-length=0?-fsigned-char?-gdwarf-3?-Og?-std=gnu99??-Wall?-ffunction-sections?-fdata-sections?-fno-common?-I?../../Apps/TimerDemo/src?-I?../../Libraries/RVMSIS?-I?../../Libraries/StdPeriphDriver/inc?-MT?../../Build/Apps/TimerDemo/src/main.o?-o?../../Build/Apps/TimerDemo/src/main.o?-c?../../Apps/TimerDemo/src/main.c?-MMD?-MP?-MF?../../Build/Apps/TimerDemo/src/main.d
riscv-none-elf-gcc:?fatal?error:?cannot?execute?'cc1':?execvp:?No?such?file?or?directory
compilation?terminated.


同樣的命令用V1.91帶的GCC8.2.0編譯正常


請(qǐng)問(wèn)這可能是什么問(wèn)題?

下了個(gè)?MounRiver_Studio_Community_Linux_x64_V170.tar.xz, 換成這里面自帶的 GCC 12 編譯就沒(méi)問(wèn)題. 粗略對(duì)比了一下兩個(gè)目錄, 文件大小都是一樣的, 但是MRS自帶的就正常, 換成V1.91里的就會(huì)報(bào)錯(cuò), 這是什么情況??


您好,我這邊V19.1工具鏈沒(méi)有復(fù)現(xiàn)您的現(xiàn)象,cc1找不到可能和目錄更改或者部分環(huán)境變量類(lèi)似GCC_EXEC_PREFIX設(shè)置導(dǎo)致的,您可以自查一下,如還有問(wèn)題,可聯(lián)系郵箱yangy@wch.cn進(jìn)一步溝通


只有登錄才能回復(fù),可以選擇微信賬號(hào)登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频