sysroot专题

-sysroot 在编译时的作用

如果在编译时指定了-sysroot就是为编译时指定了逻辑目录。编译过程中需要引用的库,头文件,如果要到/usr/include目录下去找的情况下,则会在前面加上逻辑目录。 如此处我们指定 -sysroot=/home/shell.albert/tools/toolschain_arm/4.4.3/arm-none-linux-gnueabi/sys-root 则如果在编译过程中需要找stdio

xfs_repair mount /dev/sda3 on /sysroot failed:Structure needs cleaning

根据提示:运行 journalctl  命令   GG 跳最后一行。 或者  查看  /run/initramfs/rdsosreport.txt 文件  关注这个:mount /dev/sda3 on  /sysroot  failed:Structure needs  cleaning   执行文件系统修复  xfs_repair  -v  -L  /dev/sda3  exit