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

Accessing some system types in a macro doesn't work after the latest Xcode update

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • High
    • Resolution: Fixed
    • 6.02/05
    • 6.06/04
    • Cling
    • None
    • MacOS X 10.10.3, Xcode 6.3, ROOT v6-02-05 built previously with Xcode 6.2.

    Description

      I ran into a very annoying problem today. After updating Xcode on my laptop yesterday to the latest, 6.3 version, my locally built ROOT version is now failing in some simple operations. If I try to run the following simple macro with root -b -q simpleMacro.C, I get:

      > root -b -q simpleMacro.C 
         ------------------------------------------------------------
        | Welcome to ROOT 6.02/05                http://root.cern.ch |
        |                               (c) 1995-2014, The ROOT Team |
        | Built for macosx64                                         |
        | From tag v6-02-05, 9 February 2015                         |
        | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
         ------------------------------------------------------------
       
      root [0] 
      Processing simpleMacro.C...
      fatal error: file
            '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale'
            modified since it was first processed

      simpleMacro.C

      #include <fstream>
       
      void simpleMacro() {
       
         std::ifstream test( "dummy.txt" );
       
         return;
      }

      The problem is that some of the core ATLAS macros use std file streams, and now they all fail for me. (Since I was trying to run some code that I compiled earlier.)

      I consider this a bug. It should really not happen that I need to recompile all my code after an Xcode update. :-/

      Cheers,
      Attila

      Attachments

        Activity

          People

            axel Axel Naumann
            akraszna Attila Krasznahorkay
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: