bsc-pm / nanos6

Nanos6 is a runtime that implements the OmpSs-2 parallel programming model, developed by the System Tools and Advanced Runtimes (STAR) group at the Barcelona Supercomputing Center.
GNU General Public License v3.0
20 stars 13 forks source link

build failure when enabling pqos #4

Closed Alessandro-Barbieri closed 2 years ago

Alessandro-Barbieri commented 3 years ago
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/usr/include -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -pthread -I/usr/include -I./src/executors/threads/cpu-managers/default -I/usr/include -DHAVE_PQOS -I./src/memory/allocator/malloc -I./src/instrument/ctf -I/usr/include -Wall -Wextra -Wdisabled-optimization -Wshadow -fvisibility=hidden -O0 -g3 -fstack-protector-all -I./src -I./src -I./api -I. -faligned-new -I./src/executors/threads/kernel-level -I./src/instrument/support/introspection/ElfUtils -I./src/instrument/support/backtrace/libunwind -I./src/dependencies/linear-regions -I./src/dependencies/discrete -DDISCRETE_DEPS -Wall -Wextra -Wdisabled-optimization -Wshadow -fvisibility=hidden -c src/executors/threads/CPUManager.cpp  -fPIC -DPIC -o src/executors/threads/.libs/libnanos6_debug_discrete_ctf_la-CPUManager.o                                                                                                              /bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.  -I/usr/include -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -pthread  -I/usr/include    -I./src/executors/threads/cpu-managers/default  -I/usr/include -DH
AVE_PQOS   -I./src/memory/allocator/malloc -I./src/instrument/ctf -I/usr/include  -Wall -Wextra -Wdisabled-optimization -Wshadow -fvisibility=hidden -O0 -g3 -fstack-protector-all -I./src -I./src -I./api -I. -faligned-new -I./src/executors/threads/kernel-level -I./src/instrument/support/introspection/ElfUtils  -I./src/instrument/support/backtrace/libunwind    -I./src/dependencies/linear-regions -I./src/dependencies/discrete -DDISCRETE_DEPS -Wall -Wextra -Wdisabled-opti
mization -Wshadow -fvisibility=hidden -c -o src/executors/threads/libnanos6_debug_discrete_ctf_la-CPUManagerInterface.lo `test -f 'src/executors/threads/CPUManagerInterface.cpp' || echo './'`src/executors/threads/CPUManagerInterface.cpplibtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/usr/include -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -pthread -I/usr/include -I./src/executors/threads/cpu-managers/default -I/usr/include -DHAVE_PQOS -I./src/memory/allocator
/malloc -I./src/instrument/ctf -I/usr/include -Wall -Wextra -Wdisabled-optimization -Wshadow -fvisibility=hidden -O0 -g3 -fstack-protector-all -I./src -I./src -I./api -I. -faligned-new -I./src/executors/threads/kernel-level -I./src/inst
rument/support/introspection/ElfUtils -I./src/instrument/support/backtrace/libunwind -I./src/dependencies/linear-regions -I./src/dependencies/discrete -DDISCRETE_DEPS -Wall -Wextra -Wdisabled-optimization -Wshadow -fvisibility=hidden -c
 src/executors/threads/CPUManagerInterface.cpp  -fPIC -DPIC -o src/executors/threads/.libs/libnanos6_debug_discrete_ctf_la-CPUManagerInterface.o                                                                                            
In file included from src/hardware-counters/pqos/PQoSHardwareCounters.cpp:11:                                                                                                                                                               
src/hardware-counters/pqos/PQoSHardwareCounters.hpp:58:28: error: ‘string’ in namespace ‘std’ does not name a type                                                                                                                          
   58 |                 const std::string &,                                                                                                                                                                                                
      |                            ^~~~~~                                                                                                                                                                                                   
src/hardware-counters/pqos/PQoSHardwareCounters.hpp:17:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?                                                                                       
   16 | #include "hardware-counters/ThreadHardwareCountersInterface.hpp"                                                                                                                                                                    
  +++ |+#include <string>                                                                                                                                                                                                                   
   17 |                                                                                                                                                                                                                                     
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.  -I/usr/include -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -pthread  -I/usr/include    -I./src/executors/threads/cpu-managers/default  -I/usr/include -DH
AVE_PQOS   -I./src/memory/allocator/malloc -I./src/instrument/ctf -I/usr/include  -Wall -Wextra -Wdisabled-optimization -Wshadow -fvisibility=hidden -O0 -g3 -fstack-protector-all -I./src -I./src -I./api -I. -faligned-new -I./src/executo
rs/threads/kernel-level -I./src/instrument/support/introspection/ElfUtils  -I./src/instrument/support/backtrace/libunwind    -I./src/dependencies/linear-regions -I./src/dependencies/discrete -DDISCRETE_DEPS -Wall -Wextra -Wdisabled-opti
mization -Wshadow -fvisibility=hidden -c -o src/executors/threads/libnanos6_debug_discrete_ctf_la-ThreadManager.lo `test -f 'src/executors/threads/ThreadManager.cpp' || echo './'`src/executors/threads/ThreadManager.cpp                  
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/usr/include -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -pthread -I/usr/include -I./src/executors/threads/cpu-managers/default -I/usr/include -DHAVE_PQOS -I./src/memory/allocator
/malloc -I./src/instrument/ctf -I/usr/include -Wall -Wextra -Wdisabled-optimization -Wshadow -fvisibility=hidden -O0 -g3 -fstack-protector-all -I./src -I./src -I./api -I. -faligned-new -I./src/executors/threads/kernel-level -I./src/inst
rument/support/introspection/ElfUtils -I./src/instrument/support/backtrace/libunwind -I./src/dependencies/linear-regions -I./src/dependencies/discrete -DDISCRETE_DEPS -Wall -Wextra -Wdisabled-optimization -Wshadow -fvisibility=hidden -c
 src/executors/threads/ThreadManager.cpp  -fPIC -DPIC -o src/executors/threads/.libs/libnanos6_debug_discrete_ctf_la-ThreadManager.o                                                                                                        
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.  -I/usr/include -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -pthread  -I/usr/include    -I./src/executors/threads/cpu-managers/default  -I/usr/include -DH
AVE_PQOS   -I./src/memory/allocator/malloc -I./src/instrument/ctf -I/usr/include  -Wall -Wextra -Wdisabled-optimization -Wshadow -fvisibility=hidden -O0 -g3 -fstack-protector-all -I./src -I./src -I./api -I. -faligned-new -I./src/executo
rs/threads/kernel-level -I./src/instrument/support/introspection/ElfUtils  -I./src/instrument/support/backtrace/libunwind    -I./src/dependencies/linear-regions -I./src/dependencies/discrete -DDISCRETE_DEPS -Wall -Wextra -Wdisabled-opti
mization -Wshadow -fvisibility=hidden -c -o src/executors/threads/libnanos6_debug_discrete_ctf_la-WorkerThread.lo `test -f 'src/executors/threads/WorkerThread.cpp' || echo './'`src/executors/threads/WorkerThread.cpp                     
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/usr/include -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -pthread -I/usr/include -I./src/executors/threads/cpu-managers/default -I/usr/include -DHAVE_PQOS -I./src/memory/allocator
/malloc -I./src/instrument/ctf -I/usr/include -Wall -Wextra -Wdisabled-optimization -Wshadow -fvisibility=hidden -O0 -g3 -fstack-protector-all -I./src -I./src -I./api -I. -faligned-new -I./src/executors/threads/kernel-level -I./src/inst
rument/support/introspection/ElfUtils -I./src/instrument/support/backtrace/libunwind -I./src/dependencies/linear-regions -I./src/dependencies/discrete -DDISCRETE_DEPS -Wall -Wextra -Wdisabled-optimization -Wshadow -fvisibility=hidden -c
 src/executors/threads/WorkerThread.cpp  -fPIC -DPIC -o src/executors/threads/.libs/libnanos6_debug_discrete_ctf_la-WorkerThread.o                                                                                                          
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.  -I/usr/include -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -pthread  -I/usr/include    -I./src/executors/threads/cpu-managers/default  -I/usr/include -DH
AVE_PQOS   -I./src/memory/allocator/malloc -I./src/instrument/ctf -I/usr/include  -Wall -Wextra -Wdisabled-optimization -Wshadow -fvisibility=hidden -O0 -g3 -fstack-protector-all -I./src -I./src -I./api -I. -faligned-new -I./src/executo
rs/threads/kernel-level -I./src/instrument/support/introspection/ElfUtils  -I./src/instrument/support/backtrace/libunwind    -I./src/dependencies/linear-regions -I./src/dependencies/discrete -DDISCRETE_DEPS -Wall -Wextra -Wdisabled-opti
mization -Wshadow -fvisibility=hidden -c -o src/executors/threads/cpu-managers/default/libnanos6_debug_discrete_ctf_la-DefaultCPUManager.lo `test -f 'src/executors/threads/cpu-managers/default/DefaultCPUManager.cpp' || echo './'`src/exe
cutors/threads/cpu-managers/default/DefaultCPUManager.cpp                                                                                                                                                                                   
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/usr/include -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -pthread -I/usr/include -I./src/executors/threads/cpu-managers/default -I/usr/include -DHAVE_PQOS -I./src/memory/allocator
/malloc -I./src/instrument/ctf -I/usr/include -Wall -Wextra -Wdisabled-optimization -Wshadow -fvisibility=hidden -O0 -g3 -fstack-protector-all -I./src -I./src -I./api -I. -faligned-new -I./src/executors/threads/kernel-level -I./src/inst
rument/support/introspection/ElfUtils -I./src/instrument/support/backtrace/libunwind -I./src/dependencies/linear-regions -I./src/dependencies/discrete -DDISCRETE_DEPS -Wall -Wextra -Wdisabled-optimization -Wshadow -fvisibility=hidden -c
 src/executors/threads/cpu-managers/default/DefaultCPUManager.cpp  -fPIC -DPIC -o src/executors/threads/cpu-managers/default/.libs/libnanos6_debug_discrete_ctf_la-DefaultCPUManager.o
