Last active
January 5, 2017 01:40
-
-
Save xcv58/8696189 to your computer and use it in GitHub Desktop.
The method for setting OS/161 environment for Mac OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I just test on OS X 10.9.1 | |
You need homebrew first: http://brew.sh | |
Then: | |
brew tap homebrew/versions | |
brew install gcc48 | |
Long wait. | |
And make a soft link | |
ln -s /usr/local/Cellar/gcc48/4.8.2/bin/gcc-4.8 /usr/local/bin/gcc | |
Then make sure the "/usr/local/bin" at the first of $PATH | |
Then install gettext: | |
brew install gettext | |
brew link --force gettext | |
Run and make sure it works: | |
msgfmt -h | |
After all, the preparation is done. But there are two steps differ with the tutorial: http://www.eecs.harvard.edu/~dholland/os161/resources/setup.html | |
1. When compile gcc, you need use the below line for configure: | |
./configure -nfp --disable-shared --disable-threads --disable-libmudflap --disable-libssp --target=mips-harvard-os161 --prefix=$HOME/os161/tools | |
The original version is "--nfp", but I find that we need change to "-nfp". | |
2. When compile gdb, you need use the below line for configure: | |
./configure --disable-werror --target=mips-harvard-os161 --prefix=$HOME/os161/tools | |
Add "--disable-werror" for original version. | |
For easily build and debug OS/161 kernel, please try the scripts: | |
https://github.com/xcv58/OS-161-Scripts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment