Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Go on Harvey

Álvaro Jurado edited this page Dec 19, 2015 · 7 revisions

#Go programming language in Harvey

Bootstrapping Go

For now, ou must use another operating system to have Go working on Harvey, as we do with normal C programs compiling in Linux and running in Harvey. So let's go to install Go first in Linux, if you use any other OS supported by Go, get attemption to instruction for your platform

For Go 1.5 and later you need a go install to bootstrap the go compiler written in go.

mkdir go1.4
cd go1.4
git clone git@github.com:golang/go.git go
cd go/src
bash make.bash

Building Go for Harvey

Now make a dir for Go 1.5 for Harvey:

mkdir go1.5
export GOROOT_BOOTSTRAP=~/go1.4/go
cd go1.5
git clone git@github.com:Harvey-OS/go
cd go/src
git checkout harveysquash
GOOS=harvey bash make.bash

And you have Go ready to build programs for Harvey (on Harvey is in progress). To make a test, try something like this:

../bin/go test -o runtime.test -x -c runtime

And you can run it on harvey.

We usually drawterm in to Harvey due to have all files there, and usually doing:

bind /mnt/term/home /home

so all paths work.