Giter Site home page Giter Site logo

verify 32-bit support about decimal HOT 4 OPEN

ericlagergren avatar ericlagergren commented on May 20, 2024
verify 32-bit support

from decimal.

Comments (4)

silviucm avatar silviucm commented on May 20, 2024

Hi Eric

Great library. There is a problem with compiling the package on ARM v7 32 bit on this board, which may be related to this issue you opened:

$ uname -a
Linux odroid2 4.14.13-1-ARCH #1 SMP PREEMPT Mon Jan 15 21:22:58 UTC 2018 armv7l GNU/Linux
$ go get github.com/ericlagergren/decimal
# github.com/ericlagergren/decimal
../github.com/ericlagergren/decimal/context.go:12:23: undefined: c.MaxScale

Note that if I cross-compile from a 64-bit linux to target Arm 32bit, it works without issues

Let me know if you need more info.

Cheers,
Silviu

from decimal.

ericlagergren avatar ericlagergren commented on May 20, 2024

Hmmm. That's fixable, it's just incorrect build tags it seems. Sorry about that, I didn't think of ARM when I set the build constants.

Testing compilation is easy enough (I can do it with GOOS and GOARCH), but I don't have any ARM devices I can test the actual implementation on. (If somebody wants to send me some old Androids or Raspberry Pis I'd be down to make sure the tests pass with flying colors.) I only have two 64-bit machines.

from decimal.

ericlagergren avatar ericlagergren commented on May 20, 2024

Ran it on a Raspberry Pi. Bunch of tests broke.

from decimal.

lrettig avatar lrettig commented on May 20, 2024

Note: this https://github.com/pguyot/arm-runner-action may help (it uses qemu). I'm using it successfully here: https://github.com/spacemeshos/economics/blob/main/.github/workflows/go.yml (works with arm64, but tests fail with 32 bit)

from decimal.

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.