Skip to content
This repository has been archived by the owner on Jul 15, 2020. It is now read-only.

Build Failure On Debian 10 in Build.Md #5

Open
gmanroney opened this issue May 10, 2020 · 7 comments
Open

Build Failure On Debian 10 in Build.Md #5

gmanroney opened this issue May 10, 2020 · 7 comments

Comments

@gmanroney
Copy link
Contributor

I tried to adapt the build rules for Debian 10 based on what is in the tutorials. Installed the following packages on Debian 10:

git libgmp-dev zlib1g-dev libsystemd-dev ncurses-dev g++ libffi-dev make

All instructions were followed up to and including stack install

A lot of log messages appeared punctuated by the following:
...
...
Cabal > [141 of 220] Compiling Distribution.Simple.Utils
Cabal > [142 of 220] Compiling Distribution.Utils.NubList
Cabal > [143 of 220] Compiling Distribution.Utils.LogProgress
Cabal > [144 of 220] Compiling Distribution.Simple.Program.ResponseFile
Cabal > [145 of 220] Compiling Distribution.Simple.Program.Find
Cabal > [146 of 220] Compiling Distribution.Simple.Program.Types
Cabal > [147 of 220] Compiling Distribution.Simple.Program.Run
Cabal > [148 of 220] Compiling Distribution.Simple.Program.Script
Cabal > [149 of 220] Compiling Distribution.Simple.Program.Hpc
Cabal > [150 of 220] Compiling Distribution.Simple.Glob
Cabal > [151 of 220] Compiling Distribution.Simple.Compiler
Cabal > [152 of 220] Compiling Distribution.Simple.GHC.ImplInfo
Cabal > [153 of 220] Compiling Distribution.Simple.Program.GHC
Cabal > [154 of 220] Compiling Distribution.Simple.Program.Builtin
Cabal > [155 of 220] Compiling Distribution.Simple.Program.Db
Cabal > [156 of 220] Compiling Distribution.Simple.Program
Cabal > [157 of 220] Compiling Distribution.Simple.Program.Strip
Cabal > [158 of 220] Compiling Distribution.Simple.Command
Cabal > [159 of 220] Compiling Distribution.Simple.Setup
Cabal > ghc: internal error: Unable to commit 1048576 bytes of memory
Cabal > (GHC version 8.6.5 for x86_64_unknown_linux)
Cabal > Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug

-- While building package Cabal-2.4.1.0 using:
/home/cardano/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.4.0.1 build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure (-6)

Expectation was that the build would complete without error.

@gmanroney gmanroney changed the title Build Failure On Debian 10 Build Failure On Debian 10 in Build.Md May 10, 2020
@gmanroney
Copy link
Contributor Author

Tried again running everything as root; same error

@erikd
Copy link
Member

erikd commented May 10, 2020

This is almost certainly due to lack of system RAM. How much do you have. I doubt this will build with less than 8GB of RAM.

@gmanroney
Copy link
Contributor Author

Increased RAM from 2GB to 4GB and it failed again. This time error:

lens > copy/register
lens > Installing library in /root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/lib/x86_64-linux-ghc-8.6.5/lens-4.17.1-BXzT73ZawnuKocKfYRsjMi
lens > Registering library for lens-4.17.1..
aeson > [19 of 25] Compiling Data.Aeson.Types.Class
aeson > [20 of 25] Compiling Data.Aeson.Types
aeson > [21 of 25] Compiling Data.Aeson.Text
aeson > [22 of 25] Compiling Data.Aeson
libsystemd-journal > configure
aeson > [23 of 25] Compiling Data.Aeson.TH
libsystemd-journal > Configuring libsystemd-journal-1.4.4...
libsystemd-journal > Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5: The program 'pkg-config' version
libsystemd-journal > >=0.9.0 is required but it could not be found.
libsystemd-journal >
aeson > [24 of 25] Compiling Data.Aeson.QQ.Simple
aeson > [25 of 25] Compiling Data.Aeson.Encode
aeson >
aeson > copy/register
aeson > Installing library in /root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/lib/x86_64-linux-ghc-8.6.5/aeson-1.4.2.0-8rF2ZWXkEY44oWnuVmoeBA
aeson > Registering library for aeson-1.4.2.0..

