The information below is also logged as support request 3437281 and 3437282. Logging as bugs as it seems those are not tracked at all.
1. I managed to build and run XSB 3.3.5 fine on NetBSD 5.1 amd64 architecture. This required just one tweak in configure script. I just ORred the pattern freebsd with netbsd in configure script so as to apply all freebsd actions to netbsd build.
2. The above "fix" did not work on NetBSD 5.1 on i386. With above trick XSB binary got produced though it gave error when run. (The error can be seen in build process itself as cmplib build requires XSB. The error can also be seen by launching XSB from prompt.)
Perhaps what it means that BSD is supported only on 64 bit and not on 32 bit architecture. Just a guess.
Request any quick workarounds if available.
The error trace is:
Partial Forward Continuation...
++Memory violation occurred during evaluation.
++Please report this problem using the XSB bug tracking system accessible from
++Please supply the steps necessary to reproduce the bug.
Exiting XSB abnormally...