hashmap
hashmap copied to clipboard
Package fails to install on MacOS
devtools::install_github("nathan-russell/hashmap")
Downloading GitHub repo nathan-russell/hashmap@master
✓ checking for file ‘/private/var/folders/w8/r2f28p5153d8xcq_kb2__cxh0000gn/T/RtmpHy3cNA/remotes2602cab058e/nathan-russell-hashmap-39d547d/DESCRIPTION’ ...
─ preparing ‘hashmap’:
✓ 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 ‘hashmap_0.2.2.tar.gz’
* installing *source* package ‘hashmap’ ...
** using staged installation
** libs
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -DBOOST_NO_INT64_T -DBOOST_NO_INTEGRAL_INT64_T -DBOOST_NO_LONG_LONG -DNO_SPP_LONG_LONG -I../inst/include/hashmap -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c HashMapClass.cpp -o HashMapClass.o
In file included from HashMapClass.cpp:21:
In file included from ./../inst/include/hashmap/HashTemplate.hpp:25:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/unordered_map.hpp:12:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/config.hpp:57:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/config/platform/macos.hpp:28:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/config/detail/posix_features.hpp:18:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:655:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/gethostuuid.h:39:17: error: C++ requires a type specifier for all declarations
int gethostuuid(uuid_t, const struct timespec *) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_NA);
^
In file included from HashMapClass.cpp:21:
In file included from ./../inst/include/hashmap/HashTemplate.hpp:25:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/unordered_map.hpp:12:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/config.hpp:57:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/config/platform/macos.hpp:28:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/config/detail/posix_features.hpp:18:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:662:27: error: unknown type name 'uuid_t'; did you mean 'uid_t'?
int getsgroups_np(int *, uuid_t);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_uid_t.h:31:31: note: 'uid_t' declared here
typedef __darwin_uid_t uid_t;
^
In file included from HashMapClass.cpp:21:
In file included from ./../inst/include/hashmap/HashTemplate.hpp:25:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/unordered_map.hpp:12:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/config.hpp:57:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/config/platform/macos.hpp:28:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/config/detail/posix_features.hpp:18:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:664:27: error: unknown type name 'uuid_t'; did you mean 'uid_t'?
int getwgroups_np(int *, uuid_t);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_uid_t.h:31:31: note: 'uid_t' declared here
typedef __darwin_uid_t uid_t;
^
In file included from HashMapClass.cpp:21:
In file included from ./../inst/include/hashmap/HashTemplate.hpp:25:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/unordered_map.hpp:12:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/config.hpp:57:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/config/platform/macos.hpp:28:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/config/detail/posix_features.hpp:18:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:727:31: error: unknown type name 'uuid_t'; did you mean 'uid_t'?
int setsgroups_np(int, const uuid_t);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_uid_t.h:31:31: note: 'uid_t' declared here
typedef __darwin_uid_t uid_t;
^
In file included from HashMapClass.cpp:21:
In file included from ./../inst/include/hashmap/HashTemplate.hpp:25:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/unordered_map.hpp:12:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/config.hpp:57:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/config/platform/macos.hpp:28:
In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include/boost/config/detail/posix_features.hpp:18:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:729:31: error: unknown type name 'uuid_t'; did you mean 'uid_t'?
int setwgroups_np(int, const uuid_t);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_uid_t.h:31:31: note: 'uid_t' declared here
typedef __darwin_uid_t uid_t;
^
5 errors generated.
make: *** [HashMapClass.o] Error 1
ERROR: compilation failed for package ‘hashmap’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/hashmap’
Error: Failed to install 'hashmap' from GitHub:
(converted from warning) installation of package ‘/var/folders/w8/r2f28p5153d8xcq_kb2__cxh0000gn/T//RtmpHy3cNA/file260ff9c48b/hashmap_0.2.2.tar.gz’ had non-zero exit status
- R version 3.6.2 Patched (2020-02-10 r77792)
- Platform: x86_64-apple-darwin15.6.0 (64-bit)
- Apple clang version 11.0.0 (clang-1100.0.33.17)
Hi, I ran into the same issue running RStudio both on a Linux CentOS server and a Mac M1 machine. Did you manage to solve it? Thanks!