Coder Social home page Coder Social logo

Comments (3)

Rahix avatar Rahix commented on September 6, 2024

Hm, I know that in the past, a lot of the floating point methods didn't exist in libcore so you couldn't call them in the first place. The solution back then was to use the libm crate instead which has replacement implementations. libm::fminf() in your case...

But as your program is failing at the linker stage instead of simply erroring on a missing f32::min() method, it seems something has changed here. Maybe another compiler-builtins topic? @Patryk27, do you have any idea?

from avr-hal.

Patryk27 avatar Patryk27 commented on September 6, 2024

I've just checked and the code compiles correctly on my machine - could you run avr-gcc --version and post the result? Maybe you're using an older avr-gcc which didn't yet have float intrinsics for AVR.

(for comparison, I'm on avr-gcc (Homebrew AVR GCC 9.4.0) 9.4.0)

from avr-hal.

MichalOp avatar MichalOp commented on September 6, 2024

It looks like this was the issue, thank you. I was using avr-gcc 5.4.0 - which is the default one installed via apt for Ubuntu, and I guess it is too old.

After I compiled gcc 13.2.0 from source for avr (I also compiled avr-libc 2.1.0 for good measure), the program compiled and ran without issues.

from avr-hal.

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.