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

re-enable cling/clang/llvm symbol hiding

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • High
    • Resolution: Fixed
    • 6.00.beta
    • 6.00.beta
    • Core Libraries
    • None
    • macos and linux

    Description

      Hi Fons,

      On MacOS, setting the dlopen flag for libCling to RTLD_LOCAL leads to the following symbols to be missing, as expected

      oot [0] int a = 2;
      root [1] a
      ExecutionContext: use of undefined symbol '_ZN5cling16ValuePrinterInfoC1EPN5clang4ExprEPNS1_10ASTContextE'!
      ExecutionContext: use of undefined symbol '_ZN5cling20valuePrinterInternal13flushToStreamERN4llvm11raw_ostreamERKSs'!
      ExecutionContext: use of undefined symbol '_ZN5cling20valuePrinterInternal18printValue_DefaultEPKvRKNS_16ValuePrinterInfoE'!
      ExecutionContext: use of undefined symbol '_ZN5cling20valuePrinterInternal17printType_DefaultERKNS_16ValuePrinterInfoE'!
      ExecutionContext::executeFunction: symbol '_ZN5cling16ValuePrinterInfoC1EPN5clang4ExprEPNS1_10ASTContextE' unresolved while linking function '_Z15__cling_Un1Qu31v'!
      ExecutionContext::executeFunction: symbol '_ZN5cling20valuePrinterInternal13flushToStreamERN4llvm11raw_ostreamERKSs' unresolved while linking function '_Z15__cling_Un1Qu31v'!
      ExecutionContext::executeFunction: symbol '_ZN5cling20valuePrinterInternal17printType_DefaultERKNS_16ValuePrinterInfoE' unresolved while linking function '_Z15__cling_Un1Qu31v'!
      ExecutionContext::executeFunction: symbol '_ZN5cling20valuePrinterInternal18printValue_DefaultEPKvRKNS_16ValuePrinterInfoE' unresolved while linking function '_Z15__cling_Un1Qu31v'!

      They somehow needs to be imported into the cling Module.

      However it is also unclear why the same symbol are not missing on linux with the same RTLD_LOCAL flag. I.e. is it really hiding the symbols from other libraries on Linux?

      Thanks,
      Philippe.

      Attachments

        Activity

          People

            rdm Fons Rademakers
            pcanal Philippe Canal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: