X4R
X4R copied to clipboard
Unable to install X4R
Greetings,
X4R looks interesting. When I try to install it I get the following error. Am I doing something wrong?
OS = Windows 7
Thanks
library(httr) library(devtools) install_github('X4R', 'overcoil') Installing github repo(s) X4R/master from overcoil Downloading X4R.zip from https://github.com/overcoil/X4R/archive/master.zip Installing package from C:\Users\200005~1\AppData\Local\Temp\Rtmpsjcale/X4R.zip Installing X4R "C:/PROGRA~1/R/R-30~1.1/bin/i386/R" --vanilla CMD INSTALL
"C:\Users\200005135\AppData\Local\Temp\Rtmpsjcale\X4R-master"
--library="C:/Users/200005135/Documents/R/win-library/3.0" --with-keep.source --install-tests
- installing source package 'X4R' ... ** libs g++ -m32 -I"C:/PROGRA~1/R/R-30~1.1/include" -DNDEBUG -I. -I"C:/Users/200005135/Documents/R/win-library/3.0/Rcpp/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c X4R.cpp -o X4R.o In file included from c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/objbase.h:154:0, from c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/ole2.h:16, from c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/windows.h:94, from c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/winsock2.h:23, from stdsoap2.h:736, from soapStub.h:20, from soapH.h:13, from soapXmlaWebServiceSoapProxy.h:13, from X4R.h:22, from X4R.cpp:18: c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/objidl.h:598:52: error: macro "Realloc" requires 3 arguments, but only 2 given c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/objidl.h:598:56: error: ISO C++ forbids initialization of member 'Realloc' [-fpermissive] c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/objidl.h:598:56: error: making 'Realloc' static [-fpermissive] c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/objidl.h:598:56: error: invalid in-class initialization of static data member of non-integral type 'void_' c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/objidl.h:599:25: error: expected identifier before '(' token c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/objidl.h:599:25: error: 'parameter' declared as function returning a function c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/objidl.h:599:25: error: expected ')' before ',' token In file included from c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/msxml.h:209:0, from c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/urlmon.h:219, from c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/objbase.h:348, from c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/ole2.h:16, from c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/windows.h:94, from c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/winsock2.h:23, from stdsoap2.h:736, from soapStub.h:20, from soapH.h:13, from soapXmlaWebServiceSoapProxy.h:13, from X4R.h:22, from X4R.cpp:18: c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/oaidl.h:1890:28: error: expected identifier before '(' token c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/oaidl.h:1890:28: error: 'parameter' declared as function returning a function c:\r\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/oaidl.h:1890:28: error: expected ')' before ',' token make: *_* [X4R.o] Error 1 ERROR: compilation failed for package 'X4R'
- removing 'C:/Users/200005135/Documents/R/win-library/3.0/X4R' Error: Command failed (1)
There's a known bug with doing a source install. (See https://github.com/overcoil/X4R/issues/7.)
If you can use the pre-built binaries, do so. Otherwise, I will need to post the hack for issue 7.
Interesting behavior - I cannot use the !binary! package neither for my R-2.15.1 nor for the my R-3.1.0 installations (both on Windows 7 x64 and both R are x64 ! ).
Compilation using:
install.packages("devtools") library(devtools) install_github('X4R', 'overcoil')
Gives me for R 2.15.1 x64 this error:
soapC.cpp:43826:21: note: in expansion of macro 'SOAP_NEW_ARRAY'
{ cp->ptr = (void*)SOAP_NEW_ARRAY(std::vector<char * >, n);
^
g++ -m64 -I"C:/Users/Public/R-2.15.1/include" -DNDEBUG -I. -I"C:/Users/Public/R-2.15.1/library/Rcpp/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c soapXmlaWebServiceSoapProxy.cpp -o soapXmlaWebServiceSoapProxy.o
g++ -m64 -I"C:/Users/Public/R-2.15.1/include" -DNDEBUG -I. -I"C:/Users/Public/R-2.15.1/library/Rcpp/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c stdsoap2.cpp -o stdsoap2.o
g++ -m64 -shared -s -static-libgcc -o X4R.dll tmp.def X4R.o soapC.o soapXmlaWebServiceSoapProxy.o stdsoap2.o -LC:/Users/Public/R-2.15.1/library/Rcpp/libs/i386 -LC:/Users/Public/R-2.15.1/library/Rcpp/libs/x64 -lRcpp -lws2_32 -Ld:/RCompile/CRANpkg/extralibs64/local/lib/x64 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/Users/Public/R-2.15.1/bin/x64 -lR
/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible C:/Users/Public/R-2.15.1/library/Rcpp/libs/i386/Rcpp.dll when searching for -lRcpp
X4R.o:X4R.cpp:(.text+0x3072): undefined reference to Rcpp::Dimension::Dimension(unsigned long const&, unsigned long const&)' X4R.o:X4R.cpp:(.text+0x3072): relocation truncated to fit: R_X86_64_PC32 against undefined symbol
Rcpp::Dimension::Dimension(unsigned long const&, unsigned long const&)'
/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: X4R.o: bad reloc address 0x0 in section `.data'
collect2: error: ld returned 1 exit status
ERROR: compilation failed for package 'X4R'
- removing 'C:/Users/Public/R-2.15.1/library/X4R'
- restoring previous 'C:/Users/Public/R-2.15.1/library/X4R' Error: Command failed (1)
But succeeds for R 3.1.0 x64 and library X4R can be loaded ...
Hi,
Sorry for the problem. Hmm... that is odd. I have it working here on both 2.15.3 and 3.1 (x64).
I will look into the compilation problem again because that is the only reason why I posted the binaries. I would just as well have everyone do a build/install from the source.
George
On Mon, Jul 21, 2014 at 12:25 PM, ric [email protected] wrote:
Interesting behavior - I cannot use the !binary! package neither for my R-2.15.1 nor for the my R-3.1.0 installations (both on Windows 7 x64 and both R are x64 ! ). Compilation using:
install.packages("devtools")
library(devtools) install_github('X4R', 'overcoil')
Gives me for R 2.15.1 x64 this error:
soapC.cpp:43826:21: note: in expansion of macro 'SOAP_NEW_ARRAY' { cp->ptr = (void*)SOAP_NEW_ARRAY(std::vector, n); ^ g++ -m64 -I"C:/Users/Public/R-2.15.1/include" -DNDEBUG -I. -I"C:/Users/Public/R-2.15.1/library/Rcpp/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c soapXmlaWebServiceSoapProxy.cpp -o soapXmlaWebServiceSoapProxy.o g++ -m64 -I"C:/Users/Public/R-2.15.1/include" -DNDEBUG -I. -I"C:/Users/Public/R-2.15.1/library/Rcpp/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c stdsoap2.cpp -o stdsoap2.o g++ -m64 -shared -s -static-libgcc -o X4R.dll tmp.def X4R.o soapC.o soapXmlaWebServiceSoapProxy.o stdsoap2.o -LC:/Users/Public/R-2.15.1/library/Rcpp/libs/i386 -LC:/Users/Public/R-2.15.1/library/Rcpp/libs/x64 -lRcpp -lws2_32 -Ld:/RCompile/CRANpkg/extralibs64/local/lib/x64 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/Users/Public/R-2.15.1/bin/x64 -lR /usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible C:/Users/Public/R-2.15.1/library/Rcpp/libs/i386/Rcpp.dll when searching for -lRcpp X4R.o:X4R.cpp:(.text+0x3072): undefined reference to Rcpp::Dimension::Dimension(unsigned long const&, unsigned long const&)' X4R.o:X4R.cpp:(.text+0x3072): relocation truncated to fit: R_X86_64_PC32 against undefined symbolRcpp::Dimension::Dimension(unsigned long const&, unsigned long const&)' /usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: X4R.o: bad reloc address 0x0 in section `.data' collect2: error: ld returned 1 exit status
ERROR: compilation failed for package 'X4R'
- removing 'C:/Users/Public/R-2.15.1/library/X4R'
- restoring previous 'C:/Users/Public/R-2.15.1/library/X4R' Error: Command failed (1)
But succeeds for R 3.1.0 x64 and library X4R can be loaded ...
— Reply to this email directly or view it on GitHub https://github.com/overcoil/X4R/issues/8#issuecomment-49652915.
"Not everything that can be counted counts, and not everything that counts can be counted." Albert Einstein