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

llvmGeneralPure fails to build #2939

Closed
aristidb opened this issue Jun 14, 2014 · 2 comments
Closed

llvmGeneralPure fails to build #2939

aristidb opened this issue Jun 14, 2014 · 2 comments

Comments

@aristidb
Copy link
Contributor

Error message: "HsColour: Most RTS options are disabled. Link with -rtsopts to enable them."

Full build output:

$ nix-build . -K -A pkgs.haskellPackages.llvmGeneralPure
these derivations will be built:
  /nix/store/ky0mwm8nw5jlsglp7nv69sr298a5xr3z-haskell-llvm-general-pure-ghc7.6.3-3.4.2.2.drv
  /nix/store/yxs66v497ck82bp1jlv23gaqn5ni71sc-llvm-general-pure-3.4.2.2.tar.gz.drv
building path(s) `/nix/store/xk09fnxfhy5kqpwnpg4z7nqbsidp5hb5-llvm-general-pure-3.4.2.2.tar.gz'

trying http://tarballs.nixos.org/sha256/0grbw0lamp0w4jzxg97jccl3jqdgqfgldpb4llvhr1l70591b0s8
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15913  100 15913    0     0   113k      0 --:--:-- --:--:-- --:--:--  114k
building path(s) `/nix/store/pinvz4yvpqvvhxfj3v9w90wlcrb3078i-haskell-llvm-general-pure-ghc7.6.3-3.4.2.2'
building /nix/store/pinvz4yvpqvvhxfj3v9w90wlcrb3078i-haskell-llvm-general-pure-ghc7.6.3-3.4.2.2
unpacking sources
unpacking source archive /nix/store/xk09fnxfhy5kqpwnpg4z7nqbsidp5hb5-llvm-general-pure-3.4.2.2.tar.gz
source root is llvm-general-pure-3.4.2.2
patching sources
configuring
[1 of 1] Compiling Main             ( Setup.hs, Setup.o )
Linking Setup ...
configure flags: --enable-split-objs --disable-library-profiling --disable-shared --enable-library-vanilla --disable-executable-dynamic --disable-tests 
Configuring llvm-general-pure-3.4.2.2...
Dependency base >=4.5.0.0 && <5: using base-4.6.0.1
Dependency containers >=0.4.2.1: using containers-0.5.0.0
Dependency mtl >=2.0.1.0: using mtl-2.1.2
Dependency parsec >=3.1.3: using parsec-3.1.5
Dependency setenv >=0.1.0: using setenv-0.1.1.1
Dependency template-haskell >=2.5.0.0: using template-haskell-2.8.0.0
Dependency transformers >=0.3.0.0: using transformers-0.3.0.0
Using Cabal-1.16.0 compiled by ghc-7.6
Using compiler: ghc-7.6.3
Using install prefix:
/nix/store/pinvz4yvpqvvhxfj3v9w90wlcrb3078i-haskell-llvm-general-pure-ghc7.6.3-3.4.2.2
Binaries installed in:
/nix/store/pinvz4yvpqvvhxfj3v9w90wlcrb3078i-haskell-llvm-general-pure-ghc7.6.3-3.4.2.2/bin
Libraries installed in:
/nix/store/pinvz4yvpqvvhxfj3v9w90wlcrb3078i-haskell-llvm-general-pure-ghc7.6.3-3.4.2.2/lib/ghc-7.6.3/llvm-general-pure-3.4.2.2
Private binaries installed in:
/nix/store/pinvz4yvpqvvhxfj3v9w90wlcrb3078i-haskell-llvm-general-pure-ghc7.6.3-3.4.2.2/libexec
Data files installed in:
/nix/store/pinvz4yvpqvvhxfj3v9w90wlcrb3078i-haskell-llvm-general-pure-ghc7.6.3-3.4.2.2/share/llvm-general-pure-3.4.2.2
Documentation installed in:
/nix/store/pinvz4yvpqvvhxfj3v9w90wlcrb3078i-haskell-llvm-general-pure-ghc7.6.3-3.4.2.2/share/doc/llvm-general-pure-3.4.2.2
No alex found
Using ar found on system at:
/nix/store/xjvdpqgn2kd4rg0k30z020kxylvlbpx0-binutils-2.23.1/bin/ar
No c2hs found
No cpphs found
No ffihugs found
Using gcc version 4.8.2 found on system at:
/nix/store/agf8fk4xj2aqr3jccfcypqsmvkz3smn8-gcc-wrapper-4.8.2/bin/gcc
Using ghc version 7.6.3 found on system at:
/nix/store/ivq9niswkfz8lk27y1inp6ahc1cklihj-ghc-7.6.3-wrapper/bin/ghc
Using ghc-pkg version 7.6.3 found on system at:
/nix/store/ivq9niswkfz8lk27y1inp6ahc1cklihj-ghc-7.6.3-wrapper/bin/ghc-pkg
No greencard found
Using haddock version 2.13.2 found on system at:
/nix/store/1jp3vsjcl8ydiy92lzyjclwr943vh5lx-ghc-7.6.3/bin/haddock
No happy found
No hmake found
Using hpc version 0.6 found on system at:
/nix/store/ivq9niswkfz8lk27y1inp6ahc1cklihj-ghc-7.6.3-wrapper/bin/hpc
Using hsc2hs version 0.67 found on system at:
/nix/store/ivq9niswkfz8lk27y1inp6ahc1cklihj-ghc-7.6.3-wrapper/bin/hsc2hs
Using hscolour version 1.20 found on system at:
/nix/store/a616fvs0ycqj8k6nidzyh30il71lvx4b-haskell-hscolour-ghc7.6.3-1.20.3/bin/HsColour
No hugs found
No jhc found
Using ld found on system at:
/nix/store/agf8fk4xj2aqr3jccfcypqsmvkz3smn8-gcc-wrapper-4.8.2/bin/ld
No lhc found
No lhc-pkg found
No nhc98 found
No pkg-config found
Using ranlib found on system at:
/nix/store/xjvdpqgn2kd4rg0k30z020kxylvlbpx0-binutils-2.23.1/bin/ranlib
Using strip found on system at:
/nix/store/xjvdpqgn2kd4rg0k30z020kxylvlbpx0-binutils-2.23.1/bin/strip
Using tar found on system at:
/nix/store/0x21z9gqd3rdhxffhxdaf1ccilaay4s4-gnutar-1.27.1/bin/tar
No uhc found
building
Building llvm-general-pure-3.4.2.2...
Preprocessing library llvm-general-pure-3.4.2.2...
[ 1 of 21] Compiling LLVM.General.Internal.PrettyPrint ( src/LLVM/General/Internal/PrettyPrint.hs, dist/build/LLVM/General/Internal/PrettyPrint.o )
[ 2 of 21] Compiling LLVM.General.AST.RMWOperation ( src/LLVM/General/AST/RMWOperation.hs, dist/build/LLVM/General/AST/RMWOperation.o )
[ 3 of 21] Compiling LLVM.General.AST.Visibility ( src/LLVM/General/AST/Visibility.hs, dist/build/LLVM/General/AST/Visibility.o )
[ 4 of 21] Compiling LLVM.General.AST.Linkage ( src/LLVM/General/AST/Linkage.hs, dist/build/LLVM/General/AST/Linkage.o )
[ 5 of 21] Compiling LLVM.General.AST.Float ( src/LLVM/General/AST/Float.hs, dist/build/LLVM/General/AST/Float.o )
[ 6 of 21] Compiling LLVM.General.AST.IntegerPredicate ( src/LLVM/General/AST/IntegerPredicate.hs, dist/build/LLVM/General/AST/IntegerPredicate.o )
[ 7 of 21] Compiling LLVM.General.AST.FloatingPointPredicate ( src/LLVM/General/AST/FloatingPointPredicate.hs, dist/build/LLVM/General/AST/FloatingPointPredicate.o )
[ 8 of 21] Compiling LLVM.General.AST.CallingConvention ( src/LLVM/General/AST/CallingConvention.hs, dist/build/LLVM/General/AST/CallingConvention.o )
[ 9 of 21] Compiling LLVM.General.AST.Attribute ( src/LLVM/General/AST/Attribute.hs, dist/build/LLVM/General/AST/Attribute.o )
[10 of 21] Compiling LLVM.General.AST.AddrSpace ( src/LLVM/General/AST/AddrSpace.hs, dist/build/LLVM/General/AST/AddrSpace.o )
[11 of 21] Compiling LLVM.General.AST.DataLayout ( src/LLVM/General/AST/DataLayout.hs, dist/build/LLVM/General/AST/DataLayout.o )
[12 of 21] Compiling LLVM.General.DataLayout ( src/LLVM/General/DataLayout.hs, dist/build/LLVM/General/DataLayout.o )
[13 of 21] Compiling LLVM.General.AST.Name ( src/LLVM/General/AST/Name.hs, dist/build/LLVM/General/AST/Name.o )
[14 of 21] Compiling LLVM.General.AST.Type ( src/LLVM/General/AST/Type.hs, dist/build/LLVM/General/AST/Type.o )
[15 of 21] Compiling LLVM.General.AST.InlineAssembly ( src/LLVM/General/AST/InlineAssembly.hs, dist/build/LLVM/General/AST/InlineAssembly.o )
[16 of 21] Compiling LLVM.General.AST.Constant ( src/LLVM/General/AST/Constant.hs, dist/build/LLVM/General/AST/Constant.o )
[17 of 21] Compiling LLVM.General.AST.Operand ( src/LLVM/General/AST/Operand.hs, dist/build/LLVM/General/AST/Operand.o )
[18 of 21] Compiling LLVM.General.AST.Instruction ( src/LLVM/General/AST/Instruction.hs, dist/build/LLVM/General/AST/Instruction.o )
[19 of 21] Compiling LLVM.General.AST.Global ( src/LLVM/General/AST/Global.hs, dist/build/LLVM/General/AST/Global.o )
[20 of 21] Compiling LLVM.General.AST ( src/LLVM/General/AST.hs, dist/build/LLVM/General/AST.o )
[21 of 21] Compiling LLVM.General.PrettyPrint ( src/LLVM/General/PrettyPrint.hs, dist/build/LLVM/General/PrettyPrint.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.4.0.1 ... linking ... done.
Loading package deepseq-1.3.0.1 ... linking ... done.
Loading package containers-0.5.0.0 ... linking ... done.
Loading package pretty-1.1.1.0 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package bytestring-0.10.0.2 ... linking ... done.
Loading package old-locale-1.0.0.5 ... linking ... done.
Loading package time-1.4.0.1 ... linking ... done.
Loading package unix-2.6.0.1 ... linking ... done.
Loading package setenv-0.1.1.1 ... linking ... done.
Loading package transformers-0.3.0.0 ... linking ... done.
Loading package mtl-2.1.2 ... linking ... done.
Loading package text-1.1.1.3 ... linking ... done.
Loading package parsec-3.1.5 ... linking ... done.
In-place registering llvm-general-pure-3.4.2.2...
Running Haddock for llvm-general-pure-3.4.2.2...
Running hscolour for llvm-general-pure-3.4.2.2...
Preprocessing library llvm-general-pure-3.4.2.2...
HsColour: Most RTS options are disabled. Link with -rtsopts to enable them.
note: keeping build directory `/tmp/nix-build-haskell-llvm-general-pure-ghc7.6.3-3.4.2.2.drv-0'
builder for `/nix/store/ky0mwm8nw5jlsglp7nv69sr298a5xr3z-haskell-llvm-general-pure-ghc7.6.3-3.4.2.2.drv' failed with exit code 1
error: build of `/nix/store/ky0mwm8nw5jlsglp7nv69sr298a5xr3z-haskell-llvm-general-pure-ghc7.6.3-3.4.2.2.drv' failed

The problem also appears with GHC 7.8 and the older version of llvm-general-pure.

CC @peti

@aristidb
Copy link
Contributor Author

Work-around:

noHaddock = true;

@peti peti added the haskell label Jun 16, 2014
peti added a commit that referenced this issue Jun 16, 2014
… we use to generate our documentation

Other tools like hsc2hs or haddock allows this, too, and some tools explicitly
set memory limits on these tools during the build (i.e. llvm-general-pure) by
exposing a GHCRTS environment variable. See [1] for a concrete example of this
issue.

[1] #2939
@peti
Copy link
Member

peti commented Jun 16, 2014

Fixed by fa8f2ca.

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

No branches or pull requests

2 participants