This is a strange error, and I have not been able to find useful posts online, so bear with the vague info.
I have some source files that I can compile with ACLiC without problems:
* ROOT v6.00/00 *
root [0] .L daqT.C+
root [1] .L JFTrackFit.C+
root [2] .L MydaqT.C+
Info in <TMacOSXSystem::ACLiC>: creating shared library /Users/jfcaron/Projects/Proto2BeamTest2/./MydaqT_C.so
root [3] .q
When I try to do the same thing from PyROOT using ROOT.gROOT.ProcessLine, here’s what I get:
Python 2.7.7 (default, Jun 10 2014, 15:08:24)
Type "copyright", "credits" or "license" for more information.
IPython 2.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [2]: import ROOT
In [3]: ROOT.gROOT.ProcessLine(".L daqT.C+")
Out[3]: 0L
In [4]: ROOT.gROOT.ProcessLine(".L JFTrackFit.C+")
Out[4]: 0L
In [5]: ROOT.gROOT.ProcessLine(".L MydaqT.C+")
Info in <TMacOSXSystem::ACLiC>: creating shared library /Users/jfcaron/Projects/Proto2BeamTest2/./MydaqT_C.so
ld: can't link with bundle (MH_BUNDLE) only dylibs (MH_DYLIB) file '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/time.so' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error in <ACLiC>: Compilation failed!
Out[5]: 0L
In [6]:
here I type Ctrl+D to exit python, but it hangs until I press Ctrl+C, then I get this:
^CError in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/core/magics/script.py", line 264, in kill_bg_processes
time.sleep(0.1)
KeyboardInterrupt
Error in sys.exitfunc:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/core/magics/script.py", line 264, in kill_bg_processes
time.sleep(0.1)
KeyboardInterrupt
I think the two problems are related since they both involve Python’s time module. I am using ROOT 6.00.00 compiled myself, and Python 2.7.7 from MacPorts. Both are compiled with the clang++ provided by XCode, while the Fortran part of ROOT is compiled with MacPorts GCC4.8. My code for the files that I am trying to compile with ACLiC can be found at http://bazaar.launchpad.net/~jfcaron/+junk/Proto2BeamTest2/files.
Thanks for any help, let me know if there are any useful commands I can use that will generate more information (otool, nm, etc).
Jean-François