ROOT 6.14.04 cmake build error with Xcode 10

Followed Chandler’s advise and upgraded to the latest Xcode version last night (20-Sep)
which resulted in he following make issue:

make[2]: *** No rule to make target `/Users/eddyo/src/root-6.14.04/tutorials/dataframe/.df014_CSVDataSource.C.swp', needed by `tutorials/dataframe/.df014_CSVDataSource.C.swp'. Stop.
make[1]: *** [CMakeFiles/move_artifacts.dir/all] Error 2
make: *** [all] Error 2

Apple LLVM version 10.0.0 (clang-1000.11.45.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

cmake \
-Dfortran=OFF \
-DPYTHON_EXECUTABLE:FILEPATH=/opt/local/bin/python \
-DPYTHON_INCLUDE_DIR:PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 \
-DPYTHON_LIBRARY:FILEPATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib \
-Dmysql=ON \
-DMYSQL_DIR=/opt/local \
-DMYSQL_CONFIG_EXECUTABLE=/opt/local/bin/mysql_config \
  /Users/eddyo/src/root-6.14.04

ROOT Version: 6.14.04
Platform: MacOSX
Compiler: Apple LLVM version 10.0.0 (clang-1000.11.45.2)


As usual , I forgot the “xcode-select --install”.

Problem solved ! Sorry for the noise

No, the original error message is actually caused by both CMake being “inherently broken” (it doesn’t re-run if a dependency is missing), and us being a bit casual in our definition of “the tutorials to be copied”:

When you configured ROOT for the first time, CMake saw tutorials/dataframe/.df014_CSVDataSource.C.swp in your source directory, and created a rule saying “copy that to the build directory, also do that whenever it changes”. Now that you have removed that file in the source directory, CMake is confused.

I have created https://sft.its.cern.ch/jira/browse/ROOT-9688

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