Coder Social home page Coder Social logo

gcc 4.8.5 compatibility about cpp11 HOT 8 CLOSED

r-lib avatar r-lib commented on July 28, 2024
gcc 4.8.5 compatibility

from cpp11.

Comments (8)

stefanoborini avatar stefanoborini commented on July 28, 2024 4

When is a new release going to be available for this fix?

from cpp11.

yousefi138 avatar yousefi138 commented on July 28, 2024

I'm having the same issue. Also on CentOS. Also trying to install tidyr.

Suggestions would be appreciated.

from cpp11.

jimhester avatar jimhester commented on July 28, 2024

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.

VincentGardeux avatar VincentGardeux commented on July 28, 2024

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.

yousefi138 avatar yousefi138 commented on July 28, 2024

I'm on:
CentOS Linux release 7.7.1908

On the exact same version of C++ as @VincentGardeux

from cpp11.

jimhester avatar jimhester commented on July 28, 2024

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.

VincentGardeux avatar VincentGardeux commented on July 28, 2024

Very good catch @jimhester it works for me.
It also solves the installation of other packages.

Thanks!

from cpp11.

jimhester avatar jimhester commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.