Project

General

Profile

Support #11007

ARTDAQ build fails on Darwin

Added by Eric Flumerfelt almost 4 years ago. Updated over 2 years ago.

Status:
Rejected
Priority:
Low
Assignee:
-
Category:
Additional Functionality
Target version:
-
Start date:
11/25/2015
Due date:
% Done:

0%

Estimated time:
Experiment:
-
Co-Assignees:
Duration:

Description

Two issues were encountered during the OS X build of artdaq v1_12_14:

1. size_t is defined oddly:

/Users/macdev/workspace/artdaq-v1_12_14/OSX-10.10/debug/build/artdaq/v1_12_14/src/artdaq/DAQrate/EventStore.cc: In member function 'bool artdaq::EventStore::flushData()':
/Users/macdev/workspace/artdaq-v1_12_14/OSX-10.10/debug/build/artdaq/v1_12_14/src/artdaq/DAQrate/EventStore.cc:232:53: error: call of overloaded 'addSample(size_t)' is ambiguous
         mqPtr->addSample(complete_event->wordCount());
                                                     ^
/Users/macdev/workspace/artdaq-v1_12_14/OSX-10.10/debug/build/artdaq/v1_12_14/src/artdaq/DAQrate/EventStore.cc:232:53: note: candidates are:
In file included from /Users/macdev/workspace/artdaq-v1_12_14/OSX-10.10/debug/build/artdaq_core/v1_04_23/include/artdaq-core/Core/StatisticsCollection.hh:4:0,
                 from /Users/macdev/workspace/artdaq-v1_12_14/OSX-10.10/debug/build/artdaq/v1_12_14/src/artdaq/DAQrate/EventStore.cc:13:
/Users/macdev/workspace/artdaq-v1_12_14/OSX-10.10/debug/build/artdaq_core/v1_04_23/include/artdaq-core/Core/MonitoredQuantity.hh:42:10: note: void artdaq::MonitoredQuantity::addSample(double)
     void addSample(const double value = 1.0);
          ^
/Users/macdev/workspace/artdaq-v1_12_14/OSX-10.10/debug/build/artdaq_core/v1_04_23/include/artdaq-core/Core/MonitoredQuantity.hh:47:10: note: void artdaq::MonitoredQuantity::addSample(int)
     void addSample(const int value = 1);
          ^
/Users/macdev/workspace/artdaq-v1_12_14/OSX-10.10/debug/build/artdaq_core/v1_04_23/include/artdaq-core/Core/MonitoredQuantity.hh:52:10: note: void artdaq::MonitoredQuantity::addSample(uint32_t)
     void addSample(const uint32_t value = 1);
          ^
/Users/macdev/workspace/artdaq-v1_12_14/OSX-10.10/debug/build/artdaq_core/v1_04_23/include/artdaq-core/Core/MonitoredQuantity.hh:57:10: note: void artdaq::MonitoredQuantity::addSample(uint64_t)
     void addSample(const uint64_t value = 1);

2. (related) C-style format specifiers:

In file included from /Users/macdev/workspace/artdaq-v1_12_14/OSX-10.10/debug/build/TRACE/v3_05_00a/include/tracelib.h:16:0,
                 from /Users/macdev/workspace/artdaq-v1_12_14/OSX-10.10/debug/build/artdaq/v1_12_14/src/artdaq/DAQrate/EventStore.cc:17:
/Users/macdev/workspace/artdaq-v1_12_14/OSX-10.10/debug/build/artdaq/v1_12_14/src/artdaq/DAQrate/EventStore.cc: In member function 'void artdaq::EventStore::insert(artdaq::FragmentPtr, bool)':
/Users/macdev/workspace/artdaq-v1_12_14/OSX-10.10/debug/build/TRACE/v3_05_00a/include/trace.h:131:37: error: format '%lu' expects argument of type 'long unsigned int', but argument 15 has type 'artdaq::Fragment::sequence_id_t {aka long long unsigned int}' [-Werror=format=]
                       , __VA_ARGS__ );     \
                                     ^
/Users/macdev/workspace/artdaq-v1_12_14/OSX-10.10/debug/build/artdaq/v1_12_14/src/artdaq/DAQrate/EventStore.cc:116:5: note: in expansion of macro 'TRACE'
     TRACE( 13, "EventStore::insert seq=%lu fragID=%d id=%d lastFlushed=%lu seqIDMod=%d seq=%lu" 
     ^
/Users/macdev/workspace/artdaq-v1_12_14/OSX-10.10/debug/build/TRACE/v3_05_00a/include/trace.h:131:37: error: format '%lu' expects argument of type 'long unsigned int', but argument 18 has type 'artdaq::EventStore::sequence_id_t {aka long long unsigned int}' [-Werror=format=]
                       , __VA_ARGS__ );     \
                                     ^
/Users/macdev/workspace/artdaq-v1_12_14/OSX-10.10/debug/build/artdaq/v1_12_14/src/artdaq/DAQrate/EventStore.cc:116:5: note: in expansion of macro 'TRACE'
     TRACE( 13, "EventStore::insert seq=%lu fragID=%d id=%d lastFlushed=%lu seqIDMod=%d seq=%lu" 
     ^
/Users/macdev/workspace/artdaq-v1_12_14/OSX-10.10/debug/build/TRACE/v3_05_00a/include/trace.h:131:37: error: format '%lu' expects argument of type 'long unsigned int', but argument 20 has type 'artdaq::Fragment::sequence_id_t {aka long long unsigned int}' [-Werror=format=]
                       , __VA_ARGS__ );     \
                                     ^
/Users/macdev/workspace/artdaq-v1_12_14/OSX-10.10/debug/build/artdaq/v1_12_14/src/artdaq/DAQrate/EventStore.cc:116:5: note: in expansion of macro 'TRACE'
     TRACE( 13, "EventStore::insert seq=%lu fragID=%d id=%d lastFlushed=%lu seqIDMod=%d seq=%lu" 

History

#1 Updated by Eric Flumerfelt over 3 years ago

  • Target version set to 577

#2 Updated by Eric Flumerfelt over 2 years ago

  • Category set to Additional Functionality
  • Target version deleted (577)

#3 Updated by Eric Flumerfelt over 2 years ago

  • Status changed from New to Rejected

With the use of epoll in some of the new RoutingMaster code, Darwin cannot be a supported platform for artdaq.



Also available in: Atom PDF