Open WolframKahl opened 7 years ago
It's never been tested on any BSD except for OSX, I'm afraid. The build is quite brittle at the moment, but I imagine that once the build is fixed everything should probably work. Unfortunately I don't have time to spare supporting BSD, but I'd gladly merge any related PRs.
On OSX, are you using clang or gcc? Any pointers where to start on this, if I get to looking into it in detail?
It's the clang GCC wrapper, I'm afraid. The best place to start is probably the system includes (as well as the ones for base
). The current set is essentially a pre-configured set of Linux GHC includes, beaten with a hammer just enough times to compile on OSX and Windows too. Properly generating these from autoconf (or just beating them with a hammer some more...) would likely go a long way towards fixing the problem.
Thank you! --- That at least gives me an idea.
However, I am still wondering why haste-boot compiles any C to native code at all? I thought that the native code compilation is already done, and haste-boot prepares the JavaScript libraries?
I am trying now, for the first time, to install Haste on my PC-BSD laptop; this is essentially a thin wrapper around FreeBSD 10.3-RELEASE-p5.
With
haste-compiler
, I am still using 8ac3ae991bb08b41c6a92d5e1eee831941fc800a .Identical procedure (involving a custom installation of GHC-7.10.3) works on Linux.
On the PC-BSD box I get very low-level errors from
haste-boot
, so my first suspicion is that maybe Haste hasn't been tried on FreeBSD yet?