Might I have used the wrong sequence or possibly left out some steps in trying to build Haiku with OS X on a Mac Mini?

Hi, everyone.

I’ve tried building Haiku using OS X 10.7 Lion on a Mac Mini. Might I have used the wrong sequence or possibly left out some steps? Below is a list of the steps that I took, with results listed under each step.

• Use Disk Utility to create a case-sensitive disk image and store the Haiku source tree on that.
-Successful.

• Mount the disk image, named “Haiku”.
-Successful.

• Type this in the Terminal:

cd /Volumes/Haiku/
-Successful.  

• Install MacPorts.
-Successful.

• Close your Terminal, and enter in a new one:

sudo port install cdrtools gawk gnuregex wget yasm less mpfr gmp libmpc libiconv

-Successful.
git clone git://git.haiku-os.org/buildtools
	-Successful.  
git clone git://git.haiku-os.org/haiku
	-Successful.  
cd /Volumes/Haiku/buildtools/jam
make
sudo ./jam0 install
	-Successful.  

• Reopen a new Terminal, and enter:

jam -v

-Successful. Output:
Jam 2.5-haiku-20111222. OS=MACOSX. Copyright 1993-2002 Christopher Seiwald.
cd /Volumes/Haiku
-Successful.  
curl -O http://dev.haiku-os.org/attachment/ticket/3298/haiku_gcc2_osx.patch
-Successful.  
patch -p0 < haiku_gcc2_osx.patch
-Not successful.  Error messages:
	<pre class="terminal">patch unexpectedly ends in middle of line

patch: **** Only garbage was found in the patch input.

curl -O http://dev.haiku-os.org/raw-attachment/ticket/3298/haiku_gcc2_osx_2.patch
-Successful.  
patch -p0 < haiku_gcc2_osx_2.patch
-This appears to have been successful.  Here is the output:
	<pre class="terminal">patching file buildtools/legacy/gcc/Makefile.in

patching file buildtools/legacy/gcc/config.guess
patching file buildtools/legacy/gcc/gcc/configure
Hunk #1 succeeded at 3609 (offset 12 lines).
patching file buildtools/legacy/gcc/gcc/configure.in
Hunk #1 succeeded at 1224 (offset 18 lines).
patching file buildtools/legacy/gcc/config.sub
Hunk #5 succeeded at 197 (offset 4 lines).
Hunk #6 succeeded at 230 (offset 4 lines).
Hunk #7 succeeded at 319 (offset 4 lines).
Hunk #8 succeeded at 399 (offset 4 lines).
Hunk #9 succeeded at 420 (offset 4 lines).
Hunk #10 succeeded at 473 with fuzz 2 (offset 20 lines).
Hunk #11 succeeded at 509 (offset 20 lines).
Hunk #12 succeeded at 564 with fuzz 2 (offset 28 lines).
Hunk #13 succeeded at 591 (offset 28 lines).
Hunk #14 succeeded at 609 with fuzz 2 (offset 32 lines).
Hunk #15 succeeded at 621 (offset 32 lines).
Hunk #16 succeeded at 644 (offset 32 lines).
Hunk #17 succeeded at 653 (offset 32 lines).
Hunk #18 succeeded at 676 (offset 32 lines).
Hunk #19 succeeded at 734 with fuzz 2 (offset 40 lines).
Hunk #20 succeeded at 753 (offset 40 lines).
Hunk #21 succeeded at 817 (offset 40 lines).
Hunk #22 succeeded at 846 (offset 40 lines).
Hunk #23 succeeded at 887 (offset 40 lines).
Hunk #24 succeeded at 980 (offset 40 lines).
Hunk #25 succeeded at 1011 (offset 40 lines).
Hunk #26 succeeded at 1028 (offset 40 lines).
Hunk #27 succeeded at 1075 (offset 40 lines).
Hunk #28 succeeded at 1132 (offset 40 lines).
Hunk #29 succeeded at 1145 (offset 40 lines).
Hunk #30 succeeded at 1159 (offset 40 lines).
Hunk #31 succeeded at 1193 (offset 40 lines).
Hunk #32 succeeded at 1239 (offset 40 lines).
Hunk #33 succeeded at 1300 (offset 40 lines).
Hunk #34 succeeded at 1361 with fuzz 2 (offset 49 lines).
Hunk #35 succeeded at 1385 (offset 49 lines).
Hunk #36 succeeded at 1416 with fuzz 2 (offset 52 lines).
Hunk #37 succeeded at 1437 (offset 52 lines).
Hunk #38 succeeded at 1483 (offset 52 lines).
Hunk #39 succeeded at 1523 (offset 52 lines).
Hunk #40 succeeded at 1553 (offset 52 lines).
Hunk #41 succeeded at 1607 (offset 52 lines).
Hunk #42 succeeded at 1664 (offset 52 lines).
Hunk #43 succeeded at 1685 (offset 52 lines).

curl -O http://dev.haiku-os.org/attachment/ticket/3298/buildtools_macosx.patch
-Successful.  
patch -p0 < buildtools_macosx.patch
-Not successful.  Error messages:
	<pre class="terminal">patch unexpectedly ends in middle of line

patch: **** Only garbage was found in the patch input.

curl -O http://dev.haiku-os.org/attachment/ticket/3298/buildtools_gcc2_config.patch
-Successful.  
patch -p0 < buildtools_gcc2_config.patch
-Not successful.  Error messages:
	<pre class="terminal">patch unexpectedly ends in middle of line

patch: **** Only garbage was found in the patch input.

curl -O http://dev.haiku-os.org/attachment/ticket/3298/buildtools_gcc2_misc.patch
-Successful.  
patch -p0 < buildtools_gcc2_misc.patch
-Not successful.  Error messages:
	<pre class="terminal">patch unexpectedly ends in middle of line

patch: **** Only garbage was found in the patch input.

curl -O http://dev.haiku-os.org/attachment/ticket/3298/haiku_macox.patch
-Successful.  
patch -p0 < haiku_macox.patch
-Not successful.  Error messages:
	<pre class="terminal">patch unexpectedly ends in middle of line

patch: **** Only garbage was found in the patch input.

cd /Volumes/Haiku/haiku
-Successful.  
./configure --build-cross-tools ../buildtools
-Not successful.  Below are some warning and error messages:
	<pre class="terminal">/Volumes/Haiku/buildtools/legacy/binutils/bfd/doc/chew.c:475: warning: format '%d' expects type 'int', but argument 3 has type 'long int'

