If you don’t understand git, just use xkcd wiseness:
The “commands to sync up” are here:
For your convenience:
git clone https://git.haiku-os.org/buildtools git clone https://git.haiku-os.org/haiku
That wasn’t too hard, I think.
Let’s proceed with building:
cd haiku ./configure –build-cross-tools x86_gcc2 ../buildtools
And then you should be able to build and run the disk server:
jam -q run ':remote_disk_server' /path/to/haiku.image
I think this will be much simpler than trying to rebuild everything by hand and getting header files one by one.