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

Installation fails on Ubuntu 19.10 #271

Open
iammer opened this issue Jul 9, 2020 · 1 comment
Open

Installation fails on Ubuntu 19.10 #271

iammer opened this issue Jul 9, 2020 · 1 comment

Comments

@iammer
Copy link

iammer commented Jul 9, 2020

Installation fails on Ubuntu 19.10.

I tried both the latest release and development version.

cabal update && cabal install implicit

results in:

Failed to install snap-core-1.0.4.1
Build log ( /home/michael/.cabal/logs/ghc-8.6.5/snap-core-1.0.4.1-6GpgSzHqMHF9rtbD7C1Mss.log ):
cabal: Entering directory '/tmp/cabal-tmp-18783/snap-core-1.0.4.1'
Configuring snap-core-1.0.4.1...
Preprocessing library for snap-core-1.0.4.1..
Building library for snap-core-1.0.4.1..
[ 1 of 18] Compiling Snap.Internal.Debug ( src/Snap/Internal/Debug.hs, dist/build/Snap/Internal/Debug.o )
[ 2 of 18] Compiling Snap.Types.Headers ( src/Snap/Types/Headers.hs, dist/build/Snap/Types/Headers.o )
[ 3 of 18] Compiling Snap.Internal.Http.Types ( src/Snap/Internal/Http/Types.hs, dist/build/Snap/Internal/Http/Types.o )
[ 4 of 18] Compiling Snap.Internal.Test.Assertions ( src/Snap/Internal/Test/Assertions.hs, dist/build/Snap/Internal/Test/Assertions.o )
[ 5 of 18] Compiling Snap.Internal.Parsing ( src/Snap/Internal/Parsing.hs, dist/build/Snap/Internal/Parsing.o )
[ 6 of 18] Compiling Snap.Internal.Core ( src/Snap/Internal/Core.hs, dist/build/Snap/Internal/Core.o )
[ 7 of 18] Compiling Snap.Internal.Routing ( src/Snap/Internal/Routing.hs, dist/build/Snap/Internal/Routing.o )
[ 8 of 18] Compiling Snap.Internal.Instances ( src/Snap/Internal/Instances.hs, dist/build/Snap/Internal/Instances.o )
[ 9 of 18] Compiling Snap.Core        ( src/Snap/Core.hs, dist/build/Snap/Core.o )
[10 of 18] Compiling Snap.Internal.Util.FileUploads ( src/Snap/Internal/Util/FileUploads.hs, dist/build/Snap/Internal/Util/FileUploads.o )
[11 of 18] Compiling Snap.Internal.Util.FileServe ( src/Snap/Internal/Util/FileServe.hs, dist/build/Snap/Internal/Util/FileServe.o )
[12 of 18] Compiling Snap.Internal.Test.RequestBuilder ( src/Snap/Internal/Test/RequestBuilder.hs, dist/build/Snap/Internal/Test/RequestBuilder.o )

src/Snap/Internal/Test/RequestBuilder.hs:62:46: error:
    Module ‘System.Random’ does not export ‘Random(randomIO)’
   |
62 | import           System.Random              (Random (randomIO))
   |                                              ^^^^^^^^^^^^^^^^^
cabal: Leaving directory '/tmp/cabal-tmp-18783/snap-core-1.0.4.1'
Completed    mwc-random-0.14.0.0
Completed    aeson-1.5.2.0
Completed    JuicyPixels-3.3.5
Warning: could not create a symlink in /home/michael/.cabal/bin for
hspec-discover because the file exists there already but is not managed by
cabal. You can create a symlink for this executable manually if you wish. The
executable file has been installed at /home/michael/.cabal/bin/hspec-discover
cabal: Error: some packages failed to install:
implicit-0.3.0.1-JpQge8jLBWr7fHFhjxtDHs depends on implicit-0.3.0.1 which
failed to install.
snap-core-1.0.4.1-6GpgSzHqMHF9rtbD7C1Mss failed during the building phase. The
exception was:
ExitFailure 1
snap-server-1.1.1.2-7ddVWTdfPSZ1Vyhm6CjjCf depends on snap-server-1.1.1.2
which failed to install.

When I try the development version:
I installed happy using sudo apt install happy because of an initial message complaining it wasn't installed. Then, cabal update && cabal install hashmap parallel parsec plugins JuicyPixels blaze-builder blaze-markup blaze-svg storable-endian unordered-containers vector-space results in:

Starting     plugins-1.6.0
Building     plugins-1.6.0
Failed to install plugins-1.6.0
Build log ( /home/michael/.cabal/logs/ghc-8.6.5/plugins-1.6.0-LYAmT0pbUYW3zNXudcHEu3.log ):
cabal: Entering directory '/tmp/cabal-tmp-7402/plugins-1.6.0'
Configuring plugins-1.6.0...
configure: WARNING: unrecognized options: --with-compiler
checking build system type... x86_64-unknown-linux-gnu
checking for ghc... ghc
checking for value of __GLASGOW_HASKELL__... 806
checking for ghc library directory... /usr/lib/ghc
checking for gcc... /usr/bin/x86_64-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/x86_64-linux-gnu-gcc accepts -g... yes
checking for /usr/bin/x86_64-linux-gnu-gcc option to accept ISO C89... none needed
checking for arc4random... no
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating config.mk
config.status: creating testsuite/makewith/io/TestIO.conf
config.status: creating testsuite/makewith/unsafeio/Unsafe.conf
config.status: creating config.h
configure: WARNING: unrecognized options: --with-compiler
Preprocessing library for plugins-1.6.0..
Building library for plugins-1.6.0..
[ 1 of 12] Compiling System.Plugins.Consts ( src/System/Plugins/Consts.hs, dist/build/System/Plugins/Consts.o )
[ 2 of 12] Compiling System.Plugins.LoadTypes ( src/System/Plugins/LoadTypes.hs, dist/build/System/Plugins/LoadTypes.o )
[ 3 of 12] Compiling System.Plugins.Env ( src/System/Plugins/Env.hs, dist/build/System/Plugins/Env.o )

src/System/Plugins/Env.hs:334:114: error:
    • Variable not in scope:
        installedPackageId :: InstalledPackageInfo -> a1
    • Perhaps you meant data constructor ‘InstalledPackageInfo’ (imported from Distribution.InstalledPackageInfo)
    |
334 |       addOnePkg p fm' = addToPkgEnvs (addToPkgEnvs (addToPkgEnvs fm' (display $ sourcePackageId p) p) (display $ installedPackageId p) p)
    |                                                                                                                  ^^^^^^^^^^^^^^^^^^

src/System/Plugins/Env.hs:341:11: error:
    • Variable not in scope: installedPackageId :: p -> a0
    • Perhaps you meant data constructor ‘InstalledPackageInfo’ (imported from Distribution.InstalledPackageInfo)
    |
341 |         | installedPackageId pkgconf1 >= installedPackageId pkgconf2 = pkgconf1
    |           ^^^^^^^^^^^^^^^^^^

src/System/Plugins/Env.hs:341:42: error:
    • Variable not in scope: installedPackageId :: p -> a0
    • Perhaps you meant data constructor ‘InstalledPackageInfo’ (imported from Distribution.InstalledPackageInfo)
    |
341 |         | installedPackageId pkgconf1 >= installedPackageId pkgconf2 = pkgconf1
    |                                          ^^^^^^^^^^^^^^^^^^

src/System/Plugins/Env.hs:353:48: error:
    Variable not in scope: defaultProgramConfiguration :: ProgramDb
    |
353 |         pc <- configureAllKnownPrograms silent defaultProgramConfiguration
    |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/System/Plugins/Env.hs:369:44: error:
    Variable not in scope: defaultProgramConfiguration :: ProgramDb
    |
369 |     pc <- configureAllKnownPrograms silent defaultProgramConfiguration
    |                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Leaving directory '/tmp/cabal-tmp-7402/plugins-1.6.0'
cabal: Error: some packages failed to install:
plugins-1.6.0-LYAmT0pbUYW3zNXudcHEu3 failed during the building phase. The
exception was:
ExitFailure 1
sorki added a commit to sorki/ImplicitCAD that referenced this issue Jul 10, 2020
`implicitsnap` is now disabled by default to pull less dependencies.

To enable building it again use

```
cabal configure --flag=implicitsnap
```

or add

```
flags: +implicitsnap
```

to `cabal.project.local`

Should help with Haskell-Things#271.
@julialongtin
Copy link
Member

Try the development copy now.

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

No branches or pull requests

2 participants