linux編譯內核報錯You are building kernel with non-retpoline compiler, please update your compiler


遇到這個問題時,你就需要升級你的gcc的版本,我的是6.8.0然后升級之后就可以編譯了

如何升級請參考

https://www.cnblogs.com/chen55555/p/12396309.html

https://lore.kernel.org/patchwork/patch/1022874/

 

在編譯前可以輸入make menuconfig

因為如果不執行此操作的話在后面make編譯內核的時候會提示你回答很多問題。

其他可以參考:

https://blog.csdn.net/star_xiong/article/details/17357821

https://blog.csdn.net/xuyuefei1988/article/details/8635539


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM