copumpkin / nixpkgs

Nix Packages collection
Other
9 stars 1 forks source link

GHC 7.8.4 won't build #30

Closed pikajude closed 9 years ago

pikajude commented 9 years ago
these derivations will be built:
  /nix/store/qhfh98p9dhkhayrv38axhvb32wv1fjpf-ghc-7.8.4.drv
building path(s) ‘/nix/store/y655v200387jzqacwj4v2dgkak5241gk-ghc-7.8.4’
building /nix/store/y655v200387jzqacwj4v2dgkak5241gk-ghc-7.8.4
unpacking sources
unpacking source archive /nix/store/s1nidyhd42i61lfb19s77rnb4anip4w8-ghc-7.8.4-src.tar.xz
source root is ghc-7.8.4
patching sources
configuring
configure flags: --prefix=/nix/store/y655v200387jzqacwj4v2dgkak5241gk-ghc-7.8.4  
checking for gfind... no
checking for find... /nix/store/wwy0897sfq5fv4z4dy0rwv2jmw9q32d0-findutils-4.4.2/bin/find
checking for sort... /nix/store/ij99rsm34gy2skmkrxql03l0c33arvay-coreutils-8.23/bin/sort
checking for ghc... /nix/store/7qkv5k07kwpy3b89dpk8qj7ir6c5bdrf-ghc-7.8.3-binary/bin/ghc
checking version of ghc... 7.8.3
checking whether bootstrap compiler is affected by bug 9439... 
<no location info>:
    Warning: Couldn't figure out LLVM version!
             Make sure you have installed LLVM
ghc: could not execute: opt
failed to compile
checking build system type... x86_64-apple-darwin14.1.0
checking host system type... x86_64-apple-darwin14.1.0
checking target system type... x86_64-apple-darwin14.1.0
Build platform inferred as: x86_64-apple-darwin
Host platform inferred as: x86_64-apple-darwin
Target platform inferred as: x86_64-apple-darwin
GHC build  : x86_64-apple-darwin
GHC host   : x86_64-apple-darwin
GHC target : x86_64-apple-darwin
configure: Building in-tree ghc-pwd
checking for path to top of build tree... /private/var/folders/fl/sv20mnl95w7114pq00w2y74r0000gp/T/nix-build-ghc-7.8.4.drv-19/ghc-7.8.4
checking for gcc... /nix/store/4ygz693scrkssyph413akmpw13j178dw-clang-wrapper-3.5.0/bin/clang
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 /nix/store/4ygz693scrkssyph413akmpw13j178dw-clang-wrapper-3.5.0/bin/clang accepts -g... yes
checking for /nix/store/4ygz693scrkssyph413akmpw13j178dw-clang-wrapper-3.5.0/bin/clang option to accept ISO C89... none needed
checking how to run the C preprocessor... /nix/store/4ygz693scrkssyph413akmpw13j178dw-clang-wrapper-3.5.0/bin/clang -E
checking for grep that handles long lines and -e... /nix/store/vihkavj2dnqlmx0i774zljr9dgx5hr3w-gnugrep-2.20/bin/grep
checking for egrep... /nix/store/vihkavj2dnqlmx0i774zljr9dgx5hr3w-gnugrep-2.20/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking XCode version... ./configure: line 5598: xcodebuild: command not found
not found (too old?)
checking for gcc... no
checking for clang... /nix/store/4ygz693scrkssyph413akmpw13j178dw-clang-wrapper-3.5.0/bin/clang
checking for ld... /nix/store/4ygz693scrkssyph413akmpw13j178dw-clang-wrapper-3.5.0/bin/ld
checking for nm... /nix/store/6q19khwif3mb95shswj1kp82n48syinc-cctools-port-855/bin/nm
checking for ar... /nix/store/6q19khwif3mb95shswj1kp82n48syinc-cctools-port-855/bin/ar
checking for ranlib... /nix/store/6q19khwif3mb95shswj1kp82n48syinc-cctools-port-855/bin/ranlib
checking for llc... no
checking for opt... no
checking whether #! works in shell scripts... yes
checking for perl... /nix/store/7zaf7gqc6xnvs3vb0l1w3kjsal6mzv1a-perl-5.20.1/bin/perl
checking version of gcc... 3.5.0
checking whether C compiler is clang... yes
checking whether ld is GNU ld... no
checking whether ld understands --build-id... no
checking whether ld understands -no_compact_unwind... yes
checking whether ld understands -filelist... yes
checking Setting up CFLAGS, LDFLAGS, IGNORE_LINKER_LD_FLAGS and CPPFLAGS... done
checking Setting up CONF_CC_OPTS_STAGE0, CONF_GCC_LINKER_OPTS_STAGE0, CONF_LD_LINKER_OPTS_STAGE0 and CONF_CPP_OPTS_STAGE0... done
checking Setting up CONF_CC_OPTS_STAGE1, CONF_GCC_LINKER_OPTS_STAGE1, CONF_LD_LINKER_OPTS_STAGE1 and CONF_CPP_OPTS_STAGE1... done
checking Setting up CONF_CC_OPTS_STAGE2, CONF_GCC_LINKER_OPTS_STAGE2, CONF_LD_LINKER_OPTS_STAGE2 and CONF_CPP_OPTS_STAGE2... done
checking for extra options to pass gcc when compiling via C...  -fwrapv
checking how to run the C preprocessor... /nix/store/4ygz693scrkssyph413akmpw13j178dw-clang-wrapper-3.5.0/bin/clang -E
checking for .subsections_via_symbols... yes
checking whether your assembler supports .ident directive... yes
checking for GNU non-executable stack support... no
checking for a working context diff... diff -U 1
checking for a BSD-compatible install... /nix/store/ij99rsm34gy2skmkrxql03l0c33arvay-coreutils-8.23/bin/install -c
checking for ar... /nix/store/6q19khwif3mb95shswj1kp82n48syinc-cctools-port-855/bin/ar
checking whether /nix/store/6q19khwif3mb95shswj1kp82n48syinc-cctools-port-855/bin/ar is GNU ar... no
checking for ar arguments... clqs
checking whether /nix/store/6q19khwif3mb95shswj1kp82n48syinc-cctools-port-855/bin/ar supports @file... no
checking for ranlib... /nix/store/6q19khwif3mb95shswj1kp82n48syinc-cctools-port-855/bin/ranlib
checking whether ln -s works... yes
checking for gsed... no
checking for sed... /nix/store/25jjc9mgd1i1bnfiqkw6lhjv8x36i79l-gnused-4.2.2/bin/sed
checking for time... no
checking for gnutar... no
checking for gtar... no
checking for tar... /nix/store/jg937pnr1swv1cq4a7867fzzkanlqzbn-gnutar-1.27.1/bin/tar
checking for gpatch... no
checking for patch... /nix/store/iml5kc78yknipwfwy53n860zimmn79vc-patch-2.7.1/bin/patch
checking for dtrace... no
checking for HsColour... no
checking for xmllint... no
configure: WARNING: cannot find xmllint in your PATH, you will not be able to validate your documentation
checking for xsltproc... no
configure: WARNING: cannot find xsltproc in your PATH, you will not be able to build the HTML documentation
checking for dblatex... no
configure: WARNING: cannot find dblatex in your PATH, you will not be able to build the PDF and PS documentation
checking for ghc-pkg matching /nix/store/7qkv5k07kwpy3b89dpk8qj7ir6c5bdrf-ghc-7.8.3-binary/bin/ghc... /nix/store/7qkv5k07kwpy3b89dpk8qj7ir6c5bdrf-ghc-7.8.3-binary/bin/ghc-pkg
checking for happy... no
checking for version of happy... 
checking for alex... no
checking for version of alex... 
checking for ANSI C header files... (cached) yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking bfd.h usability... no
checking bfd.h presence... no
checking for bfd.h... no
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nlist.h usability... yes
checking nlist.h presence... yes
checking for nlist.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking sys/timers.h usability... no
checking sys/timers.h presence... no
checking for sys/timers.h... no
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking winsock.h usability... no
checking winsock.h presence... no
checking for winsock.h... no
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking for sys/cpuset.h... no
checking whether time.h and sys/time.h may both be included... yes
checking for long long... yes
checking size of char... 1
checking size of double... 8
checking size of float... 4
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking size of short... 2
checking size of unsigned char... 1
checking size of unsigned int... 4
checking size of unsigned long... 8
checking size of unsigned long long... 8
checking size of unsigned short... 2
checking size of void *... 8
checking for char... yes
checking alignment of char... 1
checking for double... yes
checking alignment of double... 8
checking for float... yes
checking alignment of float... 4
checking for int... yes
checking alignment of int... 4
checking for long... yes
checking alignment of long... 8
checking for long long... (cached) yes
checking alignment of long long... 8
checking for short... yes
checking alignment of short... 2
checking for unsigned char... yes
checking alignment of unsigned char... 1
checking for unsigned int... yes
checking alignment of unsigned int... 4
checking for unsigned long... yes
checking alignment of unsigned long... 8
checking for unsigned long long... yes
checking alignment of unsigned long long... 8
checking for unsigned short... yes
checking alignment of unsigned short... 2
checking for void *... yes
checking alignment of void *... 8
checking for WinExec... no
checking for GetModuleFileName... no
checking return type of signal handlers... void
checking for getclock... no
checking for getrusage... yes
checking for gettimeofday... yes
checking for setitimer... yes
checking for siginterrupt... yes
checking for sysconf... yes
checking for times... yes
checking for ctime_r... yes
checking for sched_setaffinity... no
checking for setlocale... yes
checking whether ctime_r is declared... yes
checking for closedir in -lmingwex... no
checking for atan in -lm... yes
checking for xmalloc in -liberty... no
checking for bfd_uncompress_section_contents in -lbfd... no
checking for dlopen in -ldl... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking whether float word order is big endian... no
checking for nlist in -lelf... no
checking leading underscore in symbol names... yes
checking whether __attribute__((visibility("hidden"))) is supported... yes
checking for clock_gettime in -lrt... no
checking for clock_gettime... no
checking for timer_settime... no
checking for timer_create... no
checking for printf$LDBLStub... no
checking sys/eventfd.h usability... no
checking sys/eventfd.h presence... no
checking for sys/eventfd.h... no
checking for eventfd... no
checking for __thread support... yes
checking for PAPI_library_init in -lpapi... no
checking papi.h usability... no
checking papi.h presence... no
checking for papi.h... no
checking for __mingw_vfprintf... no
configure: creating ./config.status
config.status: creating mk/config.mk
config.status: creating mk/install.mk
config.status: creating mk/project.mk
config.status: creating compiler/ghc.cabal
config.status: creating ghc/ghc-bin.cabal
config.status: creating utils/runghc/runghc.cabal
config.status: creating settings
config.status: creating docs/users_guide/ug-book.xml
config.status: creating docs/users_guide/ug-ent.xml
config.status: creating docs/index.html
config.status: creating libraries/prologue.txt
config.status: creating distrib/configure.ac
config.status: creating mk/config.h

----------------------------------------------------------------------
Configure completed successfully.

   Building GHC version  : 7.8.4

   Build platform        : x86_64-apple-darwin
   Host platform         : x86_64-apple-darwin
   Target platform       : x86_64-apple-darwin

   Bootstrapping using   : /nix/store/7qkv5k07kwpy3b89dpk8qj7ir6c5bdrf-ghc-7.8.3-binary/bin/ghc
      which is version   : 7.8.3

   Using clang               : /nix/store/4ygz693scrkssyph413akmpw13j178dw-clang-wrapper-3.5.0/bin/clang
      which is version       : 3.5.0
   Building a cross compiler : NO
   cpp       : /nix/store/4ygz693scrkssyph413akmpw13j178dw-clang-wrapper-3.5.0/bin/clang
   cpp-flags : -E -undef -traditional -Wno-invalid-pp-token -Wno-unicode -Wno-trigraphs 
   ld        : /nix/store/4ygz693scrkssyph413akmpw13j178dw-clang-wrapper-3.5.0/bin/ld
   Happy     :  ()
   Alex      :  ()
   Perl      : /nix/store/7zaf7gqc6xnvs3vb0l1w3kjsal6mzv1a-perl-5.20.1/bin/perl
   dblatex   : 
   xsltproc  : 

   Using LLVM tools
      llc   : 
      opt   : 

   HsColour was not found; documentation will not contain source links

   Building DocBook HTML documentation : NO
   Building DocBook PS documentation   : NO
   Building DocBook PDF documentation  : NO
----------------------------------------------------------------------

For a standard build of GHC (fully optimised with profiling), type (g)make.

To make changes to the default build configuration, copy the file
mk/build.mk.sample to mk/build.mk, and edit the settings in there.

For more information on how to configure your GHC build, see
   http://ghc.haskell.org/trac/ghc/wiki/Building

