Zixiang Zhang
Zixiang Zhang
希望能在“[我们创建一个新的子模块 lang_items.rs 实现panic函数......编译器用panic函数来对接 panic! 宏:](https://rcore-os.github.io/rCore-Tutorial-Book-v3/chapter1/2remove-std.html#:~:text=%E6%88%91%E4%BB%AC%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA%E6%96%B0%E7%9A%84%E5%AD%90%E6%A8%A1%E5%9D%97%20lang_items.rs%20%E5%AE%9E%E7%8E%B0panic%E5%87%BD%E6%95%B0%EF%BC%8C%E5%B9%B6%E9%80%9A%E8%BF%87%20%23%5Bpanic_handler%5D%20%E5%B1%9E%E6%80%A7%E9%80%9A%E7%9F%A5%E7%BC%96%E8%AF%91%E5%99%A8%E7%94%A8panic%E5%87%BD%E6%95%B0%E6%9D%A5%E5%AF%B9%E6%8E%A5%20panic!%20%E5%AE%8F%EF%BC%9A)”的位置添上“并在main.rs `#![no_std]`的下方加上`mod lang_items;`来声明模块” 然后把下面的[Rust Tips:Rust 模块化编程](https://rcore-os.github.io/rCore-Tutorial-Book-v3/chapter1/2remove-std.html#:~:text=Rust%20Tips%EF%BC%9ARust%20%E6%A8%A1%E5%9D%97%E5%8C%96%E7%BC%96%E7%A8%8B)的链接贴一个在附近。
@Lu-Yidan 的方法有用,不过得注意: 1、```gedit .bashrc```的前要先```cd ~```让终端回到home位置。 2、```export PATH=$PATH:/home/oslab/.riscv64-unknown-elf-gcc-8.3.0-2020.04.1-x86_64-linux-ubuntu14/bin```可能在文件浏览器中不会显示```.../oslab/...```但实际是要加上的。 3、添加```export PATH=$PATH:/home/osla...x-ubuntu14/bin```时,要添加在最后一行。 4、编辑完.bashrc并保存后,需要重启terminal,才会生效。
These links may be helpful. https://github.com/mlfoundations/open_clip/issues/622 https://github.com/mlfoundations/open_clip/issues/528
the same as the issue https://github.com/XPixelGroup/DiffBIR/issues/45