* installing *source* package ‘scimesh’ ...
** this is package ‘scimesh’ version ‘0.3.0’
** package ‘scimesh’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
using C++17
using SDK: ‘MacOSX11.3.1.sdk’
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../src/core -I../src/third_party -I../src/third_party/glm -DSCIMESH_STB_WRITE_IMPL -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c rcpp_bindings.cpp -o rcpp_bindings.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../src/core -I../src/third_party -I../src/third_party/glm -DSCIMESH_STB_WRITE_IMPL -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../src/core -I../src/third_party -I../src/third_party/glm -DSCIMESH_STB_WRITE_IMPL -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c core/image.cpp -o core/image.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../src/core -I../src/third_party -I../src/third_party/glm -DSCIMESH_STB_WRITE_IMPL -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c core/camera.cpp -o core/camera.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../src/core -I../src/third_party -I../src/third_party/glm -DSCIMESH_STB_WRITE_IMPL -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c core/colormap.cpp -o core/colormap.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../src/core -I../src/third_party -I../src/third_party/glm -DSCIMESH_STB_WRITE_IMPL -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c core/normals.cpp -o core/normals.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../src/core -I../src/third_party -I../src/third_party/glm -DSCIMESH_STB_WRITE_IMPL -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c core/clipping.cpp -o core/clipping.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../src/core -I../src/third_party -I../src/third_party/glm -DSCIMESH_STB_WRITE_IMPL -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c core/rasterizer.cpp -o core/rasterizer.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../src/core -I../src/third_party -I../src/third_party/glm -DSCIMESH_STB_WRITE_IMPL -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c core/renderer.cpp -o core/renderer.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../src/core -I../src/third_party -I../src/third_party/glm -DSCIMESH_STB_WRITE_IMPL -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c core/primitives.cpp -o core/primitives.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../src/core -I../src/third_party -I../src/third_party/glm -DSCIMESH_STB_WRITE_IMPL -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c core/transforms.cpp -o core/transforms.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../src/core -I../src/third_party -I../src/third_party/glm -DSCIMESH_STB_WRITE_IMPL -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.5/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c core/obj_io.cpp -o core/obj_io.o
core/primitives.cpp:412:38: error: no matching constructor for initialization of 'std::vector<std::array<Vec3, 3>>' (aka 'vector<array<vec<3, float, defaultp>, 3>>')
std::vector<std::array<Vec3, 3>> side_faces = {
^ ~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:530:9: note: candidate template ignored: couldn't infer template argument '_InputIterator'
vector(_InputIterator __first, _InputIterator __last, const allocator_type& __a,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:544:9: note: candidate template ignored: couldn't infer template argument '_ForwardIterator'
vector(_ForwardIterator __first, _ForwardIterator __last, const allocator_type& __a,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:520:5: note: candidate constructor not viable: requires 3 arguments, but 4 were provided
vector(size_type __n, const value_type& __x, const allocator_type& __a);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:517:14: note: candidate constructor not viable: requires 2 arguments, but 4 were provided
explicit vector(size_type __n, const allocator_type& __a);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:519:5: note: candidate constructor not viable: requires 2 arguments, but 4 were provided
vector(size_type __n, const value_type& __x);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:522:9: note: candidate constructor template not viable: requires 2 arguments, but 4 were provided
vector(_InputIterator __first,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:537:9: note: candidate constructor template not viable: requires 2 arguments, but 4 were provided
vector(_ForwardIterator __first,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:560:5: note: candidate constructor not viable: requires 2 arguments, but 4 were provided
vector(const vector& __x, const allocator_type& __a);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:569:5: note: candidate constructor not viable: requires 2 arguments, but 4 were provided
vector(initializer_list<value_type> __il, const allocator_type& __a);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:580:5: note: candidate constructor not viable: requires 2 arguments, but 4 were provided
vector(vector&& __x, const allocator_type& __a);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:503:40: note: candidate constructor not viable: requires single argument '__a', but 4 arguments were provided
_LIBCPP_INLINE_VISIBILITY explicit vector(const allocator_type& __a)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:515:14: note: candidate constructor not viable: requires single argument '__n', but 4 arguments were provided
explicit vector(size_type __n);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:559:5: note: candidate constructor not viable: requires single argument '__x', but 4 arguments were provided
vector(const vector& __x);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:566:5: note: candidate constructor not viable: requires single argument '__il', but 4 arguments were provided
vector(initializer_list<value_type> __il);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:572:5: note: candidate constructor not viable: requires single argument '__x', but 4 arguments were provided
vector(vector&& __x)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:497:5: note: candidate constructor not viable: requires 0 arguments, but 4 were provided
vector() _NOEXCEPT_(is_nothrow_default_constructible<allocator_type>::value)
^
In file included from core/primitives.cpp:1:
In file included from ../src/core/scimesh/primitives.h:11:
In file included from ../src/core/scimesh/mesh.h:19:
In file included from ../src/core/scimesh/types.h:15:
In file included from ../src/third_party/glm/vec3.hpp:5:
In file included from ../src/third_party/glm/./ext/vector_bool3.hpp:5:
In file included from ../src/third_party/glm/./ext/../detail/type_vec3.hpp:446:
In file included from ../src/third_party/glm/./ext/../detail/type_vec3.inl:4:
In file included from ../src/third_party/glm/./ext/../detail/compute_vector_decl.hpp:3:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/functional:504:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:674:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/iterator:1499:9: error: implicit instantiation of undefined template 'std::array<glm::vec<3, float, glm::packed_highp>, 3>'
++__i;
^
core/primitives.cpp:420:27: note: in instantiation of member function 'std::__wrap_iter<std::array<glm::vec<3, float, glm::packed_highp>, 3> *>::operator++' requested here
for (const auto& face : side_faces) {
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
^
core/primitives.cpp:421:22: error: type 'std::array<glm::vec<3, float, glm::packed_highp>, 3> const' does not provide a subscript operator
Vec3 A = face[0], B = face[1], C = face[2];
~~~~^~
core/primitives.cpp:421:35: error: type 'std::array<glm::vec<3, float, glm::packed_highp>, 3> const' does not provide a subscript operator
Vec3 A = face[0], B = face[1], C = face[2];
~~~~^~
core/primitives.cpp:421:48: error: type 'std::array<glm::vec<3, float, glm::packed_highp>, 3> const' does not provide a subscript operator
Vec3 A = face[0], B = face[1], C = face[2];
~~~~^~
core/primitives.cpp:471:38: error: no matching constructor for initialization of 'std::vector<std::array<Vec3, 3>>' (aka 'vector<array<vec<3, float, defaultp>, 3>>')
std::vector<std::array<Vec3, 3>> faces = {
^ ~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:530:9: note: candidate template ignored: couldn't infer template argument '_InputIterator'
vector(_InputIterator __first, _InputIterator __last, const allocator_type& __a,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:544:9: note: candidate template ignored: couldn't infer template argument '_ForwardIterator'
vector(_ForwardIterator __first, _ForwardIterator __last, const allocator_type& __a,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:520:5: note: candidate constructor not viable: requires 3 arguments, but 4 were provided
vector(size_type __n, const value_type& __x, const allocator_type& __a);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:517:14: note: candidate constructor not viable: requires 2 arguments, but 4 were provided
explicit vector(size_type __n, const allocator_type& __a);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:519:5: note: candidate constructor not viable: requires 2 arguments, but 4 were provided
vector(size_type __n, const value_type& __x);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:522:9: note: candidate constructor template not viable: requires 2 arguments, but 4 were provided
vector(_InputIterator __first,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:537:9: note: candidate constructor template not viable: requires 2 arguments, but 4 were provided
vector(_ForwardIterator __first,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:560:5: note: candidate constructor not viable: requires 2 arguments, but 4 were provided
vector(const vector& __x, const allocator_type& __a);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:569:5: note: candidate constructor not viable: requires 2 arguments, but 4 were provided
vector(initializer_list<value_type> __il, const allocator_type& __a);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:580:5: note: candidate constructor not viable: requires 2 arguments, but 4 were provided
vector(vector&& __x, const allocator_type& __a);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:503:40: note: candidate constructor not viable: requires single argument '__a', but 4 arguments were provided
_LIBCPP_INLINE_VISIBILITY explicit vector(const allocator_type& __a)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:515:14: note: candidate constructor not viable: requires single argument '__n', but 4 arguments were provided
explicit vector(size_type __n);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:559:5: note: candidate constructor not viable: requires single argument '__x', but 4 arguments were provided
vector(const vector& __x);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:566:5: note: candidate constructor not viable: requires single argument '__il', but 4 arguments were provided
vector(initializer_list<value_type> __il);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:572:5: note: candidate constructor not viable: requires single argument '__x', but 4 arguments were provided
vector(vector&& __x)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:497:5: note: candidate constructor not viable: requires 0 arguments, but 4 were provided
vector() _NOEXCEPT_(is_nothrow_default_constructible<allocator_type>::value)
^
core/primitives.cpp:476:27: error: cannot increment value of type 'std::vector<std::array<glm::vec<3, float, glm::packed_highp>, 3>>::iterator' (aka '__wrap_iter<std::array<glm::vec<3, float, glm::packed_highp>, 3> *>')
for (const auto& face : faces) {
^
core/primitives.cpp:476:29: note: in implicit call to 'operator++' for iterator of type 'std::vector<std::array<Vec3, 3>>' (aka 'vector<array<vec<3, float, defaultp>, 3>>')
for (const auto& face : faces) {
^~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:625:54: note: selected 'begin' function with iterator type 'std::vector<std::array<glm::vec<3, float, glm::packed_highp>, 3>>::iterator' (aka '__wrap_iter<std::array<glm::vec<3, float, glm::packed_highp>, 3> *>')
_LIBCPP_INLINE_VISIBILITY iterator begin() _NOEXCEPT;
^
7 errors generated.
make: *** [core/primitives.o] Error 1
make: *** Waiting for unfinished jobs....
ERROR: compilation failed for package ‘scimesh’
* removing ‘/Volumes/Builds/packages/big-sur-arm64/results/4.5/scimesh.Rcheck/scimesh’