* installing *source* package ‘unfoldr’ ... ** package ‘unfoldr’ successfully unpacked and MD5 sums checked ** using staged installation ** libs make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-clang13/unfoldr/src' /usr/local/clang13/bin/clang++ -std=gnu++14 -I"/data/gannet/ripley/R/R-clang-trunk/include" -DNDEBUG -isystem /usr/local/clang13/include -fopenmp -fpic -g -O3 -Wall -pedantic -frtti -c GeometricPrimitives.cpp -o GeometricPrimitives.o In file included from GeometricPrimitives.cpp:52: ./GeometricPrimitives.h:989:23: warning: unused variable 'p1' [-Wunused-variable] STGM::CPoint2d p1(PointOnEllipse(m_psi[idx])); ^ 1 warning generated. /usr/local/clang13/bin/clang++ -std=gnu++14 -I"/data/gannet/ripley/R/R-clang-trunk/include" -DNDEBUG -isystem /usr/local/clang13/include -fopenmp -fpic -g -O3 -Wall -pedantic -frtti -c Intersector.cpp -o Intersector.o In file included from Intersector.cpp:8: In file included from ./Intersector.h:13: ./GeometricPrimitives.h:989:23: warning: unused variable 'p1' [-Wunused-variable] STGM::CPoint2d p1(PointOnEllipse(m_psi[idx])); ^ In file included from Intersector.cpp:8: ./Intersector.h:105:22: warning: private field 'm_type' is not used [-Wunused-private-field] IntersectionType m_type; ^ ./Intersector.h:173:22: warning: private field 'm_type' is not used [-Wunused-private-field] IntersectionType m_type; ^ 3 warnings generated. /usr/local/clang13/bin/clang++ -std=gnu++14 -I"/data/gannet/ripley/R/R-clang-trunk/include" -DNDEBUG -isystem /usr/local/clang13/include -fopenmp -fpic -g -O3 -Wall -pedantic -frtti -c SimPoisson.cpp -o SimPoisson.o In file included from SimPoisson.cpp:11: In file included from ./SimPoisson.h:15: In file included from ./Intersector.h:13: ./GeometricPrimitives.h:989:23: warning: unused variable 'p1' [-Wunused-variable] STGM::CPoint2d p1(PointOnEllipse(m_psi[idx])); ^ 1 warning generated. /usr/local/clang13/bin/clang++ -std=gnu++14 -I"/data/gannet/ripley/R/R-clang-trunk/include" -DNDEBUG -isystem /usr/local/clang13/include -fopenmp -fpic -g -O3 -Wall -pedantic -frtti -c Utils.cpp -o Utils.o /usr/local/clang13/bin/clang++ -std=gnu++14 -I"/data/gannet/ripley/R/R-clang-trunk/include" -DNDEBUG -isystem /usr/local/clang13/include -fopenmp -fpic -g -O3 -Wall -pedantic -frtti -c directions.cpp -o directions.o /usr/local/clang13/bin/clang++ -std=gnu++14 -I"/data/gannet/ripley/R/R-clang-trunk/include" -DNDEBUG -isystem /usr/local/clang13/include -fopenmp -fpic -g -O3 -Wall -pedantic -frtti -c ellipt.cpp -o ellipt.o /usr/local/clang13/bin/clang++ -std=gnu++14 -I"/data/gannet/ripley/R/R-clang-trunk/include" -DNDEBUG -isystem /usr/local/clang13/include -fopenmp -fpic -g -O3 -Wall -pedantic -frtti -c unfold.cpp -o unfold.o In file included from unfold.cpp:11: In file included from ./SimPoisson.h:15: In file included from ./Intersector.h:13: ./GeometricPrimitives.h:989:23: warning: unused variable 'p1' [-Wunused-variable] STGM::CPoint2d p1(PointOnEllipse(m_psi[idx])); ^ In file included from unfold.cpp:14: /usr/local/clang13/lib/clang/13.0.0/include/omp.h:483:39: error: expected 'match' clause on 'omp declare variant' directive #pragma omp begin declare variant match(device={kind(host)}) ^ /data/gannet/ripley/R/R-clang-trunk/include/Rinternals.h:967:17: note: expanded from macro 'match' #define match Rf_match ^ In file included from unfold.cpp:14: /usr/local/clang13/lib/clang/13.0.0/include/omp.h:486:39: error: expected 'match' clause on 'omp declare variant' directive #pragma omp begin declare variant match(device={kind(nohost)}) ^ /data/gannet/ripley/R/R-clang-trunk/include/Rinternals.h:967:17: note: expanded from macro 'match' #define match Rf_match ^ In file included from unfold.cpp:11: In file included from ./SimPoisson.h:15: In file included from ./Intersector.h:13: In file included from ./GeometricPrimitives.h:14: ./Vector.h:80:16: warning: array index 2 is past the end of the array (which contains 2 elements) [-Warray-bounds] if (N > 2) p[2] = x2; ^ ~ ./GeometricPrimitives.h:59:16: note: in instantiation of member function 'STGM::CPoint<2>::CPoint' requested here : m_size(STGM::CPoint2d(a,b)), ^ ./Vector.h:39:3: note: array 'p' declared here value_t p[N]; ^ ./Vector.h:207:16: warning: array index 2 is past the end of the array (which contains 2 elements) [-Warray-bounds] if (N > 2) data[2] = x2; ^ ~ ./GeometricPrimitives.h:60:12: note: in instantiation of member function 'STGM::CVector::CVector' requested here m_center(STGM::CVector2d(0.5*a,0.5*b)), ^ ./Vector.h:147:3: note: array 'data' declared here value_t data[N]; ^ unfold.cpp:53:11: warning: array index 3 is past the end of the array (which contains 3 elements) [-Warray-bounds] L=dims[3]; M=dims[4]; N=dims[5]; ^ ~ unfold.cpp:390:11: note: in instantiation of member function 'CArray<3>::CArray' requested here CArray3 H(R_H), F(R_F); ^ unfold.cpp:87:3: note: array 'dims' declared here size_t dims[DIM]; // I,J,K,L,M,N ^ unfold.cpp:53:22: warning: array index 4 is past the end of the array (which contains 3 elements) [-Warray-bounds] L=dims[3]; M=dims[4]; N=dims[5]; ^ ~ unfold.cpp:87:3: note: array 'dims' declared here size_t dims[DIM]; // I,J,K,L,M,N ^ unfold.cpp:53:34: warning: array index 5 is past the end of the array (which contains 3 elements) [-Warray-bounds] L=dims[3]; M=dims[4]; N=dims[5]; ^ ~ unfold.cpp:87:3: note: array 'dims' declared here size_t dims[DIM]; // I,J,K,L,M,N ^ 6 warnings and 2 errors generated. make[1]: *** [/data/gannet/ripley/R/R-clang-trunk/etc/Makeconf:175: unfold.o] Error 1 make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-clang13/unfoldr/src' ERROR: compilation failed for package ‘unfoldr’ * removing ‘/data/gannet/ripley/R/packages/tests-clang13/Libs/unfoldr-lib/unfoldr’ Command exited with non-zero status 1 Time 0:59.21, 23.34 + 0.65