Comments (8)
When is a new release going to be available for this fix?
from cpp11.
I'm having the same issue. Also on CentOS. Also trying to install tidyr.
Suggestions would be appreciated.
from cpp11.
cpp11 requires a compiler with full support for C++11
.
What version of CentOS are you using, and what version of GNU compiler? e.g. what is the value of g++ --version
from cpp11.
Hello @jimhester
As I said, I'm with CentOS 7
Here is the version of the C++ compiler:
$ g++ --version
g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
from cpp11.
I'm on:
CentOS Linux release 7.7.1908
On the exact same version of C++ as @VincentGardeux
from cpp11.
I think this is possibly due to a bug with parameter packs in variadic templates in older gcc versions like 4.8.5 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47226)
I reproduced the issue in a centos 7 docker container using gcc 4.8.5. I was then able to compile tidyr successfully after installing a newer gcc version from the devtoolset-7 software collection, following the instructions at https://linuxize.com/post/how-to-install-gcc-compiler-on-centos-7/#installing-multiple-gcc-versions
from cpp11.
Very good catch @jimhester it works for me.
It also solves the installation of other packages.
Thanks!
from cpp11.
Easy way to reproduce this is the following docker file.
FROM rstudio/r-base:4.0-centos7
RUN R -e 'install.packages("tidyr", repos = c(CRAN = "https://cloud.r-project.org"))'
from cpp11.
Related Issues (20)
- `cpp11::warning(const char*)` crashes but `cpp11::warning(const std::string&)` does not
- external_ptr issues HOT 2
- `as_integers` and `as_doubles` should understand logical inputs
- Nested `unwind_protect()` optimization isn't working correctly HOT 1
- Can't copy proxy elements between writable vectors
- Consider viability of relying on R's global string pool for CHARSXP protection in `r_string` HOT 1
- Is it possible to create an unnamed list? HOT 4
- cpp11 use of std::isnan or std::isinf returns random values when it shouldn't HOT 2
- External pointers and attributes HOT 1
- Unclear error when `r_string` is used as an argument HOT 3
- Support nullable `external_ptr<>` HOT 1
- How to pass parameters in .R file to cpp11 function in .cpp file HOT 1
- Clarify the necessary "move" w.r.t. `SystemRequirements: C++11` HOT 2
- Assigning an attribute to an empty vector in c++ produces an error HOT 3
- `package("<pkg>")` error if package namespace not found
- Release cpp11 0.4.4 HOT 4
- tests in 'tests/testthat.R' failed HOT 2
- Examples
- `unwind_protect()` global option is falsely assumed to be immutable HOT 1
- Nested `unwind_protect()` calls going through R can be very dangerous
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpp11.