Building the pc-ble-driver on an Arch Linux machine fails with the following error
./pc-ble-driver/src/pc-ble-driver-4.1.4/src/common/transport/uart_transport.cpp: In member function ‘virtual uint32_t UartTransport::impl::open(const status_cb_t&, const data_cb_t&, const log_cb_t&)’:
./pc-ble-driver/src/pc-ble-driver-4.1.4/src/common/transport/uart_transport.cpp:260:31: error: ‘sleep_for’ is not a member of ‘std::this_thread’
260 | std::this_thread::sleep_for(DELAY_BEFORE_OPEN);
| ^~~~~~~~~
./pc-ble-driver/src/pc-ble-driver-4.1.4/src/common/transport/uart_transport.cpp:318:31: error: ‘sleep_for’ is not a member of ‘std::this_thread’
318 | std::this_thread::sleep_for(DELAY_BEFORE_READ_WRITE);
| ^~~~~~~~~
[161/348] Building CXX object test/CMakeFiles/test_sd_api_v5.dir/softdevice_api/testcase_issue_stuck_in_scan_mode.cpp.o
ninja: build stopped: subcommand failed.
./pc-ble-driver/src/pc-ble-driver-4.1.4/src/common/transport/uart_transport.cpp:260:31: error: ‘sleep_for’ is not a member of ‘std::this_thread’
260 | std::this_thread::sleep_for(DELAY_BEFORE_OPEN);
| ^~~~~~~~~
./pc-ble-driver/src/pc-ble-driver-4.1.4/src/common/transport/uart_transport.cpp:318:31: error: ‘sleep_for’ is not a member of ‘std::this_thread’
318 | std::this_thread::sleep_for(DELAY_BEFORE_READ_WRITE);
| ^~~~~~~~~
[161/348] Building CXX object test/CMakeFiles/test_sd_api_v5.dir/softdevice_api/testcase_issue_stuck_in_scan_mode.cpp.o
ninja: build stopped: subcommand failed.
Adding
CXXFLAGS = "-D_GLIBCXX_USE_NANOSLEEP" as some googling suggests does not remedy the error