src/hardware-counters/pqos/PQoSHardwareCounters.cpp:20:1: error: no declaration matches ‘PQoSHardwareCounters::PQoSHardwareCounters(bool, const string&, std::vector<HWCounters::counters_t>&)’
   20 | PQoSHardwareCounters::PQoSHardwareCounters(
      | ^~~~~~~~~~~~~~~~~~~~
In file included from src/hardware-counters/pqos/PQoSHardwareCounters.cpp:11:
src/hardware-counters/pqos/PQoSHardwareCounters.hpp:19:7: note: candidates are: ‘constexpr PQoSHardwareCounters::PQoSHardwareCounters(const PQoSHardwareCounters&)’
   19 | class PQoSHardwareCounters : public HardwareCountersInterface {
      |       ^~~~~~~~~~~~~~~~~~~~
src/hardware-counters/pqos/PQoSHardwareCounters.hpp:56:9: note:                 ‘PQoSHardwareCounters::PQoSHardwareCounters(bool, const int&, std::vector<HWCounters::counters_t>&)’
   56 |         PQoSHardwareCounters(
      |         ^~~~~~~~~~~~~~~~~~~~
src/hardware-counters/pqos/PQoSHardwareCounters.hpp:19:7: note: ‘class PQoSHardwareCounters’ defined here
   19 | class PQoSHardwareCounters : public HardwareCountersInterface {
      |       ^~~~~~~~~~~~~~~~~~~~
Alessandro-Barbieri commented 3 years ago

https://github.com/bsc-pm/nanos6/pull/5

kevinsala commented 3 years ago

This issue is fixed in our private master branch and will be fixed in the release that we will publish in the next days. Thank you for reporting it!