LearningOS / rCore-Tutorial-Guide-2024S

GNU General Public License v3.0
3 stars 3 forks source link

rCore-Tutorial-Guide-2024S/chapter1/2remove-std #12

Open utterances-bot opened 2 months ago

utterances-bot commented 2 months ago

移除标准库依赖 - rCore-Tutorial-Guide-2024S 文档

https://learningos.cn/rCore-Tutorial-Guide-2024S/chapter1/2remove-std.html

sanrentai commented 2 months ago

error: unwinding panics are not supported without std | = help: using nightly cargo, use -Zbuild-std with panic="abort" to avoid unwinding = note: since the core library is usually precompiled with panic="unwind", rebuilding your crate with panic="abort" may not be enough to fix the problem

Andrew211vibe commented 2 months ago

这里panic_handler应该不算是lang_item吧,在死灵书中描述" #[panic_handler] 用于定义 panic! 在 #![no_std] 程序中的行为",并没有lang="xxx"的标识(如之后的会报错提示的eh_personality和start lang_item),应该只算依赖吧(翻看原v3文档解释的比较清楚)