-- While building package libsystemd-journal-1.4.4 using:
/root/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.4.0.1 configure --user --package-db=clear --package-db=global --package-db=/root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/pkgdb --libdir=/root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/lib --bindir=/root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/bin --datadir=/root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/share --libexecdir=/root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/libexec --sysconfdir=/root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/etc --docdir=/root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/doc/libsystemd-journal-1.4.4 --htmldir=/root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/doc/libsystemd-journal-1.4.4 --haddockdir=/root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/doc/libsystemd-journal-1.4.4 --dependency=base=base-4.12.0.0 --dependency=bytestring=bytestring-0.10.8.2 --dependency=hashable=hashable-1.2.7.0-ASqwrV5D8Rp79NspztLCgD --dependency=hsyslog=hsyslog-5.0.2-4YPEwpeEGKZ6PP1UUUwS4g --dependency=pipes=pipes-4.3.10-L3Z6Ybh33Ek9IuRvqza8eh --dependency=pipes-safe=pipes-safe-2.3.1-5A9QDYOug7DHQ02WZnt1Me --dependency=semigroups=semigroups-0.18.5-8pPnWqWrcWhEagTFf5Pnk2 --dependency=text=text-1.2.4.0-GrUF4lk2hk02X2GpHbr2GS --dependency=transformers=transformers-0.5.6.2 --dependency=uniplate=uniplate-1.6.12-9l9MSY5CbSuDznllPlYi4Q --dependency=unix-bytestring=unix-bytestring-0.3.7.3-6h267UVfHhj9ETGUdeUT8h --dependency=unordered-containers=unordered-containers-0.2.10.0-3WnzaWIoIVzESTPREXRwup --dependency=uuid=uuid-1.3.13-DdLTCx5E0s0ADZYFSuRt9I --dependency=vector=vector-0.12.0.3-LfvlcMFJAcY18uD1Y2O5Ig --exact-configuration --ghc-option=-fhide-source-paths
Process exited with code: ExitFailure 1
Progress 91/165

@gmanroney
Copy link
Contributor Author

Going to restart with clean environment with 4GB

@gmanroney
Copy link
Contributor Author

Only 2GB @erikd - upping to 4GB first will then try 8GB

@gmanroney
Copy link
Contributor Author

On 4GB and 8GB RAM getting this error. Think its to do with o/s packages and not RAM now. Thoughts?

WARNING: Ignoring th-lift-instances's bounds on th-lift (>=0.8); using th-lift-0.7.11.
Reason: allow-newer enabled.
libsystemd-journal > configure
libsystemd-journal > Configuring libsystemd-journal-1.4.4...
libsystemd-journal > Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5: The program 'pkg-config' version
libsystemd-journal > >=0.9.0 is required but it could not be found.
libsystemd-journal >
path-io > configure
path-io > Configuring path-io-1.4.2...
path-io > Warning: Packages using 'cabal-version: >= 1.10' must specify the
path-io > 'default-language' field for each component (e.g. Haskell98 or Haskell2010).
path-io > If a component uses different languages in different modules then list the
path-io > other ones in the 'other-languages' field.
path-io > build
path-io > Preprocessing library for path-io-1.4.2..
path-io > Building library for path-io-1.4.2..
path-io > [1 of 1] Compiling Path.IO
path-io > copy/register
path-io > Installing library in /root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/lib/x86_64-linux-ghc-8.6.5/path-io-1.4.2-Gd5FF0uHcijK3Hzcr0HHkJ
path-io > Registering library for path-io-1.4.2..

-- While building package libsystemd-journal-1.4.4 using:
/root/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.4.0.1 configure --user --package-db=clear --package-db=global --package-db=/root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/pkgdb --libdir=/root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/lib --bindir=/root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/bin --datadir=/root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/share --libexecdir=/root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/libexec --sysconfdir=/root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/etc --docdir=/root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/doc/libsystemd-journal-1.4.4 --htmldir=/root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/doc/libsystemd-journal-1.4.4 --haddockdir=/root/.stack/snapshots/x86_64-linux-tinfo6/d32bd7ae8a9eb992444e66b634f8e1a0720ff2446ea41cd303063fd1b6112b58/8.6.5/doc/libsystemd-journal-1.4.4 --dependency=base=base-4.12.0.0 --dependency=bytestring=bytestring-0.10.8.2 --dependency=hashable=hashable-1.2.7.0-ASqwrV5D8Rp79NspztLCgD --dependency=hsyslog=hsyslog-5.0.2-4YPEwpeEGKZ6PP1UUUwS4g --dependency=pipes=pipes-4.3.10-L3Z6Ybh33Ek9IuRvqza8eh --dependency=pipes-safe=pipes-safe-2.3.1-5A9QDYOug7DHQ02WZnt1Me --dependency=semigroups=semigroups-0.18.5-8pPnWqWrcWhEagTFf5Pnk2 --dependency=text=text-1.2.4.0-GrUF4lk2hk02X2GpHbr2GS --dependency=transformers=transformers-0.5.6.2 --dependency=uniplate=uniplate-1.6.12-9l9MSY5CbSuDznllPlYi4Q --dependency=unix-bytestring=unix-bytestring-0.3.7.3-6h267UVfHhj9ETGUdeUT8h --dependency=unordered-containers=unordered-containers-0.2.10.0-3WnzaWIoIVzESTPREXRwup --dependency=uuid=uuid-1.3.13-DdLTCx5E0s0ADZYFSuRt9I --dependency=vector=vector-0.12.0.3-LfvlcMFJAcY18uD1Y2O5Ig --exact-configuration --ghc-option=-fhide-source-paths
Process exited with code: ExitFailure 1
Progress 2/69

@brunjlar
Copy link
Collaborator

I think it is indeed related to missing packages - see line

libsystemd-journal > Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5: The program 'pkg-config' version
libsystemd-journal > >=0.9.0 is required but it could not be found.

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

No branches or pull requests

3 participants