mxcl/homebrew — Issue #8340: Boost 1.4.7 fails to build on 10.6.8
Author: mvarela
Created: 2011-10-28 13:20:59+00:00
State: open

I'm trying to install encfs, which pulls boost as a dependency.

The output I get is

```
...on 10100th target...
darwin.compile.c++ bin.v2/libs/thread/build/darwin-4.2.1/release/link-static/threading-multi/pthread/once.o
common.mkdir bin.v2/libs/wave/build/darwin-4.2.1/release/link-static
common.mkdir bin.v2/libs/wave/build/darwin-4.2.1/release/link-static/threading-multi
darwin.compile.c++ bin.v2/libs/thread/build/darwin-4.2.1/release/link-static/threading-multi/pthread/thread.o
darwin.archive bin.v2/libs/thread/build/darwin-4.2.1/release/link-static/threading-multi/libboost_thread-mt.a
common.copy /usr/local/Cellar/boost/1.47.0/lib/libboost_thread-mt.a
darwin.compile.c++ bin.v2/libs/wave/build/darwin-4.2.1/release/link-static/threading-multi/instantiate_cpp_grammar.o
darwin.compile.c++ bin.v2/libs/wave/build/darwin-4.2.1/release/link-static/threading-multi/instantiate_cpp_exprgrammar.o
darwin.compile.c++ bin.v2/libs/wave/build/darwin-4.2.1/release/link-static/threading-multi/instantiate_cpp_literalgrs.o
darwin.compile.c++ bin.v2/libs/wave/build/darwin-4.2.1/release/link-static/threading-multi/instantiate_defined_grammar.o
darwin.compile.c++ bin.v2/libs/wave/build/darwin-4.2.1/release/link-static/threading-multi/instantiate_re2c_lexer.o
darwin.compile.c++ bin.v2/libs/wave/build/darwin-4.2.1/release/link-static/threading-multi/instantiate_predef_macros.o
darwin.compile.c++ bin.v2/libs/wave/build/darwin-4.2.1/release/link-static/threading-multi/token_ids.o
darwin.compile.c++ bin.v2/libs/wave/build/darwin-4.2.1/release/link-static/threading-multi/wave_config_constant.o
common.mkdir bin.v2/libs/wave/build/darwin-4.2.1/release/link-static/threading-multi/cpplexer
common.mkdir bin.v2/libs/wave/build/darwin-4.2.1/release/link-static/threading-multi/cpplexer/re2clex
darwin.compile.c++ bin.v2/libs/wave/build/darwin-4.2.1/release/link-static/threading-multi/cpplexer/re2clex/aq.o
darwin.compile.c++ bin.v2/libs/wave/build/darwin-4.2.1/release/link-static/threading-multi/instantiate_re2c_lexer_str.o
darwin.compile.c++ bin.v2/libs/wave/build/darwin-4.2.1/release/link-static/threading-multi/cpplexer/re2clex/cpp_re.o
darwin.archive bin.v2/libs/wave/build/darwin-4.2.1/release/link-static/threading-multi/libboost_wave-mt.a
common.copy /usr/local/Cellar/boost/1.47.0/lib/libboost_wave-mt.a
...failed updating 1 target...
...skipped 1 target...
...updated 10120 targets...
Error: #
/usr/local/Library/Homebrew/formula.rb:527:in `system'
/usr/local/Library/Formula/boost.rb:71:in `install'
/usr/local/Library/Homebrew/build.rb:74:in `install'
/usr/local/Library/Homebrew/formula.rb:265:in `brew'
/usr/local/Library/Homebrew/formula.rb:618:in `stage'
/usr/local/Library/Homebrew/formula.rb:547:in `mktemp'
/usr/local/Library/Homebrew/formula.rb:616:in `stage'
/usr/local/Library/Homebrew/formula.rb:260:in `brew'
/usr/local/Library/Homebrew/build.rb:53:in `install'
/usr/local/Library/Homebrew/build.rb:27
/usr/local/Library/Formula/boost.rb:24
==> Rescuing build...
When you exit this shell Homebrew will attempt to finalise the installation.
If nothing is installed or the shell exits with a non-zero error code,
Homebrew will abort. The installation prefix is:
/usr/local/Cellar/boost/1.47.0
```

brew --env gives me:

```
CC: /usr/bin/gcc-4.2
CXX: /usr/bin/g++-4.2
LD: /usr/bin/gcc-4.2
CFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CXXFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
MAKEFLAGS: -j2
```

And brew doctor dies with:

```
Error: No such file or directory - /usr/local/lib/libintl.8.0.2.dylib
```

Any pointers would be helpful. Thanks in advance!