Skip to content

Commit

Permalink
Update 20241206-具体工作.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Irissssaa authored Dec 6, 2024
1 parent 45f3d3c commit eef0568
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/工作日志2/20241206-具体工作.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

##### 1.运行test.sh,提示无法安装rust

![截屏2024-11-29 20.26.14](images/截屏2024-11-29 20.26.14.png)
![截屏2024-11-29 20.26.14](../images/截屏2024-11-29 20.26.14.png)

问题是安装脚本在非交互模式下运行,但它需要用户确认默认设置,可以使用 -y **参数自动接受默认选项**,在运行安装命令时,添加 -y 参数跳过交互确认,并指定安装`nightly`版:

Expand All @@ -22,7 +22,7 @@ source $HOME/.cargo/env

##### 2.编译qemu-system-riscv64报错

![](images/截屏2024-12-06 15.54.29.png)
![](../images/截屏2024-12-06 15.54.29.png)

```shell
error: storing the address of local variable 'slice' in '*ctx.bh_slice_list' [-Werror=dangling-pointer]
Expand All @@ -42,6 +42,6 @@ sudo make install

根据安装文档中编译rcore-ebpf部分的第四点,我将rustc更新到了较新的版本,进行编译的时候出现了禁止在裸函数中使用 asm! 宏的问题,然后我就将版本切换到了最开始报错要求更新rust版本的最低要求,即1.73.0-nightly:

![image-20241206201635589](images/image-20241206201635589.png)
![image-20241206201635589](../images/image-20241206201635589.png)

然后进行编译就成功了。

0 comments on commit eef0568

Please sign in to comment.