lep / jhcr

A compiler to allow hot code reload in WarCraft 3
https://www.hiveworkshop.com/threads/jass-hot-code-reload.313811/
GNU Lesser General Public License v3.0
31 stars 2 forks source link

Linux executable #1

Open fe3dback opened 5 years ago

fe3dback commented 5 years ago

Hi, how to compile this to ubuntu? I want try this with wurstscript on wine.

I try make install, make jhcr, etc, with no result.

Current progress:

make jhcr
~/.cabal/bin/cabal v1-exec -- ghc  convert
[3 of 5] Compiling Jass.Parser      ( Jass/Parser.hs, Jass/Parser.o )

Jass/Parser.hs:23:1: error:
    Could not find module ‘Text.Megaparsec’
    Use -v to see a list of the files searched for.
   |
23 | import Text.Megaparsec
   | ^^^^^^^^^^^^^^^^^^^^^^

Jass/Parser.hs:24:1: error:
    Could not find module ‘Text.Megaparsec.Char’
    Perhaps you meant Text.Parsec.Char (from parsec-3.1.13.0)
    Use -v to see a list of the files searched for.
   |
24 | import Text.Megaparsec.Char
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Jass/Parser.hs:25:1: error:
    Could not find module ‘Text.Megaparsec.Char.Lexer’
    Use -v to see a list of the files searched for.
   |
25 | import qualified Text.Megaparsec.Char.Lexer as L
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Jass/Parser.hs:27:1: error:
    Could not find module ‘Control.Monad.Combinators.Expr’
    Use -v to see a list of the files searched for.
   |
27 | import Control.Monad.Combinators.Expr
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
make: *** [GNUmakefile:43: convert] Error 1

p.s. i do not know anything about cabal and haskel.

lep commented 5 years ago

I think it's important that you have installed ghc 8.6.3. If that is the case a simple make init followed by make should suffice.

Am 15. Mai 2019 00:27:09 MESZ schrieb Konstantin notifications@github.com:

Hi, how to compile this to ubuntu? I want try this with wurstscript with wine. >

I try make install, make jhcr, etc, with no result.>

Current progress:>


make jhcr>
~/.cabal/bin/cabal v1-exec -- ghc  convert>
[3 of 5] Compiling Jass.Parser      ( Jass/Parser.hs, Jass/Parser.o )>

Jass/Parser.hs:23:1: error:>
Could not find module ‘Text.Megaparsec’>
Use -v to see a list of the files searched for.>
|>
23 | import Text.Megaparsec>
| ^^^^^^^^^^^^^^^^^^^^^^>

Jass/Parser.hs:24:1: error:>
Could not find module ‘Text.Megaparsec.Char’>
Perhaps you meant Text.Parsec.Char (from parsec-3.1.13.0)>
Use -v to see a list of the files searched for.>
|>
24 | import Text.Megaparsec.Char>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^>

Jass/Parser.hs:25:1: error:>
Could not find module ‘Text.Megaparsec.Char.Lexer’>
Use -v to see a list of the files searched for.>
|>
25 | import qualified Text.Megaparsec.Char.Lexer as L>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^>

Jass/Parser.hs:27:1: error:>
Could not find module ‘Control.Monad.Combinators.Expr’>
Use -v to see a list of the files searched for.>
|>
27 | import Control.Monad.Combinators.Expr>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^>
make: *** [GNUmakefile:43: convert] Error 1>
```>

p.s. i do not know anything about cabal and haskel.>

-- >
You are receiving this because you are subscribed to this thread.>
Reply to this email directly or view it on GitHub:>
https://github.com/lep/jhcr/issues/1
fe3dback commented 5 years ago

look like some of packages is not installed. No idea hot to fix this :)

What i have now:

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.6.3
$ cabal --version
cabal-install version 2.4.1.0
compiled using version 2.4.1.0 of the Cabal library 
$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
$ git log
commit 083d660d0906825b09f17d054684706b72f9338e (HEAD -> master, origin/master, origin/HEAD)
Author: lep <lep.delete@googlemail.com>
Date:   Thu Apr 25 00:55:18 2019 +0200

    Now uses Int16 to store jass types.

Try to make:

$ make
cabal v1-exec -- ghc  convert
[1 of 5] Compiling Data.Composeable ( Data/Composeable.hs, Data/Composeable.o )

Data/Composeable.hs:3:8: error:
    Could not find module ‘Prelude’
    Use -v to see a list of the files searched for.
  |
3 | module Data.Composeable
  |        ^^^^^^^^^^^^^^^^

Data/Composeable.hs:12:1: error:
    Could not find module ‘Data.Monoid’
    Use -v to see a list of the files searched for.
   |
12 | import Data.Monoid
   | ^^^^^^^^^^^^^^^^^^

Data/Composeable.hs:13:1: error:
    Could not find module ‘Control.Applicative’
    Use -v to see a list of the files searched for.
   |
13 | import Control.Applicative
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/Composeable.hs:14:1: error:
    Could not find module ‘Control.Monad.Identity’
    Use -v to see a list of the files searched for.
   |
14 | import Control.Monad.Identity
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/Composeable.hs:15:1: error:
    Could not find module ‘Control.Monad.Writer’
    Use -v to see a list of the files searched for.
   |
15 | import Control.Monad.Writer
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
make: *** [GNUmakefile:43: convert] Error 1
$ make init
cabal v1-sandbox init
Writing a default package environment file to
/home/neo/.wurst/tools/jhcr/cabal.sandbox.config
Creating a new sandbox at /home/fe3d/.wurst/tools/jhcr/.cabal-sandbox
cabal v1-install megaparsec lens optparse-applicative file-embed gitrev \
                     lca hashable dlist
<command line>: unknown package: rts
make: *** [GNUmakefile:59: init] Error 1
lep commented 5 years ago

Once cabal install was run successfully, make should also work. Try executing a cabal update and then maybe running the install by hand à la cabal v1-install megaparsec lens optparse-applicative file-embed gitrev lca hashable dlist

I have no idea what the error unknown package: rts means as i have never got it myself.

Am 15.05.2019 um 23:59 schrieb Konstantin:

look like some of packages is not installed. No idea hot to fix this :)

What i have now:

|$ ghc --version The Glorious Glasgow Haskell Compilation System, version 8.6.3 |

|$ cabal --version cabal-install version 2.4.1.0 compiled using version 2.4.1.0 of the Cabal library |

|$ git status On branch master Your branch is up to date with 'origin/master'. nothing to commit, working tree clean |

|$ git log commit 083d660d0906825b09f17d054684706b72f9338e (HEAD -> master, origin/master, origin/HEAD) Author: lep lep.delete@googlemail.com Date: Thu Apr 25 00:55:18 2019 +0200 Now uses Int16 to store jass types. |

Try to make:

|$ make cabal v1-exec -- ghc convert [1 of 5] Compiling Data.Composeable ( Data/Composeable.hs, Data/Composeable.o ) Data/Composeable.hs:3:8: error: Could not find module ‘Prelude’ Use -v to see a list of the files searched for. | 3 | module Data.Composeable | ^^^^^^^^^^^^^^^^ Data/Composeable.hs:12:1: error: Could not find module ‘Data.Monoid’ Use -v to see a list of the files searched for. | 12 | import Data.Monoid | ^^^^^^^^^^^^^^^^^^ Data/Composeable.hs:13:1: error: Could not find module ‘Control.Applicative’ Use -v to see a list of the files searched for. | 13 | import Control.Applicative | ^^^^^^^^^^^^^^^^^^^^^^^^^^ Data/Composeable.hs:14:1: error: Could not find module ‘Control.Monad.Identity’ Use -v to see a list of the files searched for. | 14 | import Control.Monad.Identity | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Data/Composeable.hs:15:1: error: Could not find module ‘Control.Monad.Writer’ Use -v to see a list of the files searched for. | 15 | import Control.Monad.Writer | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ make: *** [GNUmakefile:43: convert] Error 1 |

|$ make init cabal v1-sandbox init Writing a default package environment file to /home/neo/.wurst/tools/jhcr/cabal.sandbox.config Creating a new sandbox at /home/fe3d/.wurst/tools/jhcr/.cabal-sandbox cabal v1-install megaparsec lens optparse-applicative file-embed gitrev \ lca hashable dlist : unknown package: rts make: *** [GNUmakefile:59: init] Error 1 |

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lep/jhcr/issues/1?email_source=notifications&email_token=AAA3SWOCXMPOVAEX4L3L4GTPVSBURA5CNFSM4HM6EZUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVQCD3A#issuecomment-492839404, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA3SWKBMYSSEZ5F6FMQKQLPVSBURANCNFSM4HM6EZUA.