Open ChrisCummins opened 3 years ago
This issue has been replicated using the homebrew protobuf
package, although with different symptoms. The workaround is the same:
brew uninstall protobuf
make distclean
make test # or whatever build command failed
🐛 Bug
When boost or protobuf packages are installed via homebrew they can interfere with the CompilerGym build, causing compile-time or load-time errors.
To Reproduce
Steps to reproduce the behavior:
brew install boost
make distclean
bazel run //compiler_gym/envs/llvm/service
Error message along the lines of:
Workaround
Uninstall boost prior to building CompilerGym:
brew uninstall --ignore-dependencies protobuf boost
make distclean
make install
This package conflict only matters at build time. Once you are done building CompilerGym, you can now reinstall the brew packages:
Environment
bazel run //compiler_gym/envs/llvm/service
Apple clang version 12.0.0 (clang-1200.0.26.2)
Build label: 3.1.0
boost: stable 1.75.0 (bottled), HEAD