我在过去几天在Bochs安装Pintos。在“线程”目录中编译的所有内容都很好,我还设置了所有路径。我在构建目录中有kernel.lo和其他文件。
问题在于我运行的最后一个命令: pintos运行警报-multiple。
这会产生一个错误:无法识别的字符\x16;在if后面标记为<--这里($<-)在/home/superboy/pintos/src/utils/pintos行911的第7列附近。
pintos脚本第911行的代码是:
# Calls setitimer to set a timeout, then execs what was passed to us.
sub exec_setitimer {
if (defined $timeout) {
if ($ ge 5.8.0) {
eval "
use Time::HiRes qw(setitimer ITIMER_VIRTUAL);
setitimer (ITIMER_VIRTUAL, $timeout, 0);
";
} else {
{ exec ("setitimer-helper", $timeout, @_); };
exit 1 if !$!{ENOENT};
print STDERR "warning: setitimer-helper is not installed, so ",
"CPU time limit will not be enforced\n";
}
}
exec (@_);
exit (1);
}我在用Debian-9拉伸
发布于 2017-10-03 18:48:15
我在ubuntu重复了同样的步骤,结果成功了。看来pintos在Debian上有问题。
发布于 2017-10-02 10:06:07
使用vim打开utils目录中的Pintos文件,通过实际键入控制字符替换字符"^V“。这应该能解决问题。
https://stackoverflow.com/questions/46392474
复制相似问题