Could someone help me with this Jam problem?

I have the right development tools installed, but I always get the following build error when I try to build on BeOS Max Edition 4.0 b1. Does anyone have an explanation for what is going on here?

$ jam
build/jam/MathRules: line 72: parse error at keyword {
build/jam/MathRules: line 97: parse error at keyword }
build/jam/MathRules: line 100: parse error at keyword {
build/jam/MathRules: line 137: parse error at keyword }
build/jam/FileRules: line 221: parse error at keyword {
build/jam/FileRules: line 242: parse error at keyword }
build/jam/MathRules: line 140: parse error at keyword {
build/jam/MathRules: line 151: parse error at keyword }
build/jam/ImageRules: line 45: parse error at keyword {
build/jam/MainBuildRules: line 102: parse error at keyword {
build/jam/MiscRules: line 91: parse error at keyword {
build/jam/MiscRules: line 99: parse error at keyword }
build/jam/MiscRules: line 127: parse error at keyword {
build/jam/MiscRules: line 137: parse error at keyword }
build/jam/MiscRules: line 156: parse error at keyword {
build/jam/MiscRules: line 161: parse error at keyword }
build/jam/MiscRules: line 168: parse error at keyword {
build/jam/MiscRules: line 208: parse error at keyword }
warning: unknown rule AddDirectoryToHaikuImage
warning: unknown rule AddDirectoryToHaikuImage
warning: unknown rule AddDirectoryToHaikuImage
warning: unknown rule AddDirectoryToHaikuImage
warning: unknown rule AddDirectoryToHaikuImage
warning: unknown rule AddFilesToHaikuImage
warning: unknown rule AddFilesToHaikuImage
warning: unknown rule AddFilesToHaikuImage

Make certain you have the right build tools installed. Check here under “Development Tools”:
http://haiku-os.org/development

you can usually verify the installed version by using the switch --v or --version (can’t recall which works).
Verify jam & gcc versions with the ones on here under “Build Machine Specs”:
http://factory.haiku-os.org/

I don’t believe BeOS MAX 4.0 B1 has the right development tools installed yet, so you would have had to do this yourself.

Most important build tools are gcc, jam (& subversion for syncing / updating haiku)

Next, you can go to main haiku folder & type svn up (update) and that will update and the files with newer ones (& hopefully fix any incomplete ones too).

This should probably get you going.