conjure-cp / conjure

Conjure: The Automated Constraint Modelling Tool
Other
94 stars 20 forks source link

Installing with Make #592

Closed lixitrixi closed 9 months ago

lixitrixi commented 10 months ago

After cloning the repo and attempting to install with make, I got the following error output:


Error: [S-7282]
       Stack failed to execute the build plan.

       While executing the build plan, Stack encountered the following errors:

       [S-7011]
       While building package network-info-0.2.1 (scroll up to its section to see the error) using:
       /Users/felixleitner/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_6HauvNHV_3.8.1.0_ghc-9.4.7 --verbose=1 --builddir=.stack-work/dist/x86_64-osx/Cabal-3.8.1.0 build --ghc-options " -fdiagnostics-color=always"
       Process exited with code: ExitFailure 1 

       [S-7011]
       While building package network-3.1.4.0 (scroll up to its section to see the error) using:
       /private/var/folders/wg/mj2vr9qs7dz40gz1396fy7p80000gn/T/stack-1111ec93f0aaf11a/network-3.1.4.0/.stack-work/dist/x86_64-osx/Cabal-3.8.1.0/setup/setup --verbose=1 --builddir=.stack-work/dist/x86_64-osx/Cabal-3.8.1.0 build --ghc-options " -fdiagnostics-color=always"
       Process exited with code: ExitFailure 1 

       [S-7011]
       While building package clock-0.8.4 (scroll up to its section to see the error) using:
       /Users/felixleitner/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_6HauvNHV_3.8.1.0_ghc-9.4.7 --verbose=1 --builddir=.stack-work/dist/x86_64-osx/Cabal-3.8.1.0 build --ghc-options " -fdiagnostics-color=always"
       Process exited with code: ExitFailure 1 

       [S-7011]
       While building package basement-0.0.16 (scroll up to its section to see the error) using:
       /Users/felixleitner/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_6HauvNHV_3.8.1.0_ghc-9.4.7 --verbose=1 --builddir=.stack-work/dist/x86_64-osx/Cabal-3.8.1.0 build --ghc-options " -fdiagnostics-color=always"
       Process exited with code: ExitFailure 1 
make: *** [install] Error 1

Am I missing some installations?

ozgurakgun commented 10 months ago

I am not sure from this message. You could try nuking the previous haskell installations rm -rf ~/.cabal ~/.stack and git clean -dfx . in the repo and try make again.

lixitrixi commented 10 months ago

I am not sure from this message. You could try nuking the previous haskell installations rm -rf ~/.cabal ~/.stack and git clean -dfx . in the repo and try make again.

Just tried this and it's given me the same error code:


...
cmdargs                          > Registering library for cmdargs-0.10.22..
Progress 22/148         

Error: [S-7282]
       Stack failed to execute the build plan.

       While executing the build plan, Stack encountered the following errors:

       [S-7011]
       While building package clock-0.8.4 (scroll up to its section to see the error) using:
       /Users/felixleitner/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_6HauvNHV_3.8.1.0_ghc-9.4.7 --verbose=1 --builddir=.stack-work/dist/x86_64-osx/Cabal-3.8.1.0 build --ghc-options " -fdiagnostics-color=always"
       Process exited with code: ExitFailure 1 

       [S-7011]
       While building package basement-0.0.16 (scroll up to its section to see the error) using:
       /Users/felixleitner/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_6HauvNHV_3.8.1.0_ghc-9.4.7 --verbose=1 --builddir=.stack-work/dist/x86_64-osx/Cabal-3.8.1.0 build --ghc-options " -fdiagnostics-color=always"
       Process exited with code: ExitFailure 1 
make: *** [install] Error 1
ozgurakgun commented 10 months ago

sorry never seen this before. is it an intel mac or an arm mac?

lixitrixi commented 10 months ago

Should've clarified that sorry: it's an Intel.

From the binary installations it seems that might not be supported?

ozgurakgun commented 10 months ago

that's not the intention, it's just that I never got around to building on intel. I have an intel laptop at home, let me try.

lixitrixi commented 10 months ago

It's not super urgent, I just wanted something local to play around with while working on the model representation! I will use the notebook installation with Colab as I have been for now.

ozgurakgun commented 10 months ago

btw, did you see this: https://github.com/conjure-cp/conjure-oxide/pull/15

lixitrixi commented 10 months ago

Yes! I will comment my thoughts over there

ozgurakgun commented 10 months ago

well, bad/good news: current head of main built without any problems for me on the intel mac. I am now building v2.5.0 to upload binaries, you can download those.

happy to try debugging this together on your machine at some point.

ozgurakgun commented 10 months ago

release updated for macos-intel.

ozgurakgun commented 9 months ago

should I close this one @lixitrixi? I cannot reproduce this issue on my intel mac.

lixitrixi commented 9 months ago

Sorry yes! Now that I have the build you made for intel I'm all set. Thank you!