I am trying to start doing the Pintos Stanford project on Ubuntu. I downloaded the tar file that the Stanford website provides but when I try and run
pintos -- run alarm-multiple
I get the following error:
Unrecognized character \x16; marked by <-- HERE after if ($<-- HERE near column 7 at /home/adambomb/src/pintos/src/utils/pintos line 911
I found on another stackoverflow post that I should pull from latest version of pintos:
git clone git://pintos-os.org/pintos-anon pintos
But doing this gets me an error:
Cloning into 'pintos'...
fatal: read error: Connection reset by peer
I'm not really sure where to go from here and could use some insight to fix either of these problems. I don't really know where to go from here.
I ran into the same issues as you trying various guides on the internet (eg. this guide) and looking through StackOverflow. However, this youtube video helped me the most.
Steps below can be found here. I'm using Ubuntu 18.04.
sudo apt-get install qemu2a. Under heads, find master and click the tree hyperlink
2b. Click snapshot and download the
.tar.gzfile to your directorytar -xvzf pintos-anon-master-{value}.tar.gzwhere{value}is the commit-id/utils/pintos-gdbwith vim and editGDBMACROSvariable to point to the full path for pintos directoryLOADLIBESvariable name toLDLIBS/src/utilsand runningmake/src/threads/Make.vars(line 7): changebochstoqemu/src/threadsand runningmake/utils/pintos(line 103): replacebochswithqemu/utils/pintos(~line 257): replacekernel.binwith the full path tokernel.bin/utils/pintos(~line 621): replaceqemuwithqemu-system-x86_64/utils/Pintos.pm(line 362): replaceloader.binwith the full path toloader.bin~/.bashrcand addexport PATH=/home/.../pintos/src/utils:$PATHto the last line.source ~/.bashrcpintos run alarm-multiple