Using brew root with pythia8

Hi,

I want to install brew root (since it includes a few workarounds for some errors) and out of the box typing

brew install root

works perfectly. I want to try and include PYTHIA8 with it too; so if you type

brew edit root

it comes up with the install config for the root package. I type in the args section the following flags

-Dpythia8=ON
-DPYTHIA8_DATA={PYTHIA8_DATA} -DPYTHIA8_LIBRARY={PYTHIA8_LIBRARY}
-DPYTHIA8_INCLUDE_DIR={PYTHIA8_INCLUDE_DIR} -DPYTHIA8_DIR={PYTHIA8_DIR}
-DPYTHIA8=${PYTHIA8}

I hoped that it would work right away, but unfortunately the install fails. It does find PYTHIA 8 as below

Looking for Pythia8
– Found Pythia8:/Users/K/pythia8dir/include/pythia8

but it get to about 74% in the install before it spits out this:

==> Configuration
HOMEBREW_VERSION: 2.2.13-122-g20f7f26
ORIGIN: https://github.com/Homebrew/brew
HEAD: 20f7f266a88dc9235e57fd2eb604fb5dc9501e58
Last commit: 18 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: ed0ab796fd40533207539d791109e397461ce728
Core tap last commit: 14 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.VRPGOIUMLh/org.macosforge.xquartz:0
HOMEBREW_MAKE_JOBS: 8
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3/bin/ruby
Clang: 11.0 build 1100
Git: 2.14.2 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
Java: 1.8.0_152, 1.8.0_151
macOS: 10.15.3-x86_64
CLT: 11.0.33.17
Xcode: 11.4.1
XQuartz: 2.7.11 => /opt/X11
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local/opt/openssl@1.1:/usr/local/opt/gettext:/usr/local/opt/libffi:/usr/local/opt/readline:/usr/local/opt/sqlite:/usr/local/opt/python@3.8:/usr/local/opt/libxml2:/usr/local/opt/openblas:/usr/local
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/opt/python@3.8/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/cfitsio/lib/pkgconfig:/usr/local/opt/openssl@1.1/lib/pkgconfig:/usr/local/opt/davix/lib/pkgconfig:/usr/local/opt/gmp/lib/pkgconfig:/usr/local/opt/isl/lib/pkgconfig:/usr/local/opt/mpfr/lib/pkgconfig:/usr/local/opt/hwloc/lib/pkgconfig:/usr/local/opt/libevent/lib/pkgconfig:/usr/local/opt/open-mpi/lib/pkgconfig:/usr/local/opt/fftw/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/fontconfig/lib/pkgconfig:/usr/local/opt/jpeg/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/webp/lib/pkgconfig:/usr/local/opt/gd/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/pcre/lib/pkgconfig:/usr/local/opt/readline/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/python@3.8/lib/pkgconfig:/usr/local/opt/glib/lib/pkgconfig:/usr/local/opt/jasper/lib/pkgconfig:/usr/local/opt/netpbm/lib/pkgconfig:/usr/local/opt/gts/lib/pkgconfig:/usr/local/opt/graphviz/lib/pkgconfig:/usr/local/opt/gsl/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/lz4/lib/pkgconfig:/usr/local/opt/openblas/lib/pkgconfig:/usr/local/opt/zstd/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.15
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/opt/libxml2/share/aclocal:/usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/cmake/bin:/usr/local/opt/openssl@1.1/bin:/usr/local/opt/davix/bin:/usr/local/opt/gcc/bin:/usr/local/opt/hwloc/bin:/usr/local/opt/libevent/bin:/usr/local/opt/open-mpi/bin:/usr/local/opt/fftw/bin:/usr/local/opt/libpng/bin:/usr/local/opt/freetype/bin:/usr/local/opt/fontconfig/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/libtiff/bin:/usr/local/opt/webp/bin:/usr/local/opt/gd/bin:/usr/local/opt/gettext/bin:/usr/local/opt/pcre/bin:/usr/local/opt/gdbm/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/python@3.8/bin:/usr/local/opt/glib/bin:/usr/local/opt/jasper/bin:/usr/local/opt/netpbm/bin:/usr/local/opt/gts/bin:/usr/local/opt/libtool/bin:/usr/local/opt/graphviz/bin:/usr/local/opt/gsl/bin:/usr/local/opt/libxml2/bin:/usr/local/opt/lz4/bin:/usr/local/opt/numpy/bin:/usr/local/opt/xrootd/bin:/usr/local/opt/zstd/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: root 6.20.04 did not build
Logs:
/Users/K/Library/Logs/Homebrew/root/00.options.out
/Users/K/Library/Logs/Homebrew/root/01.cmake.cc
/Users/K/Library/Logs/Homebrew/root/01.cmake
/Users/K/Library/Logs/Homebrew/root/02.make.cc
/Users/K/Library/Logs/Homebrew/root/02.make
READ THIS: https://docs.brew.sh/Troubleshooting

Error: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force

If that doesn’t show you an update run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install

Alternatively, manually download them from:
https://developer.apple.com/download/more/.

How can I progress this modded brew install to work? Any help is greatly appreciated, thanks!


Please read tips for efficient and successful posting and posting code

ROOT Version: root_v6.20.04 (via brew)
Platform: MAC OS X
Compiler: Not Provided


If brew’s ROOT was already configured with Pythia8 support (and as I understand your brew edit snippet that’s the case) then you are probably just missing brew install pythia8 or whatever is needed to get it.

If that doesn’t address is please check with the brew folks; we are not experts on their packaging system (but very much appreciate their work!)

Cheers, Axel.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.