building
make flags: SHELL=/nix/store/6mc08md7jvs33hpmldwrxwgjj3sf12ji-bash-4.3-p30/bin/bash    
building mk/config.mk.old
+ test -f mk/config.mk.old
+ cp -p mk/config.mk mk/config.mk.old
touch -r mk/config.mk.old mk/config.mk
building mk/project.mk.old
+ test -f mk/project.mk.old
+ cp -p mk/project.mk mk/project.mk.old
touch -r mk/project.mk.old mk/project.mk
building compiler/ghc.cabal.old
+ test -f compiler/ghc.cabal.old
+ cp -p compiler/ghc.cabal compiler/ghc.cabal.old
touch -r compiler/ghc.cabal.old compiler/ghc.cabal
building all
===--- building phase 0
make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds
libraries/hpc/ghc.mk:3: libraries/hpc/dist-boot/package-data.mk: No such file or directory
libraries/Cabal/Cabal/ghc.mk:3: libraries/Cabal/Cabal/dist-boot/package-data.mk: No such file or directory
libraries/bin-package-db/ghc.mk:3: libraries/bin-package-db/dist-boot/package-data.mk: No such file or directory
libraries/hoopl/ghc.mk:3: libraries/hoopl/dist-boot/package-data.mk: No such file or directory
libraries/transformers/ghc.mk:3: libraries/transformers/dist-boot/package-data.mk: No such file or directory
libraries/terminfo/ghc.mk:3: libraries/terminfo/dist-boot/package-data.mk: No such file or directory
compiler/ghc.mk:645: compiler/stage1/package-data.mk: No such file or directory
utils/hsc2hs/ghc.mk:15: utils/hsc2hs/dist/package-data.mk: No such file or directory
utils/ghc-pkg/ghc.mk:46: utils/ghc-pkg/dist/package-data.mk: No such file or directory
ghc/ghc.mk:114: ghc/stage1/package-data.mk: No such file or directory
building inplace/bin/mkdirhier
mkdir inplace
mkdir inplace/bin
mkdir inplace/lib
"rm" -f inplace/bin/mkdirhier  
echo '#!/nix/store/6mc08md7jvs33hpmldwrxwgjj3sf12ji-bash-4.3-p30/bin/bash'           >> inplace/bin/mkdirhier
cat utils/mkdirhier/mkdirhier.sh >> inplace/bin/mkdirhier
chmod +x inplace/bin/mkdirhier
building utils/ghc-cabal/dist/build/tmp//.
"inplace/bin/mkdirhier" utils/ghc-cabal/dist/build/tmp//.
building bootstrapping/.
"inplace/bin/mkdirhier" bootstrapping/.
building utils/ghc-cabal/dist/build/tmp/ghc-cabal
"/nix/store/7qkv5k07kwpy3b89dpk8qj7ir6c5bdrf-ghc-7.8.3-binary/bin/ghc" -H32m -O \
       -optc-m64 -optc-fno-stack-protector \
        \
       --make utils/ghc-cabal/Main.hs -o utils/ghc-cabal/dist/build/tmp/ghc-cabal \
       -no-user-package-db \
       -Wall -fno-warn-unused-imports -fno-warn-warnings-deprecations \
       -DCABAL_VERSION=1,18,1,5 \
       -DBOOTSTRAPPING \
       -odir  bootstrapping \
       -hidir bootstrapping \
       -ilibraries/Cabal/Cabal \
       -ilibraries/filepath \
       -ilibraries/hpc \

[ 1 of 73] Compiling Distribution.GetOpt ( libraries/Cabal/Cabal/Distribution/GetOpt.hs, bootstrapping/Distribution/GetOpt.o )
[ 2 of 73] Compiling Distribution.TestSuite ( libraries/Cabal/Cabal/Distribution/TestSuite.hs, bootstrapping/Distribution/TestSuite.o )
[ 3 of 73] Compiling Distribution.Simple.PreProcess.Unlit ( libraries/Cabal/Cabal/Distribution/Simple/PreProcess/Unlit.hs, bootstrapping/Distribution/Simple/PreProcess/Unlit.o )
[ 4 of 73] Compiling Distribution.PackageDescription.Utils ( libraries/Cabal/Cabal/Distribution/PackageDescription/Utils.hs, bootstrapping/Distribution/PackageDescription/Utils.o )
[ 5 of 73] Compiling Distribution.Compat.ReadP ( libraries/Cabal/Cabal/Distribution/Compat/ReadP.hs, bootstrapping/Distribution/Compat/ReadP.o )
[ 6 of 73] Compiling Distribution.ReadE ( libraries/Cabal/Cabal/Distribution/ReadE.hs, bootstrapping/Distribution/ReadE.o )
[ 7 of 73] Compiling Distribution.Compat.Exception ( libraries/Cabal/Cabal/Distribution/Compat/Exception.hs, bootstrapping/Distribution/Compat/Exception.o )
[ 8 of 73] Compiling Distribution.Compat.Environment ( libraries/Cabal/Cabal/Distribution/Compat/Environment.hs, bootstrapping/Distribution/Compat/Environment.o )
[ 9 of 73] Compiling System.FilePath.Windows ( libraries/filepath/System/FilePath/Windows.hs, bootstrapping/System/FilePath/Windows.o )
[10 of 73] Compiling System.FilePath.Posix ( libraries/filepath/System/FilePath/Posix.hs, bootstrapping/System/FilePath/Posix.o )
[11 of 73] Compiling System.FilePath  ( libraries/filepath/System/FilePath.hs, bootstrapping/System/FilePath.o )
[12 of 73] Compiling Distribution.Simple.CCompiler ( libraries/Cabal/Cabal/Distribution/Simple/CCompiler.hs, bootstrapping/Distribution/Simple/CCompiler.o )
[13 of 73] Compiling Distribution.Compat.TempFile ( libraries/Cabal/Cabal/Distribution/Compat/TempFile.hs, bootstrapping/Distribution/Compat/TempFile.o )
[14 of 73] Compiling Distribution.Compat.CopyFile ( libraries/Cabal/Cabal/Distribution/Compat/CopyFile.hs, bootstrapping/Distribution/Compat/CopyFile.o )
[15 of 73] Compiling Distribution.Verbosity ( libraries/Cabal/Cabal/Distribution/Verbosity.hs, bootstrapping/Distribution/Verbosity.o )
[16 of 73] Compiling Distribution.Text ( libraries/Cabal/Cabal/Distribution/Text.hs, bootstrapping/Distribution/Text.o )
[17 of 73] Compiling Distribution.Version ( libraries/Cabal/Cabal/Distribution/Version.hs, bootstrapping/Distribution/Version.o )
[18 of 73] Compiling Distribution.Compiler ( libraries/Cabal/Cabal/Distribution/Compiler.hs, bootstrapping/Distribution/Compiler.o )
[19 of 73] Compiling Distribution.License ( libraries/Cabal/Cabal/Distribution/License.hs, bootstrapping/Distribution/License.o )
[20 of 73] Compiling Distribution.Package ( libraries/Cabal/Cabal/Distribution/Package.hs, bootstrapping/Distribution/Package.o )
[21 of 73] Compiling Language.Haskell.Extension ( libraries/Cabal/Cabal/Language/Haskell/Extension.hs, bootstrapping/Language/Haskell/Extension.o )
[22 of 73] Compiling Distribution.Simple.Compiler ( libraries/Cabal/Cabal/Distribution/Simple/Compiler.hs, bootstrapping/Distribution/Simple/Compiler.o )
[23 of 73] Compiling Distribution.System ( libraries/Cabal/Cabal/Distribution/System.hs, bootstrapping/Distribution/System.o )
[24 of 73] Compiling Distribution.Simple.InstallDirs ( libraries/Cabal/Cabal/Distribution/Simple/InstallDirs.hs, bootstrapping/Distribution/Simple/InstallDirs.o )
[25 of 73] Compiling Distribution.ModuleName ( libraries/Cabal/Cabal/Distribution/ModuleName.hs, bootstrapping/Distribution/ModuleName.o )
[26 of 73] Compiling Distribution.PackageDescription ( libraries/Cabal/Cabal/Distribution/PackageDescription.hs, bootstrapping/Distribution/PackageDescription.o )
[27 of 73] Compiling Distribution.Simple.Utils ( libraries/Cabal/Cabal/Distribution/Simple/Utils.hs, bootstrapping/Distribution/Simple/Utils.o )
[28 of 73] Compiling Distribution.PackageDescription.Configuration ( libraries/Cabal/Cabal/Distribution/PackageDescription/Configuration.hs, bootstrapping/Distribution/PackageDescription/Configuration.o )
[29 of 73] Compiling Distribution.PackageDescription.Check ( libraries/Cabal/Cabal/Distribution/PackageDescription/Check.hs, bootstrapping/Distribution/PackageDescription/Check.o )
[30 of 73] Compiling Distribution.Simple.Program.Find ( libraries/Cabal/Cabal/Distribution/Simple/Program/Find.hs, bootstrapping/Distribution/Simple/Program/Find.o )
[31 of 73] Compiling Distribution.Simple.Program.Types ( libraries/Cabal/Cabal/Distribution/Simple/Program/Types.hs, bootstrapping/Distribution/Simple/Program/Types.o )
[32 of 73] Compiling Distribution.Simple.Program.Builtin ( libraries/Cabal/Cabal/Distribution/Simple/Program/Builtin.hs, bootstrapping/Distribution/Simple/Program/Builtin.o )
[33 of 73] Compiling Distribution.Simple.Program.Db ( libraries/Cabal/Cabal/Distribution/Simple/Program/Db.hs, bootstrapping/Distribution/Simple/Program/Db.o )
[34 of 73] Compiling Distribution.Simple.Program.Run ( libraries/Cabal/Cabal/Distribution/Simple/Program/Run.hs, bootstrapping/Distribution/Simple/Program/Run.o )
[35 of 73] Compiling Distribution.Simple.Program ( libraries/Cabal/Cabal/Distribution/Simple/Program.hs, bootstrapping/Distribution/Simple/Program.o )
[36 of 73] Compiling Distribution.Simple.Program.Ar ( libraries/Cabal/Cabal/Distribution/Simple/Program/Ar.hs, bootstrapping/Distribution/Simple/Program/Ar.o )
[37 of 73] Compiling Distribution.Simple.Program.Ld ( libraries/Cabal/Cabal/Distribution/Simple/Program/Ld.hs, bootstrapping/Distribution/Simple/Program/Ld.o )
[38 of 73] Compiling Distribution.Simple.Program.Script ( libraries/Cabal/Cabal/Distribution/Simple/Program/Script.hs, bootstrapping/Distribution/Simple/Program/Script.o )
[39 of 73] Compiling Distribution.ParseUtils ( libraries/Cabal/Cabal/Distribution/ParseUtils.hs, bootstrapping/Distribution/ParseUtils.o )
[40 of 73] Compiling Distribution.PackageDescription.Parse ( libraries/Cabal/Cabal/Distribution/PackageDescription/Parse.hs, bootstrapping/Distribution/PackageDescription/Parse.o )
[41 of 73] Compiling Distribution.InstalledPackageInfo ( libraries/Cabal/Cabal/Distribution/InstalledPackageInfo.hs, bootstrapping/Distribution/InstalledPackageInfo.o )
[42 of 73] Compiling Distribution.Simple.Program.HcPkg ( libraries/Cabal/Cabal/Distribution/Simple/Program/HcPkg.hs, bootstrapping/Distribution/Simple/Program/HcPkg.o )
[43 of 73] Compiling Distribution.Simple.PackageIndex ( libraries/Cabal/Cabal/Distribution/Simple/PackageIndex.hs, bootstrapping/Distribution/Simple/PackageIndex.o )
[44 of 73] Compiling Distribution.Simple.Command ( libraries/Cabal/Cabal/Distribution/Simple/Command.hs, bootstrapping/Distribution/Simple/Command.o )
[45 of 73] Compiling Distribution.Simple.Setup ( libraries/Cabal/Cabal/Distribution/Simple/Setup.hs, bootstrapping/Distribution/Simple/Setup.o )
[46 of 73] Compiling Distribution.Simple.LocalBuildInfo ( libraries/Cabal/Cabal/Distribution/Simple/LocalBuildInfo.hs, bootstrapping/Distribution/Simple/LocalBuildInfo.o )
[47 of 73] Compiling Distribution.Simple.Build.Macros ( libraries/Cabal/Cabal/Distribution/Simple/Build/Macros.hs, bootstrapping/Distribution/Simple/Build/Macros.o )
[48 of 73] Compiling Distribution.Simple.BuildPaths ( libraries/Cabal/Cabal/Distribution/Simple/BuildPaths.hs, bootstrapping/Distribution/Simple/BuildPaths.o )
[49 of 73] Compiling Distribution.Simple.Build.PathsModule ( libraries/Cabal/Cabal/Distribution/Simple/Build/PathsModule.hs, bootstrapping/Distribution/Simple/Build/PathsModule.o )
[50 of 73] Compiling Distribution.Simple.JHC ( libraries/Cabal/Cabal/Distribution/Simple/JHC.hs, bootstrapping/Distribution/Simple/JHC.o )
[51 of 73] Compiling Distribution.Simple.UHC ( libraries/Cabal/Cabal/Distribution/Simple/UHC.hs, bootstrapping/Distribution/Simple/UHC.o )
[52 of 73] Compiling Distribution.Simple.BuildTarget ( libraries/Cabal/Cabal/Distribution/Simple/BuildTarget.hs, bootstrapping/Distribution/Simple/BuildTarget.o )
[53 of 73] Compiling Distribution.Simple.LHC ( libraries/Cabal/Cabal/Distribution/Simple/LHC.hs, bootstrapping/Distribution/Simple/LHC.o )
[54 of 73] Compiling Distribution.Simple.NHC ( libraries/Cabal/Cabal/Distribution/Simple/NHC.hs, bootstrapping/Distribution/Simple/NHC.o )
[55 of 73] Compiling Distribution.Simple.Program.GHC ( libraries/Cabal/Cabal/Distribution/Simple/Program/GHC.hs, bootstrapping/Distribution/Simple/Program/GHC.o )
[56 of 73] Compiling Distribution.Simple.Program.Hpc ( libraries/Cabal/Cabal/Distribution/Simple/Program/Hpc.hs, bootstrapping/Distribution/Simple/Program/Hpc.o )
[57 of 73] Compiling Distribution.Simple.Hpc ( libraries/Cabal/Cabal/Distribution/Simple/Hpc.hs, bootstrapping/Distribution/Simple/Hpc.o )
[58 of 73] Compiling Distribution.Simple.Test ( libraries/Cabal/Cabal/Distribution/Simple/Test.hs, bootstrapping/Distribution/Simple/Test.o )
[59 of 73] Compiling Distribution.Simple.PreProcess ( libraries/Cabal/Cabal/Distribution/Simple/PreProcess.hs, bootstrapping/Distribution/Simple/PreProcess.o )
[60 of 73] Compiling Distribution.Simple.Hugs ( libraries/Cabal/Cabal/Distribution/Simple/Hugs.hs, bootstrapping/Distribution/Simple/Hugs.o )
[61 of 73] Compiling Distribution.Simple.SrcDist ( libraries/Cabal/Cabal/Distribution/Simple/SrcDist.hs, bootstrapping/Distribution/Simple/SrcDist.o )
[62 of 73] Compiling Distribution.Simple.UserHooks ( libraries/Cabal/Cabal/Distribution/Simple/UserHooks.hs, bootstrapping/Distribution/Simple/UserHooks.o )
[63 of 73] Compiling Distribution.Simple.Bench ( libraries/Cabal/Cabal/Distribution/Simple/Bench.hs, bootstrapping/Distribution/Simple/Bench.o )
[64 of 73] Compiling Distribution.Simple.GHC.IPI642 ( libraries/Cabal/Cabal/Distribution/Simple/GHC/IPI642.hs, bootstrapping/Distribution/Simple/GHC/IPI642.o )
[65 of 73] Compiling Distribution.Simple.GHC.IPI641 ( libraries/Cabal/Cabal/Distribution/Simple/GHC/IPI641.hs, bootstrapping/Distribution/Simple/GHC/IPI641.o )
[66 of 73] Compiling Distribution.Simple.GHC ( libraries/Cabal/Cabal/Distribution/Simple/GHC.hs, bootstrapping/Distribution/Simple/GHC.o )
[67 of 73] Compiling Distribution.Simple.Configure ( libraries/Cabal/Cabal/Distribution/Simple/Configure.hs, bootstrapping/Distribution/Simple/Configure.o )
[68 of 73] Compiling Distribution.Simple.Register ( libraries/Cabal/Cabal/Distribution/Simple/Register.hs, bootstrapping/Distribution/Simple/Register.o )
[69 of 73] Compiling Distribution.Simple.Build ( libraries/Cabal/Cabal/Distribution/Simple/Build.hs, bootstrapping/Distribution/Simple/Build.o )
[70 of 73] Compiling Distribution.Simple.Haddock ( libraries/Cabal/Cabal/Distribution/Simple/Haddock.hs, bootstrapping/Distribution/Simple/Haddock.o )
[71 of 73] Compiling Distribution.Simple.Install ( libraries/Cabal/Cabal/Distribution/Simple/Install.hs, bootstrapping/Distribution/Simple/Install.o )
[72 of 73] Compiling Distribution.Simple ( libraries/Cabal/Cabal/Distribution/Simple.hs, bootstrapping/Distribution/Simple.o )
[73 of 73] Compiling Main             ( utils/ghc-cabal/Main.hs, bootstrapping/Main.o )
Linking utils/ghc-cabal/dist/build/tmp/ghc-cabal ...
"touch" utils/ghc-cabal/dist/build/tmp/ghc-cabal
building inplace/bin/ghc-cabal
"cp" utils/ghc-cabal/dist/build/tmp/ghc-cabal inplace/bin/ghc-cabal
building compiler/stage1/build//.
"inplace/bin/mkdirhier" compiler/stage1/build//.
building compiler/stage1/build/Config.hs
"rm" -f compiler/stage1/build/Config.hs  
Creating compiler/stage1/build/Config.hs ... 
done.
building libraries/Cabal/Cabal/dist-boot/package-data.mk
"inplace/bin/ghc-cabal" configure libraries/Cabal/Cabal dist-boot "" --with-ghc="/nix/store/7qkv5k07kwpy3b89dpk8qj7ir6c5bdrf-ghc-7.8.3-binary/bin/ghc" --with-ghc-pkg="/nix/store/7qkv5k07kwpy3b89dpk8qj7ir6c5bdrf-ghc-7.8.3-binary/bin/ghc-pkg"  --package-db=/private/var/folders/fl/sv20mnl95w7114pq00w2y74r0000gp/T/nix-build-ghc-7.8.4.drv-19/ghc-7.8.4/libraries/bootstrapping.conf --disable-library-for-ghci --enable-library-vanilla --disable-library-profiling --disable-shared --configure-option=CFLAGS=" -m64 -fno-stack-protector   " --configure-option=LDFLAGS=" -m64  " --configure-option=CPPFLAGS=" -m64  " --gcc-options=" -m64 -fno-stack-protector     -m64  "   --constraint "Cabal == 1.18.1.5"   --constraint "hpc == 0.6.0.1"   --constraint "bin-package-db == 0.0.0.0"   --constraint "hoopl == 3.10.0.1"   --constraint "transformers == 0.3.0.0"   --constraint "terminfo == 0.4.0.0" --with-gcc="/nix/store/4ygz693scrkssyph413akmpw13j178dw-clang-wrapper-3.5.0/bin/clang" --configure-option=--with-cc="/nix/store/4ygz693scrkssyph413akmpw13j178dw-clang-wrapper-3.5.0/bin/clang" --with-ar="/nix/store/6q19khwif3mb95shswj1kp82n48syinc-cctools-port-855/bin/ar" --with-ranlib="/nix/store/6q19khwif3mb95shswj1kp82n48syinc-cctools-port-855/bin/ranlib"  
Configuring Cabal-1.18.1.5...
ghc-cabal:
/nix/store/7qkv5k07kwpy3b89dpk8qj7ir6c5bdrf-ghc-7.8.3-binary/bin/haddock:
permission denied
make[1]: *** [libraries/Cabal/Cabal/dist-boot/package-data.mk] Error 1
make: *** [all] Error 2
builder for ‘/nix/store/qhfh98p9dhkhayrv38axhvb32wv1fjpf-ghc-7.8.4.drv’ failed with exit code 2
error: build of ‘/nix/store/qhfh98p9dhkhayrv38axhvb32wv1fjpf-ghc-7.8.4.drv’ failed
shlevy commented 9 years ago

In addition to the obvious error, this stands out:

: Warning: Couldn't figure out LLVM version! Make sure you have installed LLVM ghc: could not execute: opt failed to compile
gridaphobe commented 9 years ago

@shlevy the LLVM warning is expected as GHC is not built with LLVM support in nixpkgs.

pikajude commented 9 years ago

Further analysis shows that ghc-cabal prints this error for not just haddock, but any binary it tries to execute, including ld within the clang-wrapper tree.

copumpkin commented 9 years ago

@joelteon pull my latest darwin-sandbox and try rebuilding your ghc with that. I just spent the past several hours tracking it down and am going to bed, but this should fix it. Happy to explain what was wrong at some point, but a hint is in the big comment I added in my latest nix commit.

(please close this issue if my change fixes it for you)

copumpkin commented 9 years ago

@joelteon left the thing to compile overnight and got what seems to be a working ghc out of it (haskellPackages.lens is now chugging along)

copumpkin commented 9 years ago

@joelteon this is fixed now, right?

copumpkin commented 9 years ago

@joelteon ping

copumpkin commented 9 years ago

Getting the sense that this is fixed