Homebrew / legacy-homebrew

💀 The former home of Homebrew/homebrew (deprecated)
https://brew.sh
26.97k stars 11.35k forks source link

Bro fails to build on 10.8 #16432

Closed justindthomas closed 11 years ago

justindthomas commented 11 years ago
==> Downloading http://www.bro-ids.org/downloads/release/bro-2.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/bro-2.1.tar.gz
==> ./configure --prefix=/usr/local/Cellar/bro/2.1 --disable-ruby
==> make install
Linking CXX executable binpac
brew: superenv removed: -Wall -Wno-unused -O2 -g
[ 33%] Built target binpac
make[1]: *** [all] Error 2
make: *** [all] Error 2

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

These open issues may also help:
    https://github.com/mxcl/homebrew/issues/13587
    https://github.com/mxcl/homebrew/issues/15315
    https://github.com/mxcl/homebrew/issues/16292
justindthomas commented 11 years ago

https://gist.github.com/4220766

adamv commented 11 years ago

Can anyone reproduce this? Works for me on 10.7; don't have a 10.8 box to test on.

adamv commented 11 years ago

Please brew update and if this still happens, gist the new output of brew install -v bro.

justindthomas commented 11 years ago

Looks like I get the same output after doing a brew update; brew upgrade: https://gist.github.com/justindthomas/5021056

adamv commented 11 years ago

Does this build failure happen if you compile this software without using Homebrew?

adamv commented 11 years ago

Note, your CLT is out of date with your Xcode:

Xcode: 4.6
CLT: 4.5.0.0.1.1249367152
justindthomas commented 11 years ago

Thanks; I just updated the CLT. Same result, but with this configuration:

==> Configuration
HOMEBREW_VERSION: 0.9.4
HEAD: 2e144dd41f22d13fab43e43d9b0c45b837e588b5
CPU: 8-core 64-bit ivybridge
OS X: 10.8.2-x86_64
Xcode: 4.6
CLT: 4.6.0.0.1.1358221012
X11: 2.7.4 => /opt/X11

And manually compiling from the Bro git repo also fails. I can get some components to install (e.g., broccoli with the Python bindings), but not the whole system. Here is a gist of that process: https://gist.github.com/justindthomas/5021115

Lots of deprecation warnings and it looks like it fails at a different spot. I copied as much as my terminal history is configured to capture; if you need to see the beginning, let me know.

justindthomas commented 11 years ago

Actually, I think I remember fighting with that error when I was building the Python bindings alone. Something about a bad path in one of the CMake files I think:

build/aux/broctl/aux/pysubnettree/CMakeFiles/_SubnetTree.dir/link.txt:/usr/bin/c++   -Wall -Wno-unused -O2 -g -DNDEBUG -bundle -Wl,-headerpad_max_install_names   -o _SubnetTree.so CMakeFiles/_SubnetTree.dir/SubnetTreePYTHON_wrap.cxx.o CMakeFiles/_SubnetTree.dir/SubnetTree.cc.o CMakeFiles/_SubnetTree.dir/patricia.c.o -L/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -ldl -framework CoreFoundation -lpython2.7 -u _PyMac_Error Python.framework/Versions/2.7/Python

That last reference to Python is inappropriately relative. I think I changed that to an absolute path and was able to get the compilation to continue. It's been a few months - I'll have to try again.

justindthomas commented 11 years ago

Yep. Changed that reference in two files manually and my manual compilation succeeds. The two files were:

build/aux/broctl/aux/pysubnettree/CMakeFiles/_SubnetTree.dir/link.txt
build/aux/broccoli/bindings/broccoli-python/CMakeFiles/_broccoli_intern.dir/link.txt
adamv commented 11 years ago

Which Python are you building against?

justindthomas commented 11 years ago

The brew version: /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/

adamv commented 11 years ago

And manually compiling from the Bro git repo also fails.

Closing as an upstream issue; sorry.