-
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 Nightly (hrev53136 or greater)
- GCC 6+ / Clang 5.0.0+
- Git
Note: 32 bit Haiku is not supported yet, but it is planned in the future.
If you are using a system that is in between hrev53136-hrev53600 this commit then you must compile Go with DISABLE_ASLR=1 due to a memory limitation in the system allocator. If a new version of Haiku with a new allocator, overcomes the hoard2 allocator limitations, then this environment variable will not required.
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:
./make.bash
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!