Unable to install on Windows; passes c++0x instead of c++11
See original GitHub issueI am on Windows 7 64bit using Rtools 3.3.0 v1959, and can build R (building R-patched_2016-03-28) and pretty much every package from source successfully. However, when trying to install feather via devtools, I get the following. Please note that somehow, c++0x is being passed even though my .R/Makevars has CXXFLAGS = -std=c++11 (which manifests properly in every other package, such as Rcpp). Would that have anything to do with the issue?
Also, as it seems to have an issue with api.h, does it matter that the file is actually at “feather/cpp/src/feather/api.h” and not in the feather/R subdirectory?
Thank you.
> devtools::install_github("wesm/feather/R")
Downloading GitHub repo wesm/feather@master
from URL https://api.github.com/repos/wesm/feather/zipball/master
Installing feather
"F:/R/RCurrent/R-32~1.4PA/bin/x64/R" --no-site-file --no-environ --no-save --no-restore CMD INSTALL \
"F:/R/tmp/Rtmp8WR3lV/devtools52e047974bda/wesm-feather-a58e3be/R" --library="F:/R/RCurrent/R-3.2.4patched/library" --install-tests
* installing *source* package 'feather' ...
**********************************************
WARNING: this package has a configure script
It probably needs manual configuration
**********************************************
** libs
F:/R/Rtools/mingw_64/bin/g++ -std=c++0x -I"F:/R/RCurrent/R-32~1.4PA/include" -DNDEBUG -I. -march=native -pipe -I"F:/R/RCurrent/R-3.2.4patched/library/Rcpp/include" -I"F:/R/RLocalSoft/include" -O2 -Wall -march=native -pipe -c RcppExports.cpp -o RcppExports.o
F:/R/Rtools/mingw_64/bin/g++ -std=c++0x -I"F:/R/RCurrent/R-32~1.4PA/include" -DNDEBUG -I. -march=native -pipe -I"F:/R/RCurrent/R-3.2.4patched/library/Rcpp/include" -I"F:/R/RLocalSoft/include" -O2 -Wall -march=native -pipe -c feather-read.cpp -o feather-read.o
feather-read.cpp:4:25: fatal error: feather/api.h: No such file or directory
#include "feather/api.h"
^
compilation terminated.
make: *** [feather-read.o] Error 1
Warning: running command 'make -f "Makevars" -f "F:/R/RCurrent/R-32~1.4PA/etc/x64/Makeconf" -f "F:/R/RCurrent/R-32~1.4PA/share/make/winshlib.mk" -f "E:/Users/Parents/Documents/.R/Makevars" CXX='$(CXX1X) $(CXX1XSTD)' CXXFLAGS='$(CXX1XFLAGS)' CXXPICFLAGS='$(CXX1XPICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX1XLDFLAGS)' SHLIB_LD='$(SHLIB_CXX1XLD)' SHLIB="feather.dll" WIN=64 TCLBIN=64 ' had status 2
ERROR: compilation failed for package 'feather'
* removing 'F:/R/RCurrent/R-3.2.4patched/library/feather'
Error: Command failed (1)
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Install C11 and C17 support in Visual Studio - Microsoft Learn
Install Windows SDK and CRT support for C11 and C17 in Visual Studio.
Read more >Get help with Windows upgrade and installation errors
See some of the most common upgrade and installation errors for Windows 10 and Windows 11, and what you can do to try...
Read more >How to troubleshoot Windows Installer errors - Microsoft Support
Describes how to troubleshoot problems that occur when you install, uninstall, or upgrade a program on a Windows-based computer by using Windows Installer....
Read more >"Windows cannot access the specified device, path, or file ...
Method 2: Check the file location. You might get this error if the shortcut or installation is attempting to access a location that...
Read more >Xbox Game Pass PC I can't install games (error:0x00000001)
When i try to install games on Game Pass an error occur and says error code: 0x00000001.This problem started 2 days ago(April 8)....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I still think it is you. On my (non-Windows) system:
I have looked at length into how R gets these values, and invariable you get back to
RHOME/etc/Makeconf
. Unless you built R with g++ 4.9.3 you will havec++0x
here. And even if you did maybe R still gets this wrong on Windows as 4.9.3 is no new. But I (again) suggest you check yourMakeconf
file. Not the local override – the one R falls back to.@eddelbuettel I thought about on the rest of the ride home, and I think you are correct. There are too many issues going on in this one. As the two I started with are answered, I’ll close this and open a new one. Thank you and @wesm again!