Code Monkey home page Code Monkey logo

Comments (8)

jeroen avatar jeroen commented on August 30, 2024

That won't happen any time soon. I also doubt that this is a problem related to the compiler version.

If you want your package to build with R 4.0 or 4.1 on Windows you need to make it work with gcc 8.3.0 from rtools40
If you want your package to build with R 3.3 - 3.6 or lower on Windows, it has to work with gcc 4.9.3 from rtools35

I recommend you just try to fix the overflow.

from rtools-packages.

jeroen avatar jeroen commented on August 30, 2024

You could also try adding -Wno-array-bounds to the PKG_CXXFLAGS in your src/Makevars.win to suppress the warning, if you're lucky CRAN will allow that.

from rtools-packages.

nx10 avatar nx10 commented on August 30, 2024

I understand, thank you for your time.

For what its worth I also doubt it is a compiler problem. But its happening in an empty project with just the boost headers and exclusive to windows. Trying to upgrade GCC was just an attempt to collect evidence.

from rtools-packages.

jeroen avatar jeroen commented on August 30, 2024

Do you see the warning in both 32-bit and 64-bit windows?

from rtools-packages.

nx10 avatar nx10 commented on August 30, 2024

I don't see it for i386. How did you know?

from rtools-packages.

nx10 avatar nx10 commented on August 30, 2024

Just to let you know, shortly before losing my mind I stumbled on this stack overflow issue and finally fixed the issue.
Apparently GCC optimized the buffer class at O2 in a way the bounds checker did not like.
Turning the optimization level down to O1 for that a header fixed it (nx10/httpgd@dfb080e). I really hope CRAN will allow this.

Thank you for your time anyway.

from rtools-packages.

jeroen avatar jeroen commented on August 30, 2024

So it's a compiler bug in gcc 8.3.0? The issue mentions the problem on gcc 8.3.0 on Linux? So you should see the same issue in CentOS 8 or Debian 10, which all run gcc 8.3.0?

from rtools-packages.

nx10 avatar nx10 commented on August 30, 2024

I tested Debian 10 (g++ 8.3.0-6), it does not happen there. As far as I can tell it is exclusive for windows 64bit. I have no idea why.

from rtools-packages.

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.