Hello, I´m kinda new in root. My adviser gave me a lot of macros that were created and used with root 5.18 or so. I have to use them but found that in my root version 5.34 or 6, the macro will get in some sort of endless loop.
I would appreciate any help.
PD. My boss showed me them running fine in his old root version.
ROOT 5.18 is a release from 2008. I would go for the most recent ROOT6 version, root.cern.ch/content/release-60804 .
Don’t hesitate to post any issue you may encounter running the old macros backed up by a concrete reproducer.
Ok, I can go for the newest version. In fact I already try yesterday but encountered the same problem. The execution of the macro in its original old version takes but 2 minutes top. When executing in root 6 it will take forever and nothing gets resolved. Is it a problem of compiler or something related?
Ok, so I debugged it on a linux machine with root 5.34 and it does run, but when I did exactly the same in my root version for macbook pro (model from 2012) I get this:
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
If I check it, the only difference between the linux version and this one is this line, with linux8664gcc instead of macosx64:
ROOT 5.34/26 (v5-34-26@v5-34-26, Feb 20 2015, 13:23:25 on macosx64)
It turns I had a conflict with versions, I finally removed any root5 vestiges and I´m completely sure to be running root6. Most of my macros work but some of them return this message
input_line_3:16:10: fatal error: file '/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string' modified since it was first processed
#include <string>
^
input_line_8:2:10: fatal error: error opening file '/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string':
#include <string>
^
root [0]
Processing SDEMs_ext.C...
In file included from input_line_9:1:
/Users/DANNY/run_1.3/cosbins/SDEMs_ext.C:3:9: fatal error: file
'/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/fstream' modified since it was first processed
#include<fstream>
This could mean that your ROOT build and your Xcode installation are out sync. Though I’ve never seen this in real life. If you’re at CERN I would love to debug this…