"MCの部落"

Skip to content

[筆記] 編譯openwrt 碰到 Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler 的問題

Posted bychchang 2020-07-032020-07-03 Leave a comment on [筆記] 編譯openwrt 碰到 Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler 的問題

今天在測試編譯openwrt for netgear R7000

是說我手邊根本就沒這台機器,是在compile 心酸的嗎?…

anyway , 在compile的過程碰到了一個之前沒碰過的問題

錯誤訊息是這樣

Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler

找了很多文章都說跟什麼linux kernel 有關

後來在這邊找到了答案

https://www.itmangoto.cn/2018/06/12/openwrt-external-toolchain-prebuilt/

Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
Makefile:1115: recipe for target 'prepare-compiler-check' failed
make[5]: *** [prepare-compiler-check] Error 1
需要去make menuconfig 把CONFIG_CC_STACKPROTECTOR_REGULAR关闭了才能编译。

懶得再用make menuconfig 進去改

直接 vim .config

然後找到 CONFIG_CC_STACKPROTECTOR_REGULAR 註解掉 再重新編譯看看

Tags: a, ansible, cloudflare, debian, docker, GPU, letsencrypt, n1, openwrt, pihole, postfix, postgresql, raid, router, ssl, synology, ubuntu, vpn, wireguard,

文章導覽

Previous Post Previous post:
[碎念] mdadm 超級慢的rebuild 速度 Incredibly Slow mdadm Rebuild
Next Post Next post:
[筆記] Debian Buster 伺服器被入侵了!/ Debian Buster Server Been Hacked

No comments

Write a Reply or Comment 取消回覆

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

"MCの部落"

Top