Skip to content

Build issues #42

Description

@jberryman

(I'm poking at this as part of the Hasura collaboration, hoping to experiment with frontends)

I've built the referenced ghc branch, but when i try to do:

cabal build all -w $(readlink -f ../ghc-for-ghc-debug/inplace/bin/ghc-stage2)

I'm getting a lot of errors like:

cbits/stub.cpp:76:46: error:
     error: ‘Task’ has not been declared
     void stopAllCapabilities (Capability **pCap, Task *task);
                                                  ^~~~
   |
76 | void stopAllCapabilities (Capability **pCap, Task *task);
   |                                              ^

cbits/stub.cpp:77:58: error:
     error: ‘Task’ has not been declared
     void releaseAllCapabilities(uint32_t n, Capability *cap, Task *task);
                                                              ^~~~
   |
77 | void releaseAllCapabilities(uint32_t n, Capability *cap, Task *task);
   |                                                          ^

cbits/stub.cpp:176:8: error:
     error: ‘RtsPaused’ does not name a type
     static RtsPaused r_paused;
            ^~~~~~~~~
    |
176 | static RtsPaused r_paused;
    |        ^
cbits/stub.cpp: In function ‘void pause_mutator()’:

cbits/stub.cpp:183:3: error:
     error: ‘r_paused’ was not declared in this scope
       r_paused = rts_pause();
       ^~~~~~~~
    |
183 |   r_paused = rts_pause();
    |   ^

I tried fiddling with include dirs but wasn't making much progress.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions