-
Notifications
You must be signed in to change notification settings - Fork 1
Compiling Go 1.4.3 in Haiku
This page will help you through to setting up and building the Go compiler for the Haiku Operating System.
- Intel CPU (AMD PCs are untested)
- 2GB of RAM or higher
- 64 Bit Haiku Beta (hrev52XXX or greater)
- GCC 6+ / Clang 5.0.0+
- Git
Note: 32 bit Haiku is not supported yet, but it is planned in the future.
First, clone this repository:
git clone https://github.com/golang-haiku/go-1.4.3
If you don't want the full history add --depth=1
without the quotes to shallow clone to the latest commit.
Next, go into the 'src' folder.
cd go-1.4.3/src
To start the build, run this command:
DISABLE_ASLR=1 ./make.bash
There is a known bug that happens on systems that have less than 2GB of RAM (especially for 32 bit users). The build crashes with a message reporting 'address space conflict'. If this message keeps coming up, try passing in DISABLE_ASLR=1 when building.
If you see this message:
Installed Go for haiku/amd64 in /boot/home/go1.4.3
Installed commands in /boot/home/go1.4.3-upstream/bin
Then Go has successfully been built on your system!