I explored a little as an ordinary user. Some notes:
darcs.net is running debian squeeze (2011), and the last package installation was in 2015. It has ghc-
7.4.1 installed. It is running gitit 0.10.0.1, installed in 2012. It has only 0.5G of ram, which is not
enough for building haskell packages easily.
I was able to build an up-to-date cabal-install: /home/simonmichael/.cabal/bin/cabal .
I could not build the current gitit, for two reasons:
1. while building cmark, gcc runs out of memory. I don't know how to limit gcc memory use.
$ cabal install cmark --ghc-options='+RTS -M200m -RTS' +RTS -M200m -RTS
Preprocessing library cmark-0.5.5.1...
[1 of 1] Compiling CMark ( dist/build/CMark.hs, dist/build/CMark.o )
gcc: Internal error: Killed (program cc1)
2. while building foundation, this error happens, probably needs a newer version of some C lib:
Building foundation-0.0.6...
Preprocessing library foundation-0.0.6...
Posix.hsc: In function 'main':
Posix.hsc:243: error: 'O_NOFOLLOW' undeclared (first use in this function)
Posix.hsc:243: error: (Each undeclared identifier is reported only once
Posix.hsc:243: error: for each function it appears in.)
Posix.hsc:244: error: 'O_CLOEXEC' undeclared (first use in this function)
compiling dist/build/Foundation/System/Bindings/Posix_hsc_make.c failed (exit code 1)
command was: /usr/bin/gcc -c dist/build/Foundation/System/Bindings/Posix_hsc_make.c -o
dist/build/Foundation/System/Bindings/Posix_hsc_make.o -fno-stack-protector -fno-stack-protector -Wl,--
hash-size=31 -Wl,\
--reduce-memory-overheads -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -D__GLASGOW_HASKELL__=704 -
Dlinux_BUILD_OS=1 -Di386_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Di386_HOST_ARCH=1 -Icbits -
DARCH_IS_LITTLE_ENDIA\
N -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/lib/ghc-7.4.1/base-
4.5.0.0/include -I/usr/local/lib/ghc-7.4.1/include -I/usr/local/lib/ghc-7.4.1/include/
I also tried the GHC 8 https://www.haskell.org/ghc/download_ghc_8_0_2#linux_i386 -> Centos 6.7 binary,
but it needs the libtinfo5 package installed.
Recommendations: ask the vps provider for more memory, or start fresh on a new linode server costing
$5/mo.
|