Skip to content

Added FreeBSD build instructions#690

Merged
spoonincode merged 2 commits intomainfrom
add-freebsd-build-instructions
Jul 19, 2022
Merged

Added FreeBSD build instructions#690
spoonincode merged 2 commits intomainfrom
add-freebsd-build-instructions

Conversation

@vladtr
Copy link
Copy Markdown
Contributor

@vladtr vladtr commented Jul 18, 2022

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.

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):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

macOS seems to build fine with the latest Xcode which makes me wonder if latest clang may work with LLVM's libc++ on freebsd?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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...

@spoonincode spoonincode merged commit 919aa87 into main Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants