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

test-sawcore fails to build #1558

Closed
RyanGlScott opened this issue Jan 26, 2022 · 0 comments · Fixed by #1708
Closed

test-sawcore fails to build #1558

RyanGlScott opened this issue Jan 26, 2022 · 0 comments · Fixed by #1708
Labels
subsystem: saw-core Issues related to the saw-core representation or the saw-core subsystem test assets Issues involving test programs or other test assets type: bug Issues reporting bugs or unexpected/unwanted behavior

Comments

@RyanGlScott
Copy link
Contributor

Building test-sawcore fails with:

$ cabal build test:test-sawcore
Build profile: -w ghc-8.10.7 -O1
In order, the following will be built (use -v for more details):
 - saw-core-0.1 (test:test-sawcore) (first run)
Preprocessing test suite 'test-sawcore' for saw-core-0.1..
Building test suite 'test-sawcore' for saw-core-0.1..
[3 of 5] Compiling Tests.Rewriter   ( tests/src/Tests/Rewriter.hs, /home/rscott/Documents/Hacking/Haskell/sandbox/saw-script/dist-newstyle/build/x86_64-linux/ghc-8.10.7/saw-core-0.1/t/test-sawcore/build/test-sawcore/test-sawcore-tmp/Tests/Rewriter.o )

tests/src/Tests/Rewriter.hs:39:40: error:
    • No instance for (Data.String.IsString (PrimName Term))
        arising from the literal ‘"Prelude.Nat"’
    • In the first argument of ‘mkDataType’, namely ‘"Prelude.Nat"’
      In the second argument of ‘scMkTerm’, namely
        ‘(mkDataType "Prelude.Nat" [] [])’
      In a stmt of a 'do' block:
        natType <- scMkTerm sc (mkDataType "Prelude.Nat" [] [])
   |
39 |     natType <- scMkTerm sc (mkDataType "Prelude.Nat" [] [])
   |                                        ^^^^^^^^^^^^^

tests/src/Tests/Rewriter.hs:41:31: error:
    • No instance for (Data.String.IsString (PrimName Term))
        arising from the literal ‘"Prelude.Bool"’
    • In the first argument of ‘mkDataType’, namely ‘"Prelude.Bool"’
      In the expression: mkDataType "Prelude.Bool" [] []
      In an equation for ‘boolType’:
          boolType = mkDataType "Prelude.Bool" [] []
   |
41 |     let boolType = mkDataType "Prelude.Bool" [] []
   |                               ^^^^^^^^^^^^^^

The most likely culprit is commit 33a4c37.

@RyanGlScott RyanGlScott added type: bug Issues reporting bugs or unexpected/unwanted behavior tooling: test infrastructure Issues involving test infrastructure or test execution, or making SAW more testable subsystem: saw-core Issues related to the saw-core representation or the saw-core subsystem labels Jan 26, 2022
@sauclovian-g sauclovian-g added test assets Issues involving test programs or other test assets and removed tooling: test infrastructure Issues involving test infrastructure or test execution, or making SAW more testable labels Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
subsystem: saw-core Issues related to the saw-core representation or the saw-core subsystem test assets Issues involving test programs or other test assets type: bug Issues reporting bugs or unexpected/unwanted behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants