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

Build failure: value of type 'void' is not contextually convertible to 'bool'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.16/00, 6.14/02
    • Component/s: None
    • Labels:
      None
    • Environment:

      Description

      The build on FreeBSD using clang-5.0 as a compiler fails, see the log below.

       

      -----------------------

      /usr/ports/science/root/work/root-6.14.00/core/metacling/src/TCling.cxx:2100:13: error: value of type 'void' is not contextually convertible to 'bool'
       R__LOCKGUARD(fLockProcessLine ? gInterpreterMutex : 0);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       /usr/ports/science/root/work/.build/include/TVirtualMutex.h:106:30: note: expanded from macro 'R__LOCKGUARD'
       #define R__LOCKGUARD(mutex) (void)mutex; \{ }
       ^~~~~~~~~~~
       /usr/ports/science/root/work/root-6.14.00/core/metacling/src/TCling.cxx:2117:4: error: value of type 'void' is not contextually convertible to 'bool'
       R__LOCKGUARD_CLING(fLockProcessLine ? gInterpreterMutex : 0);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       /usr/ports/science/root/work/.build/include/TInterpreter.h:47:37: note: expanded from macro 'R__LOCKGUARD_CLING'
       # define R__LOCKGUARD_CLING(mutex) (void)mutex; \{ }
       ^~~~~~~~~~~
       /usr/ports/science/root/work/root-6.14.00/core/metacling/src/TCling.cxx:3046:4: error: value of type 'void' is not contextually convertible to 'bool'
       R__LOCKGUARD_CLING(fLockProcessLine ? gInterpreterMutex : 0);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       /usr/ports/science/root/work/.build/include/TInterpreter.h:47:37: note: expanded from macro 'R__LOCKGUARD_CLING'
       # define R__LOCKGUARD_CLING(mutex) (void)mutex; \{ }
       ^~~~~~~~~~~
       /usr/ports/science/root/work/root-6.14.00/core/metacling/src/TCling.cxx:4768:4: error: value of type 'void' is not contextually convertible to 'bool'
       R__LOCKGUARD_CLING(fLockProcessLine ? gInterpreterMutex : 0);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       /usr/ports/science/root/work/.build/include/TInterpreter.h:47:37: note: expanded from macro 'R__LOCKGUARD_CLING'
       # define R__LOCKGUARD_CLING(mutex) (void)mutex; \{ }
       ^~~~~~~~~~~
      

        Attachments

          Activity

            People

            Assignee:
            axel Axel Naumann
            Reporter:
            46cbd668e800225c6390 yuri@tsoft.com (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Actual End: