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

No blackbox found for: GHC.Num.Integer.integerToFloat# #2342

Closed
martijnbastiaan opened this issue Oct 25, 2022 · 1 comment · Fixed by #2355
Closed

No blackbox found for: GHC.Num.Integer.integerToFloat# #2342

martijnbastiaan opened this issue Oct 25, 2022 · 1 comment · Fixed by #2355
Labels

Comments

@martijnbastiaan
Copy link
Member

Test case:

import Clash.Prelude
import Data.Proxy

foo :: forall n. KnownNat n => Proxy n -> Float
foo Proxy = natToNum @n
{-# NOINLINE foo #-}

topEntity :: Float
topEntity = foo @10 Proxy

Yields:

    Clash.Netlist.BlackBox(359): No blackbox found for: GHC.Num.Integer.integerToFloat#. Did you forget to include directories containing primitives? You can use '-i/my/prim/dir' to achieve this.
@christiaanb
Copy link
Member

We've released v1.8.0, which includes a fix for this issue.

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

Successfully merging a pull request may close this issue.

2 participants