Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't install on R 3.6 or R 4.0 #2

Open
adamkski opened this issue Jun 18, 2020 · 1 comment
Open

Won't install on R 3.6 or R 4.0 #2

adamkski opened this issue Jun 18, 2020 · 1 comment

Comments

@adamkski
Copy link

Super excited to try a hilbert mapping viz. I will follow this post with the error messages from installing in R 4.0. Not sure what might be the cause?

√ checking for file 'C:\Users\adam.kowalczewski\AppData\Local\Temp\RtmpE1MPIf\remotes1ec450f06252\hrbrmstr-hilbertv4-c3ca42a/DESCRIPTION' (1.4s)

  • preparing 'hilbertv4': (1.2s)
    √ checking DESCRIPTION meta-information ...
  • cleaning src
  • checking for LF line-endings in source and make files and shell scripts
  • checking for empty or unneeded directories
  • building 'hilbertv4_0.1.0.tar.gz'

Installing package into ‘C:/Users/adam.kowalczewski/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Applying site configuration...Done.

  • installing source package 'hilbertv4' ...
    ** using staged installation
    ** libs

*** arch - i386
C:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA1/R/R-361.1/include" -DNDEBUG -I"C:/Users/adam.kowalczewski/Documents/R/win-library/3.6/BH/include" -I"C:/Users/adam.kowalczewski/Documents/R/win-library/3.6/Rcpp/include" -I"C:/Users/adam.kowalczewski/Documents/R/win-library/3.6/AsioHeaders/include" -O2 -Wall -mtune=generic -c RcppExports.cpp -o RcppExports.o
C:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA1/R/R-361.1/include" -DNDEBUG -I"C:/Users/adam.kowalczewski/Documents/R/win-library/3.6/BH/include" -I"C:/Users/adam.kowalczewski/Documents/R/win-library/3.6/Rcpp/include" -I"C:/Users/adam.kowalczewski/Documents/R/win-library/3.6/AsioHeaders/include" -O2 -Wall -mtune=generic -c cidr-box.cpp -o cidr-box.o
C:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA1/R/R-361.1/include" -DNDEBUG -I"C:/Users/adam.kowalczewski/Documents/R/win-library/3.6/BH/include" -I"C:/Users/adam.kowalczewski/Documents/R/win-library/3.6/Rcpp/include" -I"C:/Users/adam.kowalczewski/Documents/R/win-library/3.6/AsioHeaders/include" -O2 -Wall -mtune=generic -c hilbertv4.cpp -o hilbertv4.o
C:/Rtools/mingw_32/bin/g++ -shared -s -static-libgcc -o hilbertv4.dll tmp.def RcppExports.o cidr-box.o hilbertv4.o -LC:/PROGRA1/R/R-361.1/bin/i386 -lR
cidr-box.o:cidr-box.cpp:(.text+0x1c1): undefined reference to _imp__WSACleanup@0' cidr-box.o:cidr-box.cpp:(.text+0x201): undefined reference to _imp__WSAStartup@8'
cidr-box.o:cidr-box.cpp:(.text+0x5f8): undefined reference to _imp__WSASetLastError@4' cidr-box.o:cidr-box.cpp:(.text+0x632): undefined reference to _imp__WSAStringToAddressA@20'
cidr-box.o:cidr-box.cpp:(.text+0x64e): undefined reference to _imp__WSAGetLastError@0' cidr-box.o:cidr-box.cpp:(.text+0x684): undefined reference to _imp__ntohl@4'
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'hilbertv4'

  • removing 'C:/Users/adam.kowalczewski/Documents/R/win-library/3.6/hilbertv4'
@adamkski
Copy link
Author

And here's the messages from R 4.0 (3.6 is what we are limited to at work).

√ checking for file 'C:\Users\kowal\AppData\Local\Temp\RtmpoPIk2x\remotes15f4426349ff\hrbrmstr-hilbertv4-c3ca42a/DESCRIPTION' (343ms)

  • preparing 'hilbertv4':
    √ checking DESCRIPTION meta-information ...
  • cleaning src
  • checking for LF line-endings in source and make files and shell scripts
  • checking for empty or unneeded directories
  • building 'hilbertv4_0.1.0.tar.gz'

Installing package into ‘C:/Users/kowal/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)

  • installing source package 'hilbertv4' ...
    ** using staged installation
    ** libs

*** arch - i386
"C:/rtools40/mingw32/bin/"g++ -std=gnu++11 -I"C:/PROGRA1/R/R-401.0/include" -DNDEBUG -I'C:/Users/kowal/Documents/R/win-library/4.0/BH/include' -I'C:/Users/kowal/Documents/R/win-library/4.0/Rcpp/include' -I'C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o
"C:/rtools40/mingw32/bin/"g++ -std=gnu++11 -I"C:/PROGRA1/R/R-401.0/include" -DNDEBUG -I'C:/Users/kowal/Documents/R/win-library/4.0/BH/include' -I'C:/Users/kowal/Documents/R/win-library/4.0/Rcpp/include' -I'C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c cidr-box.cpp -o cidr-box.o
In file included from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:28,
from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/shared_ptr.hpp:17,
from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/date_time/time_clock.hpp:17,
from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/date_time/posix_time/posix_time_types.hpp:10,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio/time_traits.hpp:23,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio/basic_deadline_timer.hpp:28,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio.hpp:22,
from cidr-box.cpp:9:
C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/smart_ptr/detail/shared_count.hpp:356:33: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
explicit shared_count( std::auto_ptr & r ): pi_( new sp_counted_impl_p( r.get() ) )
^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
from C:/Users/kowal/Documents/R/win-library/4.0/Rcpp/include/RcppCommon.h:52,
from C:/Users/kowal/Documents/R/win-library/4.0/Rcpp/include/Rcpp.h:27,
from cidr-box.cpp:3:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
In file included from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/shared_ptr.hpp:17,
from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/date_time/time_clock.hpp:17,
from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/date_time/posix_time/posix_time_types.hpp:10,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio/time_traits.hpp:23,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio/basic_deadline_timer.hpp:28,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio.hpp:22,
from cidr-box.cpp:9:
C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:256:65: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
from C:/Users/kowal/Documents/R/win-library/4.0/Rcpp/include/RcppCommon.h:52,
from C:/Users/kowal/Documents/R/win-library/4.0/Rcpp/include/Rcpp.h:27,
from cidr-box.cpp:3:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
In file included from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/shared_ptr.hpp:17,
from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/date_time/time_clock.hpp:17,
from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/date_time/posix_time/posix_time_types.hpp:10,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio/time_traits.hpp:23,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio/basic_deadline_timer.hpp:28,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio.hpp:22,
from cidr-box.cpp:9:
C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:471:31: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
explicit shared_ptr( std::auto_ptr & r ): px(r.get()), pn()
^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
from C:/Users/kowal/Documents/R/win-library/4.0/Rcpp/include/RcppCommon.h:52,
from C:/Users/kowal/Documents/R/win-library/4.0/Rcpp/include/Rcpp.h:27,
from cidr-box.cpp:3:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
In file included from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/shared_ptr.hpp:17,
from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/date_time/time_clock.hpp:17,
from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/date_time/posix_time/posix_time_types.hpp:10,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio/time_traits.hpp:23,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio/basic_deadline_timer.hpp:28,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio.hpp:22,
from cidr-box.cpp:9:
C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:484:22: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
shared_ptr( std::auto_ptr && r ): px(r.get()), pn()
^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
from C:/Users/kowal/Documents/R/win-library/4.0/Rcpp/include/RcppCommon.h:52,
from C:/Users/kowal/Documents/R/win-library/4.0/Rcpp/include/Rcpp.h:27,
from cidr-box.cpp:3:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
In file included from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/shared_ptr.hpp:17,
from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/date_time/time_clock.hpp:17,
from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/date_time/posix_time/posix_time_types.hpp:10,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio/time_traits.hpp:23,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio/basic_deadline_timer.hpp:28,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio.hpp:22,
from cidr-box.cpp:9:
C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:567:34: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr & r )
^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
from C:/Users/kowal/Documents/R/win-library/4.0/Rcpp/include/RcppCommon.h:52,
from C:/Users/kowal/Documents/R/win-library/4.0/Rcpp/include/Rcpp.h:27,
from cidr-box.cpp:3:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
In file included from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/shared_ptr.hpp:17,
from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/date_time/time_clock.hpp:17,
from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/date_time/posix_time/posix_time_types.hpp:10,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio/time_traits.hpp:23,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio/basic_deadline_timer.hpp:28,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio.hpp:22,
from cidr-box.cpp:9:
C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:576:34: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr && r )
^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
from C:/Users/kowal/Documents/R/win-library/4.0/Rcpp/include/RcppCommon.h:52,
from C:/Users/kowal/Documents/R/win-library/4.0/Rcpp/include/Rcpp.h:27,
from cidr-box.cpp:3:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
In file included from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/shared_ptr.hpp:17,
from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/date_time/time_clock.hpp:17,
from C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/date_time/posix_time/posix_time_types.hpp:10,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio/time_traits.hpp:23,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio/basic_deadline_timer.hpp:28,
from C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include/asio.hpp:22,
from cidr-box.cpp:9:
C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp: In member function 'boost::shared_ptr& boost::shared_ptr::operator=(std::auto_ptr<_Up>&&)':
C:/Users/kowal/Documents/R/win-library/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:578:38: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
this_type( static_cast< std::auto_ptr && >( r ) ).swap( this );
^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
from C:/Users/kowal/Documents/R/win-library/4.0/Rcpp/include/RcppCommon.h:52,
from C:/Users/kowal/Documents/R/win-library/4.0/Rcpp/include/Rcpp.h:27,
from cidr-box.cpp:3:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
cidr-box.cpp: In function 'int cidr_parse(const char
, unsigned int*, unsigned int*, int*)':
cidr-box.cpp:65:10: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 24 equals destination size [-Wstringop-truncation]
strncpy(cidr_copy, cidr, 24);

"C:/rtools40/mingw32/bin/"g++ -std=gnu++11  -I"C:/PROGRA~1/R/R-40~1.0/include" -DNDEBUG  -I'C:/Users/kowal/Documents/R/win-library/4.0/BH/include' -I'C:/Users/kowal/Documents/R/win-library/4.0/Rcpp/include' -I'C:/Users/kowal/Documents/R/win-library/4.0/AsioHeaders/include'        -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c hilbertv4.cpp -o hilbertv4.o
C:/rtools40/mingw32/bin/g++ -std=gnu++11 -shared -s -static-libgcc -o hilbertv4.dll tmp.def RcppExports.o cidr-box.o hilbertv4.o -LC:/PROGRA~1/R/R-40~1.0/bin/i386 -lR
C:/rtools40/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cidr-box.o:cidr-box.cpp:(.text+0x3a2): undefined reference to `_imp__WSACleanup@0'
C:/rtools40/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cidr-box.o:cidr-box.cpp:(.text+0x3e1): undefined reference to `_imp__WSAStartup@8'
C:/rtools40/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cidr-box.o:cidr-box.cpp:(.text+0x6d0): undefined reference to `_imp__WSASetLastError@4'
C:/rtools40/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cidr-box.o:cidr-box.cpp:(.text+0x70a): undefined reference to `_imp__WSAStringToAddressA@20'
C:/rtools40/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cidr-box.o:cidr-box.cpp:(.text+0x724): undefined reference to `_imp__WSAGetLastError@0'
C:/rtools40/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cidr-box.o:cidr-box.cpp:(.text+0x73b): undefined reference to `_imp__ntohl@4'
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'hilbertv4'
* removing 'C:/Users/kowal/Documents/R/win-library/4.0/hilbertv4'
Error: Failed to install 'hilbertv4' from GitHub:
(converted from warning) installation of package ‘C:/Users/kowal/AppData/Local/Temp/RtmpoPIk2x/file15f432beb41/hilbertv4_0.1.0.tar.gz’ had non-zero exit status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant