The issue was that the brew formula for [email protected] caused an error with dyld. To solve the problem, I built a boost from the source, installed it, and set LDFLAGS to contain the installation path.