FairRootGroup/FairSoft

brew installation fails for OSX 12.4

TobiasStockmanns opened this issue · 1 comments

After struggling with the legacy installation of FairSoft I tried to use brew to install it. Unfortunately it did stopped creating errors.
OSX Version: 12.4
CLANG 13.1.6
xcode-select 2395

Installation steps:

  • brew upgrade
  • brew clenup
  • export SDKROOT=$(brew ruby -e "puts MacOS.sdk_path(0)")
  • brew tap fairrootgroup/fairsoft
  • brew install fairsoft

Error message:

[ 66%] Performing build step for 'geant4'
cd /tmp/fairsoftA22.4-20220621-54591-1qnieiu/build/Build/geant4 && /usr/local/Cellar/cmake/3.23.2/bin/cmake -Dmake=/Applications/Xcode.app/Contents/Developer/usr/bin/make -P /tmp/fairsoftA22.4-20220621-545
91-1qnieiu/build/Stamp/geant4/geant4-build-RelWithDebInfo.cmake
CMake Error at /tmp/fairsoftA22.4-20220621-54591-1qnieiu/build/Stamp/geant4/geant4-build-RelWithDebInfo.cmake:37 (message):
  Command failed: 2

   '/Applications/Xcode.app/Contents/Developer/usr/bin/make'

  See also

    /tmp/fairsoftA22.4-20220621-54591-1qnieiu/build/Log/geant4-build.log


-- Log output is:
...skipping to end...
: use of undeclared identifier '_Lim'
    return _Lim::min();
           ^
In file included from /tmp/fairsoftA22.4-20220621-54591-1qnieiu/build/Source/geant4/source/analysis/accumulables/src/G4MergeMode.cc:29:
In file included from /tmp/fairsoftA22.4-20220621-54591-1qnieiu/build/Source/geant4/source/analysis/accumulables/include/G4MergeMode.hh:32:
In file included from /tmp/fairsoftA22.4-20220621-54591-1qnieiu/build/Source/geant4/source/global/management/include/globals.hh:35:
In file included from /tmp/fairsoftA22.4-20220621-54591-1qnieiu/build/Source/geant4/source/global/management/include/G4ios.hh:35:
In file included from /tmp/fairsoftA22.4-20220621-54591-1qnieiu/build/Source/geant4/source/global/management/include/G4Types.hh:74:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/complex:237:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/stdexcept:45:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:83:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:138:9: error: target of using declaration conflicts with declaration already in sco
pe
using ::abs _LIBCPP_USING_IF_EXISTS;
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/stdlib.h:132:6: note: target of using declaration
int      abs(int) __pure2;
         ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:338:1: note: conflicting declaration
using ::abs _LIBCPP_USING_IF_EXISTS;
^
In file included from /tmp/fairsoftA22.4-20220621-54591-1qnieiu/build/Source/geant4/source/analysis/accumulables/src/G4MergeMode.cc:29:
In file included from /tmp/fairsoftA22.4-20220621-54591-1qnieiu/build/Source/geant4/source/analysis/accumulables/include/G4MergeMode.hh:32:
In file included from /tmp/fairsoftA22.4-20220621-54591-1qnieiu/build/Source/geant4/source/global/management/include/globals.hh:35:
In file included from /tmp/fairsoftA22.4-20220621-54591-1qnieiu/build/Source/geant4/source/global/management/include/G4ios.hh:35:
In file included from /tmp/fairsoftA22.4-20220621-54591-1qnieiu/build/Source/geant4/source/global/management/include/G4Types.hh:74:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/complex:853:1: error: declaration conflicts with target of using declaration already in sco
pe
abs(const complex<_Tp>& __c)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:338:1: note: target of using declaration
using ::abs _LIBCPP_USING_IF_EXISTS;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:338:9: note: using declaration
using ::abs _LIBCPP_USING_IF_EXISTS;
        ^
In file included from /tmp/fairsoftA22.4-20220621-54591-1qnieiu/build/Source/geant4/source/analysis/accumulables/src/G4MergeMode.cc:29:
In file included from /tmp/fairsoftA22.4-20220621-54591-1qnieiu/build/Source/geant4/source/analysis/accumulables/include/G4MergeMode.hh:32:
In file included from /tmp/fairsoftA22.4-20220621-54591-1qnieiu/build/Source/geant4/source/global/management/include/globals.hh:35:
In file included from /tmp/fairsoftA22.4-20220621-54591-1qnieiu/build/Source/geant4/source/global/management/include/G4ios.hh:35:
In file included from /tmp/fairsoftA22.4-20220621-54591-1qnieiu/build/Source/geant4/source/global/management/include/G4Types.hh:74:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/complex:910:16: error: reference to unresolved using declaration
        return abs(__c.real());
               ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:338:1: note: using declaration annotated with 'using_if_exists' here
using ::abs _LIBCPP_USING_IF_EXISTS;