Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error when using DecFP on 32-bit arm7l #69

Open
smartphoneworld opened this issue Apr 10, 2018 · 12 comments
Open

Build error when using DecFP on 32-bit arm7l #69

smartphoneworld opened this issue Apr 10, 2018 · 12 comments

Comments

@smartphoneworld
Copy link

On Debian Stretch ARM platform (Beaglebone):

`julia> Pkg.add("DecFP")
INFO: Installing DecFP v0.4.3
INFO: Building DecFP
=====================================================================[ ERROR: DecFP ]======================================================================

LoadError: Your platform arm-linux-gnueabihf is not supported by this package!
while loading /root/.julia/v0.6/DecFP/deps/build.jl, in expression starting on line 32

===========================================================================================================================================================

=====================================================================[ BUILD ERRORS ]======================================================================

WARNING: DecFP had build errors.

 - packages with build errors remain installed in /root/.julia/v0.6
 - build the package(s) and all dependencies with `Pkg.build("DecFP")`
 - build a single package by running its `deps/build.jl` script

===========================================================================================================================================================
INFO: Package database updated
INFO: METADATA is out-of-date — you may not have the latest version of DecFP
INFO: Use `Pkg.update()` to get the latest versions of your packages
`

screenshot 2018-04-10 21 09 46

@jmkuhn
Copy link
Contributor

jmkuhn commented Apr 10, 2018

DecFP is a wrapper for the Intel Decimal Floating-Point Math Library. It only supports the IA-32, Intel 64 and IA-64 architectures. It doesn't support ARM. There has been some interest #12 in wrapping the IBM decNumber library which would support ARM. @ScottPJones started looking at this at one time https://github.com/ScottPJones/Dec.jl

@stevengj
Copy link
Member

Which parts of the Intel library are Intel-specific? How hard would it be to port it to ARM, I wonder?

@ScottPJones
Copy link
Contributor

Yes, I haven't had time yet to get back to that - I'd wanted not to just wrap it, but to rewrite it in Julia for better flexibility.
I don't know what the licensing issues are with the Intel library, there's one nice thing about it, it supports the "bid" IEEE decimal float format (which is better for software implementations), while the IBM library supports the other format (which is better for hardware, and IBM has added hardware support for that format).

@simonbyrne
Copy link
Member

Perhaps try opening an issue at https://github.com/quinnj/DecFPBuilder

@stevengj
Copy link
Member

stevengj commented May 14, 2020

Note that this is now built at Yggdrasil (https://github.com/JuliaPackaging/Yggdrasil/blob/master/D/DecFP/build_tarballs.jl), not in the DecFPBuilder package. The binary releases are here: https://github.com/JuliaBinaryWrappers/DecFP_jll.jl

@stevengj
Copy link
Member

stevengj commented May 14, 2020

@jmkuhn
Copy link
Contributor

jmkuhn commented May 14, 2020

It compiles, but I think there are run time errors. I will look at this in the next few days.

@giordano
Copy link
Member

#133 adds CI for both armv7l and aarch64 with Drone CI

@stevengj
Copy link
Member

Is this still an issue?

@stevengj
Copy link
Member

Seems to be. Drone CI is failing with:

signal (11): Segmentation fault
127s
88	in expression starting at /drone/src/src/DecFP.jl:281
127s
89	__bid64_from_string at /root/.julia/artifacts/4d827acbd6c8d7227293f7b64c440ea3f6c2f4ec/lib/libbid.so (unknown line)
127s
90	Allocations: 8286312 (Pool: 8285410; Big: 902); GC: 23
127s
91	ERROR: LoadError: Failed to precompile DecFP [55939f99-70c6-5e9b-8bb0-5071ed7d61fd] to /root/.julia/compiled/v1.3/DecFP/QmCKT_9EaeH.ji.

@stevengj
Copy link
Member

Not sure if this was fixed by #91? Currently we aren't testing on 32-bit ARM (#154).

@jmkuhn
Copy link
Contributor

jmkuhn commented Mar 29, 2022

I'm out of town at the moment but later this week I can test 32-bit ARM locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants