Error in compiling `math/genvector/G__GenVector.cxx` in ROOT 6.09/04

While trying to compile the latest ROOT version, ROOT 6.09/04, with these build options:

cmake -D all=ON -D roofit=ON -D minuit2=ON -D cxx14=ON -D r=ON -D imt=ON $GIT_DIR
cmake --build . -- -j7

I encountered the following error while trying to build math/genvector/G__GenVector.cxx:

make[2]: *** No rule to make target '/cern/root-git2/math/genvector/inc/Math/LinkDef_Point3D.h', needed by 'math/genvector/G__GenVector.cxx'.  Stop.
CMakeFiles/Makefile2:16469: recipe for target 'math/genvector/CMakeFiles/GenVector.dir/all' failed
make[1]: *** [math/genvector/CMakeFiles/GenVector.dir/all] Error 2

Any help is appreciated.
Andreas

Hi Andreas,

This file has been removed. Try to do make clean and/or start from a fresh build directory (or remove the math directory in the build dir and reconfigure).

Cheers,
Philippe.

Ah, that makes sense, I was using that directory to build ROOT 6.09.02 beforeā€¦

Trying again now, after a make clean.

I had to delete the whole content of the build directory for it to succeed.

However, now I cannot install it, I get quite a few python errors:

$ cmake -D CMAKE_INSTALL_PREFIX=$INSTALL_DIR -P cmake_install.cmake
...
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/py_compile.py", line 181, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/py_compile.py", line 173, in main
    compile(filename, doraise=True)
  File "/usr/lib/python2.7/py_compile.py", line 106, in compile
    with open(file, 'U') as f:
IOError: [Errno 2] No such file or directory: '/usr/local/lib/cmdLineUtils.py'
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/py_compile.py", line 181, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/py_compile.py", line 173, in main
    compile(filename, doraise=True)
  File "/usr/lib/python2.7/py_compile.py", line 106, in compile
    with open(file, 'U') as f:
IOError: [Errno 2] No such file or directory: '/usr/local/lib/cmdLineUtils.py'
-- Up-to-date: /cern/root-6.09.04/bin/rootcling
-- Up-to-date: /cern/root-6.09.04/lib/libPyROOT_rdict.pcm
-- Up-to-date: /cern/root-6.09.04/lib/libPyROOT.rootmap
-- Up-to-date: /cern/root-6.09.04/lib/libPyROOT.so
-- Up-to-date: /cern/root-6.09.04/lib/libJupyROOT.so
-- Up-to-date: /cern/root-6.09.04/lib/ROOT.py
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/py_compile.py", line 181, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/py_compile.py", line 173, in main
    compile(filename, doraise=True)
  File "/usr/lib/python2.7/py_compile.py", line 106, in compile
    with open(file, 'U') as f:
IOError: [Errno 2] No such file or directory: '/usr/local/lib/ROOT.py'
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/py_compile.py", line 181, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/py_compile.py", line 173, in main
    compile(filename, doraise=True)
  File "/usr/lib/python2.7/py_compile.py", line 106, in compile
    with open(file, 'U') as f:
IOError: [Errno 2] No such file or directory: '/usr/local/lib/ROOT.py'
-- Up-to-date: /cern/root-6.09.04/lib/_pythonization.py
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/py_compile.py", line 181, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/py_compile.py", line 173, in main
    compile(filename, doraise=True)
  File "/usr/lib/python2.7/py_compile.py", line 106, in compile
    with open(file, 'U') as f:
IOError: [Errno 2] No such file or directory: '/usr/local/lib/_pythonization.py'
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/py_compile.py", line 181, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/py_compile.py", line 173, in main
    compile(filename, doraise=True)
  File "/usr/lib/python2.7/py_compile.py", line 106, in compile
    with open(file, 'U') as f:
IOError: [Errno 2] No such file or directory: '/usr/local/lib/_pythonization.py'
-- Up-to-date: /cern/root-6.09.04/lib/cppyy.py
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/py_compile.py", line 181, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/py_compile.py", line 173, in main
    compile(filename, doraise=True)
  File "/usr/lib/python2.7/py_compile.py", line 106, in compile
    with open(file, 'U') as f:
IOError: [Errno 2] No such file or directory: '/usr/local/lib/cppyy.py'
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/py_compile.py", line 181, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/py_compile.py", line 173, in main
    compile(filename, doraise=True)
  File "/usr/lib/python2.7/py_compile.py", line 106, in compile
    with open(file, 'U') as f:
IOError: [Errno 2] No such file or directory: '/usr/local/lib/cppyy.py'

What is your $INSTALL_DIR ? I guess is not /usr/local

No, it is /cern/root-6.09.04 in this case. (The build dir is /cern/root-build, so separate from it).

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.