O2 compilation failing on Mac

Looks like this was not catched by the Mac CI ?


Users/laurent/alice/sw/SOURCES/O2/1.0.0/0/DataFormats/simulation/test/testMCCompLabel.cxx:28:8: error: no member named 'unordered_map' in namespace 'std'               
  std::unordered_map<MCCompLabel, int> labelMap;                                    
  ~~~~~^
/Users/laurent/alice/sw/SOURCES/O2/1.0.0/0/DataFormats/simulation/test/testMCCompLabel.cxx:28:22: error: 'MCCompLabel' does not refer to a value                         
  std::unordered_map<MCCompLabel, int> labelMap;                                    
                     ^
/Users/laurent/alice/sw/SOURCES/O2/1.0.0/0/DataFormats/simulation/include/SimulationDataFormat/MCCompLabel.h:20:7: note: declared here                                   
class MCCompLabel
      ^
/Users/laurent/alice/sw/SOURCES/O2/1.0.0/0/DataFormats/simulation/test/testMCCompLabel.cxx:34:5: error: use of undeclared identifier 'labelMap'                          
    labelMap[lb] = tr;
    ^
/Users/laurent/alice/sw/SOURCES/O2/1.0.0/0/DataFormats/simulation/test/testMCCompLabel.cxx:43:29: error: use of undeclared identifier 'labelMap'                         
  for (auto& [key, value] : labelMap) {
                            ^
4 errors generated.
[16/198] Building CXX object DataFormats/simulation/CMakeFiles/SimulationDataFormat.dir/G__SimulationDataFormatDict.cxx.o
ninja: build stopped: subcommand failed.
``

Full log at https://cernbox.cern.ch/index.php/s/rveVoBWWNjPNrvE

You are right. The MacOS CI seems to have problems. I am reverting that commit until problem solved.

Hi,

We already had this problem (e.g. https://github.com/AliceO2Group/AliceO2/pull/1171#discussion_r193667951): the ROOT dictionary generation fails on MacOS with std::unordered_map, but it was working with std:map.

Cheers,
Ruben