Conversation
| llvm11 \ | ||
| pkgconf | ||
| ``` | ||
| and perform the build (please note that FreeBSD 13.1 comes with llvm13 by default so you should provide clang11 options to cmake): |
There was a problem hiding this comment.
LLVM should actually not be required on freebsd; it's only required on Linux. The code that uses LLVM in mandel isn't clutched in on anything but Linux
https://github.com/eosnetworkfoundation/mandel/blob/b5132e5712ecf845abf3bf86f34fb87f99158338/CMakeLists.txt#L72-L76
Did you try just using the latest default clang that comes with freebsd? Historically clang12+ w/ GNU's libstdc++ (how typically configured on Linux) breaks due to still unfixed defect in EOS VM:
- replace is_callable_v workaround with is_invocable_v; fixes build on clang12 EOSIO/eos-vm#210
But that's just coincidentally broken at clang12 -- it doesn't have anything to do with llvm12+ being unsupported on Linux.
macOS seems to build fine with the latest Xcode which makes me wonder if latest clang may work with LLVM's libc++ on freebsd?
There was a problem hiding this comment.
By default vanilla installation of FreeBSD 13.1 comes with clang 13 and compilation fails with exact issue you pointed out :) So unfortunately clang needs to be rolled back there. FreeBSD port "llvm11" is just the easiest and most trouble-free way to install working clang11...
Added FreeBSD build instruction into docs. Its officially not supported, however it builds/runs/passes tests perfectly and instructions can be a useful for BSD users.