Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-7782

Builtin GSL build does not respect ROOT compiler settings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 6.04/08
    • Fix Version/s: 6.06/00, 6.08/00
    • Component/s: Build System
    • Labels:
      None
    • Environment:

      OSX 10.11

      Description

      Hi,

      When building with the builtin GSL option enabled, when GSL is configured it is not given the same compiler settings as specified in the ROOT configuration, e.g. ROOT is configured with (cmake build)

      – The C compiler identification is AppleClang 7.0.0.7000176
      – The CXX compiler identification is AppleClang 7.0.0.7000176
      – Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
      – Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang – works
      – Detecting C compiler ABI info
      – Detecting C compiler ABI info - done
      – Detecting C compile features
      – Detecting C compile features - done
      – Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
      – Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ – works
      – Detecting CXX compiler ABI info
      – Detecting CXX compiler ABI info - done
      – Detecting CXX compile features
      – Detecting CXX compile features - done

      however, later on during the build once GSL is downloaded, it is configured to use

      checking for gcc... gcc

      This can cause problems if the user has installed a gcc compiler than is not compatible with the compiler (clang above) used to build ROOT. ( This can legitimately happen, for instance if 'gcc' is FSF gcc5 as provided by build systems such as MacPorts or Homebrew).

      The internal builds used by ROOT should, I think, be configured to use the same compiler preferences as ROOT itself, and not to decide for themselves what to use.

      cheers Chris

        Attachments

          Activity

            People

            • Assignee:
              mato Pere Mato Vila
              Reporter:
              jonrob Christopher Rob Jones
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: