JeffersonLab / japan

Just Another Parity ANalyzer
7 stars 13 forks source link

Does not compile on Mac #2

Closed cipriangal closed 11 months ago

cipriangal commented 6 years ago

On local machine with: -- The C compiler identification is AppleClang 9.1.0.9020039 -- The CXX compiler identification is AppleClang 9.1.0.9020039 -- Found ROOT 6.12/06 in /Users/ciprian/root6/build -- Boost version: 1.66.0 -- Found the following Boost libraries: -- program_options -- filesystem -- system -- regex

The compilation gets stuck on the first component (evio) build with (and 4 other similar errors): /Users/ciprian/prex/japan/evio/src/THaCodaFile.C:288:12: error: case value evaluates to 2155020293, which cannot be narrowed to type 'int' [-Wc++11-narrowing] case S_EVFILE_UNXPTDEOF : ^ /Users/ciprian/prex/japan/evio/include/evio.h:20:31: note: expanded from macro 'S_EVFILE_UNXPTDEOF'

define S_EVFILE_UNXPTDEOF 0x80730005 / Unexpected end of file while reading event /

                          ^

/Users/ciprian/prex/japan/evio/src/THaCodaFile.C:285:12: error: case value evaluates to 2155020292, which cannot be narrowed to type 'int' [-Wc++11-narrowing] case S_EVFILE_UNKOPTION :

Note that on my machine the cmake gives this warning for the boost library (probably unrelated to the above): CMake Warning at /usr/local/Cellar/cmake/3.10.3/share/cmake/Modules/FindBoost.cmake:801 (message): New Boost version may have incorrect or missing dependencies and imported targets Call Stack (most recent call first): /usr/local/Cellar/cmake/3.10.3/share/cmake/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES) /usr/local/Cellar/cmake/3.10.3/share/cmake/Modules/FindBoost.cmake:1542 (_Boost_MISSING_DEPENDENCIES) CMakeLists.txt:70 (find_package)

cipriangal commented 6 years ago

Check case sensitive on MAC