> Sys.which(“make”)
Sys.which(“make”)
make
“C:\rtools40\usr\bin\make.exe”
> system(“touch foo.cpp”)
system(“touch foo.cpp”)
[1] 0
> system(“R CMD SHLIB foo.cpp”)
"C:/rtools40/mingw64/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-40~1.4/include" -DNDEBUG -I"D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/Rcpp/include/" -I"D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/" -I"D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/unsupported" -I"D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/BH/include" -I"D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/StanHeaders/include/src/" -I"D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/StanHeaders/include/" -I"D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppParallel/include/" -DRCPP_PARALLEL_USE_TBB=1 -I"D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/rstan/include" -DEIGEN_NO_DEBUG -DBOOST_DISABLE_ASSERTS -DBOOST_PENDING_INTEGER_LOG2_HPP -DSTAN_THREADS -DUSE_STANC3 -DSTRICT_R_HEADERS -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -DBOOST_NO_AUTO_PTR -include "D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/StanHeaders/include/stan/math/prim/fun/Eigen.hpp" -std=c++1y -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c foo.cpp -o foo.o
In file included from D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/Core:397,
from D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/Dense:1,
from D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22,
from :
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/SSE/PacketMath.h:60:39: warning: ignoring attributes on template argument ‘__m128’ {aka ‘__vector(4) float’} [-Wignored-attributes]
template<> struct is_arithmetic<__m128> { enum { value = true }; };
^
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/SSE/PacketMath.h:61:40: warning: ignoring attributes on template argument ‘__m128i’ {aka ‘__vector(2) long long int’} [-Wignored-attributes]
template<> struct is_arithmetic<__m128i> { enum { value = true }; };
^
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/SSE/PacketMath.h:62:40: warning: ignoring attributes on template argument ‘__m128d’ {aka ‘__vector(2) double’} [-Wignored-attributes]
template<> struct is_arithmetic<__m128d> { enum { value = true }; };
^
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/SSE/PacketMath.h:161:43: warning: ignoring attributes on template argument ‘Eigen::internal::Packet4f’ {aka ‘__vector(4) float’} [-Wignored-attributes]
template<> struct unpacket_traits { typedef float type; enum {size=4, alignment=Aligned16}; typedef Packet4f half; };
^
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/SSE/PacketMath.h:162:43: warning: ignoring attributes on template argument ‘Eigen::internal::Packet2d’ {aka ‘__vector(2) double’} [-Wignored-attributes]
template<> struct unpacket_traits { typedef double type; enum {size=2, alignment=Aligned16}; typedef Packet2d half; };
^
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/SSE/PacketMath.h:163:43: warning: ignoring attributes on template argument ‘Eigen::internal::Packet4i’ {aka ‘__vector(2) long long int’} [-Wignored-attributes]
template<> struct unpacket_traits { typedef int type; enum {size=4, alignment=Aligned16}; typedef Packet4i half; };
^
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/SSE/PacketMath.h:718:35: warning: ignoring attributes on template argument ‘Eigen::internal::Packet4f’ {aka ‘__vector(4) float’} [-Wignored-attributes]
struct palign_impl<Offset,Packet4f>
^
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/SSE/PacketMath.h:741:35: warning: ignoring attributes on template argument ‘Eigen::internal::Packet4i’ {aka ‘__vector(2) long long int’} [-Wignored-attributes]
struct palign_impl<Offset,Packet4i>
^
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/SSE/PacketMath.h:764:35: warning: ignoring attributes on template argument ‘Eigen::internal::Packet2d’ {aka ‘__vector(2) double’} [-Wignored-attributes]
struct palign_impl<Offset,Packet2d>
^
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/SSE/PacketMath.h:778:34: warning: ignoring attributes on template argument ‘Eigen::internal::Packet4f’ {aka ‘__vector(4) float’} [-Wignored-attributes]
ptranspose(PacketBlock<Packet4f,4>& kernel) {
^
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/SSE/PacketMath.h:783:34: warning: ignoring attributes on template argument ‘Eigen::internal::Packet2d’ {aka ‘__vector(2) double’} [-Wignored-attributes]
ptranspose(PacketBlock<Packet2d,2>& kernel) {
^
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/SSE/PacketMath.h:790:34: warning: ignoring attributes on template argument ‘Eigen::internal::Packet4i’ {aka ‘__vector(2) long long int’} [-Wignored-attributes]
ptranspose(PacketBlock<Packet4i,4>& kernel) {
^
In file included from D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/Core:377,
from D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/Dense:1,
from D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22,
from :
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/Default/ConjHelper.h:15:70: warning: ignoring attributes on template argument ‘Eigen::internal::Packet4f’ {aka ‘__vector(4) float’} [-Wignored-attributes]
template<> struct conj_helper<PACKET_REAL, PACKET_CPLX, false,false> {
^
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/SSE/Complex.h:232:1: note: in expansion of macro ‘EIGEN_MAKE_CONJ_HELPER_CPLX_REAL’
EIGEN_MAKE_CONJ_HELPER_CPLX_REAL(Packet2cf,Packet4f)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/Default/ConjHelper.h:22:70: warning: ignoring attributes on template argument ‘Eigen::internal::Packet4f’ {aka ‘__vector(4) float’} [-Wignored-attributes]
template<> struct conj_helper<PACKET_CPLX, PACKET_REAL, false,false> {
^
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/SSE/Complex.h:232:1: note: in expansion of macro ‘EIGEN_MAKE_CONJ_HELPER_CPLX_REAL’
EIGEN_MAKE_CONJ_HELPER_CPLX_REAL(Packet2cf,Packet4f)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/Default/ConjHelper.h:15:70: warning: ignoring attributes on template argument ‘Eigen::internal::Packet2d’ {aka ‘__vector(2) double’} [-Wignored-attributes]
template<> struct conj_helper<PACKET_REAL, PACKET_CPLX, false,false> {
^
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/SSE/Complex.h:417:1: note: in expansion of macro ‘EIGEN_MAKE_CONJ_HELPER_CPLX_REAL’
EIGEN_MAKE_CONJ_HELPER_CPLX_REAL(Packet1cd,Packet2d)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/Default/ConjHelper.h:22:70: warning: ignoring attributes on template argument ‘Eigen::internal::Packet2d’ {aka ‘__vector(2) double’} [-Wignored-attributes]
template<> struct conj_helper<PACKET_CPLX, PACKET_REAL, false,false> {
^
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/arch/SSE/Complex.h:417:1: note: in expansion of macro ‘EIGEN_MAKE_CONJ_HELPER_CPLX_REAL’
EIGEN_MAKE_CONJ_HELPER_CPLX_REAL(Packet1cd,Packet2d)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/Core:370,
from D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/Dense:1,
from D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22,
from :
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/util/XprHelper.h: In instantiation of ‘struct Eigen::internal::find_best_packet<float, 4>’:
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/Matrix.h:22:57: required from ‘struct Eigen::internal::traits<Eigen::Matrix<float, 4, 1> >’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Geometry/Quaternion.h:242:7: required from ‘struct Eigen::internal::traits<Eigen::Quaternion >’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Geometry/arch/Geometry_SSE.h:24:46: required from here
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:187:44: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits::type’ {aka ‘__vector(4) float’} [-Wignored-attributes]
bool Stop = Size==Dynamic || (Size%unpacket_traits::size)==0 || is_same<PacketType,typename unpacket_traits::half>::value>
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:187:83: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits::type’ {aka ‘__vector(4) float’} [-Wignored-attributes]
bool Stop = Size==Dynamic || (Size%unpacket_traits::size)==0 || is_same<PacketType,typename unpacket_traits::half>::value>
~^~~~~
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:187:83: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits::type’ {aka ‘__vector(4) float’} [-Wignored-attributes]
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:187:83: warning: ignoring attributes on template argument ‘Eigen::internal::unpacket_traits<__vector(4) float>::half’ {aka ‘__vector(4) float’} [-Wignored-attributes]
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:205:88: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits::type’ {aka ‘__vector(4) float’} [-Wignored-attributes]
typedef typename find_best_packet_helper<Size,typename packet_traits::type>::type type;
^~~~
In file included from D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/Core:439,
from D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/Dense:1,
from D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22,
from :
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h: In instantiation of ‘class Eigen::DenseCoeffsBase<Eigen::Matrix<float, 4, 1>, 0>’:
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h:300:7: required from ‘class Eigen::DenseCoeffsBase<Eigen::Matrix<float, 4, 1>, 1>’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h:551:7: required from ‘class Eigen::DenseCoeffsBase<Eigen::Matrix<float, 4, 1>, 3>’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/DenseBase.h:41:34: required from ‘class Eigen::DenseBase<Eigen::Matrix<float, 4, 1> >’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/MatrixBase.h:48:34: required from ‘class Eigen::MatrixBase<Eigen::Matrix<float, 4, 1> >’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:98:7: required from ‘class Eigen::PlainObjectBase<Eigen::Matrix<float, 4, 1> >’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/Matrix.h:178:7: required from ‘class Eigen::Matrix<float, 4, 1>’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Geometry/Quaternion.h:46:50: required from ‘class Eigen::QuaternionBase<Eigen::Quaternion >’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Geometry/Quaternion.h:250:7: required from ‘class Eigen::Quaternion’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Geometry/arch/Geometry_SSE.h:27:3: required from here
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h:55:30: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits::type’ {aka ‘__vector(4) float’} [-Wignored-attributes]
>::type PacketReturnType;
^~~~~~~~~~~~~~~~
In file included from D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/Core:370,
from D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/Dense:1,
from D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22,
from :
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/util/XprHelper.h: In instantiation of ‘struct Eigen::internal::find_best_packet<double, 4>’:
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/Matrix.h:22:57: required from ‘struct Eigen::internal::traits<Eigen::Matrix<double, 4, 1> >’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Geometry/Quaternion.h:242:7: required from ‘struct Eigen::internal::traits<Eigen::Quaternion >’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Geometry/arch/Geometry_SSE.h:88:47: required from here
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:187:44: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits::type’ {aka ‘__vector(2) double’} [-Wignored-attributes]
bool Stop = Size==Dynamic || (Size%unpacket_traits::size)==0 || is_same<PacketType,typename unpacket_traits::half>::value>
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:187:83: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits::type’ {aka ‘__vector(2) double’} [-Wignored-attributes]
bool Stop = Size==Dynamic || (Size%unpacket_traits::size)==0 || is_same<PacketType,typename unpacket_traits::half>::value>
~^~~~~
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:187:83: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits::type’ {aka ‘__vector(2) double’} [-Wignored-attributes]
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:187:83: warning: ignoring attributes on template argument ‘Eigen::internal::unpacket_traits<__vector(2) double>::half’ {aka ‘__vector(2) double’} [-Wignored-attributes]
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:205:88: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits::type’ {aka ‘__vector(2) double’} [-Wignored-attributes]
typedef typename find_best_packet_helper<Size,typename packet_traits::type>::type type;
^~~~
In file included from D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/Core:439,
from D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/Dense:1,
from D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22,
from :
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h: In instantiation of ‘class Eigen::DenseCoeffsBase<Eigen::Matrix<double, 4, 1>, 0>’:
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h:300:7: required from ‘class Eigen::DenseCoeffsBase<Eigen::Matrix<double, 4, 1>, 1>’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h:551:7: required from ‘class Eigen::DenseCoeffsBase<Eigen::Matrix<double, 4, 1>, 3>’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/DenseBase.h:41:34: required from ‘class Eigen::DenseBase<Eigen::Matrix<double, 4, 1> >’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/MatrixBase.h:48:34: required from ‘class Eigen::MatrixBase<Eigen::Matrix<double, 4, 1> >’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:98:7: required from ‘class Eigen::PlainObjectBase<Eigen::Matrix<double, 4, 1> >’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/Matrix.h:178:7: required from ‘class Eigen::Matrix<double, 4, 1>’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Geometry/Quaternion.h:46:50: required from ‘class Eigen::QuaternionBase<Eigen::Quaternion >’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Geometry/Quaternion.h:250:7: required from ‘class Eigen::Quaternion’
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Geometry/arch/Geometry_SSE.h:92:3: required from here
D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h:55:30: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits::type’ {aka ‘__vector(2) double’} [-Wignored-attributes]
>::type PacketReturnType;
^~~~~~~~~~~~~~~~
C:/rtools40/mingw64/bin/g++ -std=gnu++11 -shared -s -static-libgcc -o foo.dll tmp.def foo.o D:/Users/Carlos Zarzar/Documents/R/win-library/4.0/rstan/lib/x64/libStanServices.a -LD:/Users/Carlos Zarzar/Documents/R/win-library/4.0/StanHeaders/libs/x64 -lStanHeaders -LD:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppParallel/lib/x64 -ltbb -LD:/Users/Carlos Zarzar/Documents/R/win-library/4.0/RcppParallel/lib/x64 -ltbb -ltbbmalloc -LC:/PROGRA~1/R/R-40~1.4/bin/x64 -lR
g++.exe: error: Zarzar/Documents/R/win-library/4.0/RcppParallel/lib/x64: No such file or directory
[1] 0