Running ‘testthat.R’ [13s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(RcppThread)
  > 
  > test_check("RcppThread")
  In file included from tests.cpp:4:
  In file included from /data/gannet/ripley/R/packages/tests-clang/RcppThread.Rcheck/RcppThread/include/RcppThread.h:11:
  /data/gannet/ripley/R/packages/tests-clang/RcppThread.Rcheck/RcppThread/include/RcppThread/Thread.hpp:104:32: error: unknown type name '__gthread_t'; did you mean 'pthread_t'?
      using native_handle_type = __gthread_t;
                                 ^~~~~~~~~~~
                                 pthread_t
  /usr/include/bits/pthreadtypes.h:27:27: note: 'pthread_t' declared here
  typedef unsigned long int pthread_t;
                            ^
  1 error generated.
  make[1]: *** [/data/gannet/ripley/R/R-clang/etc/Makeconf:166: tests.o] Error 1
  make[1]: Target 'all' not remade because of errors.
  make[1]: Entering directory '/tmp/Rtmp3CYmpd/sourceCpp-x86_64-pc-linux-gnu-0.12.19/sourcecpp_b72c3d0bef32'
  clang++ -std=gnu++11 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG   -I"/data/gannet/ripley/R/test-clang/Rcpp/include" -I"/data/gannet/ripley/R/packages/tests-clang/RcppThread.Rcheck/RcppThread/include" -I"/data/gannet/ripley/R/packages/tests-clang/RcppThread.Rcheck/tests" -isystem /usr/local/clang/include   -fpic  -g -O3 -Wall -pedantic -frtti  -c tests.cpp -o tests.o
  make[1]: Leaving directory '/tmp/Rtmp3CYmpd/sourceCpp-x86_64-pc-linux-gnu-0.12.19/sourcecpp_b72c3d0bef32'
  ── 1. Error: (unknown) (@tests.R#3)  ───────────────────────────────────────────
  Error 1 occurred building shared library.
  1: Rcpp::sourceCpp(file = normalizePath("../tests.cpp")) at testthat/tests.R:3
  2: stop("Error ", status, " occurred building shared library.")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 0 SKIPPED: 0 FAILED: 1
  1. Error: (unknown) (@tests.R#3) 
  
  Error: testthat unit tests failed
  Execution halted