/Volumes/Haiku/buildtools/legacy/binutils/bfd/doc/chew.c:475: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’
/Volumes/Haiku/buildtools/legacy/binutils/bfd/doc/chew.c:476: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’
/Volumes/Haiku/buildtools/legacy/binutils/bfd/doc/chew.c:476: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’
/Volumes/Haiku/buildtools/legacy/binutils/bfd/doc/chew.c:1563: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’
/Volumes/Haiku/buildtools/legacy/binutils/bfd/doc/chew.c:1563: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’
/Volumes/Haiku/buildtools/legacy/binutils/bfd/elf-eh-frame.c:371: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
/Volumes/Haiku/buildtools/legacy/binutils/bfd/elf-eh-frame.c:374: warning: pointer targets in passing argument 2 of ‘__builtin___strcpy_chk’ differ in signedness
/Volumes/Haiku/buildtools/legacy/binutils/bfd/elf-eh-frame.c:374: warning: pointer targets in passing argument 2 of ‘__inline_strcpy_chk’ differ in signedness
/Volumes/Haiku/buildtools/legacy/binutils/bfd/elf-eh-frame.c:375: warning: pointer targets in passing argument 1 of ‘strchr’ differ in signedness
/Volumes/Haiku/buildtools/legacy/binutils/bfd/elf-eh-frame.c:375: warning: pointer targets in assignment differ in signedness
/Volumes/Haiku/buildtools/legacy/binutils/bfd/elf-eh-frame.c:398: warning: pointer targets in assignment differ in signedness
/Volumes/Haiku/buildtools/legacy/binutils/bfd/elf-eh-frame.c:836: warning: pointer targets in passing argument 1 of ‘strchr’ differ in signedness
/Volumes/Haiku/buildtools/legacy/binutils/bfd/elf-eh-frame.c:836: warning: pointer targets in assignment differ in signedness
/Volumes/Haiku/buildtools/legacy/binutils/binutils/strings.c:435: warning: ‘stat64’ is deprecated (declared at /usr/include/sys/stat.h:466)
/Volumes/Haiku/buildtools/legacy/binutils/binutils/cxxfilt.c:66: warning: format not a string literal and no format arguments
/Volumes/Haiku/buildtools/legacy/binutils/binutils/cxxfilt.c:66: warning: format not a string literal and no format arguments
/Volumes/Haiku/buildtools/legacy/binutils/binutils/cxxfilt.c:71: warning: format not a string literal and no format arguments
/Volumes/Haiku/buildtools/legacy/binutils/binutils/cxxfilt.c:71: warning: format not a string literal and no format arguments
/Volumes/Haiku/buildtools/legacy/gcc/libiberty/argv.c:122: warning: incompatible implicit declaration of built-in function ‘strcpy’
/Volumes/Haiku/buildtools/legacy/gcc/libiberty/argv.c:122: warning: incompatible implicit declaration of built-in function ‘strcpy’
/Volumes/Haiku/buildtools/legacy/gcc/libiberty/choose-temp.c:127: warning: incompatible implicit declaration of built-in function ‘strlen’
/Volumes/Haiku/buildtools/legacy/gcc/libiberty/choose-temp.c:130: warning: incompatible implicit declaration of built-in function ‘strcpy’
/Volumes/Haiku/buildtools/legacy/gcc/libiberty/choose-temp.c: In function ‘make_temp_file’:
/Volumes/Haiku/buildtools/legacy/gcc/libiberty/choose-temp.c:173: warning: incompatible implicit declaration of built-in function ‘strlen’
/Volumes/Haiku/buildtools/legacy/gcc/libiberty/choose-temp.c:183: warning: incompatible implicit declaration of built-in function ‘strcpy’
/Volumes/Haiku/buildtools/legacy/gcc/libiberty/choose-temp.c:192: warning: incompatible implicit declaration of built-in function ‘strcat’
/Volumes/Haiku/buildtools/legacy/gcc/libiberty/choose-temp.c:127: warning: incompatible implicit declaration of built-in function ‘strlen’
/Volumes/Haiku/buildtools/legacy/gcc/libiberty/choose-temp.c:130: warning: incompatible implicit declaration of built-in function ‘strcpy’
/Volumes/Haiku/buildtools/legacy/gcc/libiberty/choose-temp.c:173: warning: incompatible implicit declaration of built-in function ‘strlen’
/Volumes/Haiku/buildtools/legacy/gcc/libiberty/choose-temp.c:183: warning: incompatible implicit declaration of built-in function ‘strcpy’
/Volumes/Haiku/buildtools/legacy/gcc/libiberty/choose-temp.c:192: warning: incompatible implicit declaration of built-in function ‘strcat’
/Volumes/Haiku/buildtools/legacy/gcc/libiberty/objalloc.c:216: warning: incompatible implicit declaration of built-in function ‘abort’
/Volumes/Haiku/buildtools/legacy/gcc/libiberty/objalloc.c:216: warning: incompatible implicit declaration of built-in function ‘abort’
/Volumes/Haiku/buildtools/legacy/gcc/libiberty/pexecute.c:701: warning: incompatible implicit declaration of built-in function ‘exit’
/Volumes/Haiku/buildtools/legacy/gcc/libiberty/pexecute.c:701: warning: incompatible implicit declaration of built-in function ‘exit’
/Volumes/Haiku/buildtools/legacy/gcc/libiberty/xexit.c:35: warning: incompatible implicit declaration of built-in function ‘exit’
/Volumes/Haiku/buildtools/legacy/gcc/libiberty/xexit.c:35: warning: incompatible implicit declaration of built-in function ‘exit’
/Volumes/Haiku/buildtools/legacy/gcc/texinfo/lib/getopt.c:650: warning: incompatible implicit declaration of built-in function ‘strlen’
/Volumes/Haiku/buildtools/legacy/gcc/texinfo/lib/getopt.c:674: warning: incompatible implicit declaration of built-in function ‘strlen’
/Volumes/Haiku/buildtools/legacy/gcc/texinfo/lib/getopt.c:704: warning: incompatible implicit declaration of built-in function ‘strlen’
/Volumes/Haiku/buildtools/legacy/gcc/texinfo/lib/getopt.c:720: warning: incompatible implicit declaration of built-in function ‘strlen’
/Volumes/Haiku/buildtools/legacy/gcc/texinfo/lib/getopt.c:725: warning: incompatible implicit declaration of built-in function ‘strlen’
/Volumes/Haiku/buildtools/legacy/gcc/texinfo/lib/getopt.c:836: warning: incompatible implicit declaration of built-in function ‘strlen’
/Volumes/Haiku/buildtools/legacy/gcc/texinfo/lib/getopt.c:859: warning: incompatible implicit declaration of built-in function ‘strlen’
/Volumes/Haiku/buildtools/legacy/gcc/texinfo/lib/getopt.c:879: warning: incompatible implicit declaration of built-in function ‘strlen’
/Volumes/Haiku/buildtools/legacy/gcc/texinfo/lib/getopt.c:893: warning: incompatible implicit declaration of built-in function ‘strlen’
/Volumes/Haiku/buildtools/legacy/gcc/texinfo/lib/getopt.c:897: warning: incompatible implicit declaration of built-in function ‘strlen’
/Volumes/Haiku/buildtools/legacy/gcc/texinfo/lib/xmalloc.c:78: warning: incompatible implicit declaration of built-in function 'abort’
WARNING: While resolving call to function ‘usage’ arguments were dropped!
Building the C and C++ compiler
cd /Volumes/Haiku/buildtools/legacy/gcc/gcc && autoheader
/bin/sh: autoheader: command not found
make[1]: *** [/Volumes/Haiku/buildtools/legacy/gcc/gcc/cstamp-h.in] Error 127
make: *** [cross] Error 2
ERROR: Building gcc failed.

diskutil list
-Successful.  

• Edit /Volumes/Haiku/haiku/build/jam/UserBuildConfig
• Put the below line in the file:

DefineBuildProfile disk : disk : “/dev/disk0s4” ;

-Successful.

• After this, start a Terminal, double check the disk and partition numbers and run:

cd /Volumes/Haiku/haiku
sudo chmod o+r /dev/disk0
	-Successful.  
sudo chmod o+rw /dev/disk0s4
	-Successful.  
jam -q @disk
	-Not successful.  Error messages:
		<pre class="terminal">No `BuildConfig' found in generated/build! 

Run ./configure in the source tree’s root directory first!