Closed peterood closed 10 years ago
The 127 exit code means "command not found". I cannot really see which command wasn't found in the log above. Can you post the output of cabal install -v3 network-2.4.2.2
here?
Thanks. I made four [redaction]s in the Environment section. Please let me know if I need to post anything else.
[pdr@Peters-MacBook-Pro:~]$ cabal install -v3 network-2.4.2.2
searching for ghc in path.
found ghc at /usr/local/bin/ghc
("/usr/local/bin/ghc",["--numeric-version"])
/usr/local/bin/ghc is version 7.6.3
looking for tool "ghc-pkg" near compiler in /usr/local/bin
found ghc-pkg in /usr/local/bin/ghc-pkg
("/usr/local/bin/ghc-pkg",["--version"])
/usr/local/bin/ghc-pkg is version 7.6.3
("/usr/local/bin/ghc",["--supported-languages"])
("/usr/local/bin/ghc",["--info"])
Reading installed packages...
("/usr/local/bin/ghc-pkg",["dump","--global","-v0"])
("/usr/local/bin/ghc-pkg",["dump","--user","-v0"])
("/usr/local/bin/ghc",["--print-libdir"])
Reading available packages...
Choosing modular solver.
Resolving dependencies...
[0] trying: network-2.4.2.2
[1] trying: base-4.6.0.1/installed-6c3...
[2] trying: rts-1.0/installedbuil...
[3] trying: integer-gmp-0.5.0.0/installed-2f1...
[4] trying: ghc-prim-0.3.0.0/installed-d52...
[5] trying: network-2.4.2.2:!test
[6] trying: unix-2.6.0.1/installed-1b2...
[7] trying: time-1.4.0.1/installed-10d...
[8] trying: old-locale-1.0.0.5/installed-672...
[9] trying: deepseq-1.3.0.1/installed-5cc...
[_10] trying: array-0.4.0.1/installed-3b7...
[_11] trying: parsec-3.1.4/installed-b00...
[_12] trying: text-1.0.0.0/installed-072...
[_13] trying: mtl-2.1.2/installed-94c...
[_14] trying: transformers-0.3.0.0/installed-ff2...
[_15] trying: bytestring-0.10.0.2/installed-bf7...
[_16] done
Ready to install network-2.4.2.2
Waiting for install task to finish...
Extracting
/Users/pdr/Library/Haskell/repo-cache/hackage.haskell.org/network/2.4.2.2/network-2.4.2.2.tar.gz
to /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/network-2.4.2.2-28799...
Updating network.cabal with the latest revision from the index.
Using internal setup method with build-type Configure and args:
["configure","--verbose=3","--ghc","--prefix=/Users/pdr/Library/Haskell/$compiler/lib/$pkgid","--libsubdir=","--datasubdir=","--docdir=$prefix/doc","--enable-library-profiling","--user","--constraint=unix
==2.6.0.1","--constraint=parsec ==3.1.4","--constraint=bytestring
==0.10.0.2","--constraint=base
==4.6.0.1","--disable-tests","--disable-benchmarks"]
Configuring network-2.4.2.2...
creating dist
searching for ghc in path.
found ghc at /usr/local/bin/ghc
("/usr/local/bin/ghc",["--numeric-version"])
/usr/local/bin/ghc is version 7.6.3
looking for tool "ghc-pkg" near compiler in /usr/local/bin
found ghc-pkg in /usr/local/bin/ghc-pkg
("/usr/local/bin/ghc-pkg",["--version"])
/usr/local/bin/ghc-pkg is version 7.6.3
("/usr/local/bin/ghc",["--supported-languages"])
("/usr/local/bin/ghc",["--info"])
Reading installed packages...
("/usr/local/bin/ghc-pkg",["dump","--global","-v0"])
("/usr/local/bin/ghc-pkg",["dump","--user","-v0"])
("/usr/local/bin/ghc",["--print-libdir"])
Dependency base ==4.6.0.1: using base-4.6.0.1
Dependency bytestring ==0.10.0.2: using bytestring-0.10.0.2
Dependency parsec ==3.1.4: using parsec-3.1.4
Dependency unix ==2.6.0.1: using unix-2.6.0.1
searching for alex in path.
found alex at /usr/bin/alex
("/usr/bin/alex",["--version"])
/usr/bin/alex is version 3.0.5
searching for ar in path.
found ar at /usr/bin/ar
searching for c2hs in path.
Cannot find c2hs on the path
searching for cpphs in path.
Cannot find cpphs on the path
searching for ffihugs in path.
Cannot find ffihugs on the path
searching for gcc in path.
found gcc at /usr/bin/gcc
("/usr/bin/gcc",["-dumpversion"])
/usr/bin/gcc is version 4.2.1
searching for greencard in path.
Cannot find greencard on the path
searching for haddock in path.
found haddock at /usr/local/bin/haddock
("/usr/local/bin/haddock",["--version"])
/usr/local/bin/haddock is version 2.13.2
searching for happy in path.
found happy at /usr/bin/happy
("/usr/bin/happy",["--version"])
/usr/bin/happy is version 1.18.10
searching for hmake in path.
Cannot find hmake on the path
searching for hpc in path.
found hpc at /usr/local/bin/hpc
("/usr/local/bin/hpc",["version"])
/usr/local/bin/hpc is version 0.6
looking for tool "hsc2hs" near compiler in /usr/local/bin
found hsc2hs in /usr/local/bin/hsc2hs
("/usr/local/bin/hsc2hs",["--version"])
/usr/local/bin/hsc2hs is version 0.67
searching for HsColour in path.
Cannot find HsColour on the path
searching for hugs in path.
Cannot find hugs on the path
searching for jhc in path.
Cannot find jhc on the path
searching for ld in path.
found ld at /usr/bin/ld
("/usr/local/bin/ghc",["-c","/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/28799.c","-o","/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/28799.o"])
("/usr/bin/ld",["-x","-r","/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/28799.o","-o","/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/28800.o"])
searching for lhc in path.
Cannot find lhc on the path
searching for lhc-pkg in path.
Cannot find lhc-pkg on the path
searching for nhc98 in path.
Cannot find nhc98 on the path
searching for pkg-config in path.
found pkg-config at /usr/local/bin/pkg-config
("/usr/local/bin/pkg-config",["--version"])
/usr/local/bin/pkg-config is version 0.28
searching for ranlib in path.
found ranlib at /usr/bin/ranlib
searching for strip in path.
found strip at /usr/bin/strip
searching for tar in path.
found tar at /usr/bin/tar
searching for uhc in path.
Cannot find uhc on the path
Using Cabal-1.16.0 compiled by ghc-7.6
Using compiler: ghc-7.6.3
Using install prefix: /Users/pdr/Library/Haskell/ghc-7.6.3/lib/network-2.4.2.2
Binaries installed in:
/Users/pdr/Library/Haskell/ghc-7.6.3/lib/network-2.4.2.2/bin
Libraries installed in:
/Users/pdr/Library/Haskell/ghc-7.6.3/lib/network-2.4.2.2/lib
Private binaries installed in:
/Users/pdr/Library/Haskell/ghc-7.6.3/lib/network-2.4.2.2/libexec
Data files installed in:
/Users/pdr/Library/Haskell/ghc-7.6.3/lib/network-2.4.2.2/share
Documentation installed in:
/Users/pdr/Library/Haskell/ghc-7.6.3/lib/network-2.4.2.2/doc
Using alex version 3.0.5 found on system at: /usr/bin/alex
Using ar found on system at: /usr/bin/ar
No c2hs found
No cpphs found
No ffihugs found
Using gcc version 4.2.1 found on system at: /usr/bin/gcc
Using ghc version 7.6.3 found on system at: /usr/local/bin/ghc
Using ghc-pkg version 7.6.3 found on system at: /usr/local/bin/ghc-pkg
No greencard found
Using haddock version 2.13.2 found on system at: /usr/local/bin/haddock
Using happy version 1.18.10 found on system at: /usr/bin/happy
No hmake found
Using hpc version 0.6 found on system at: /usr/local/bin/hpc
Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs
No hscolour found
No hugs found
No jhc found
Using ld found on system at: /usr/bin/ld
No lhc found
No lhc-pkg found
No nhc98 found
Using pkg-config version 0.28 found on system at: /usr/local/bin/pkg-config
Using ranlib found on system at: /usr/bin/ranlib
Using strip found on system at: /usr/bin/strip
Using tar found on system at: /usr/bin/tar
No uhc found
Environment: [("MANPATH","/Users/pdr/.rvm/rubies/ruby-2.0.0-p247/share/man:/Users/pdr/.rvm/man:/usr/local/share/man:/usr/share/man:/opt/X11/share/man:/usr/local/git/share/man:/usr/local/MacGPG2/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man"),("LESS_TERMCAP_mb","\ESCredacted,("rvm_bin_path","/Users/pdr/.rvm/bin"),("LESS_TERMCAP_md","\ESCredacted,("LESS_TERMCAP_me","\ESC[0m"),("SHELL","/bin/bash"),("TERM","xterm"),("HISTSIZE","1000"),("TMPDIR","/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/"),("IRBRC","/Users/pdr/.rvm/rubies/ruby-2.0.0-p247/.irbrc"),("Apple_PubSub_Socket_Render","/tmp/launch-VKv2uD/Render"),("MY_RUBY_HOME","/Users/pdr/.rvm/rubies/ruby-2.0.0-p247"),("LESS_TERMCAP_ue","\ESC[0m"),("GOOGLE_DEFAULT_CLIENT_ID”,”[redacted].apps.googleusercontent.com"),("USER","pdr"),("HISTFILESIZE","1000"),("GOOGLE_DEFAULT_CLIENT_SECRET”,”[redacted]“),(“COMMAND_MODE","unix2003"),("PERLBREW_BASHRC_VERSION","0.66"),("rvm_path","/Users/pdr/.rvm"),("SSH_AUTH_SOCK","/tmp/launch-v0kwEg/Listeners"),("CF_USER_TEXT_ENCODING","0x1F5:0:0"),("PERLBREW_ROOT","/Users/pdr/perl5/perlbrew"),("MAVEN_OPTS","-XX:MaxPermSize=512m"),("LESS_TERMCAP_us","\ESCredacted,(“rvm_prefix","/Users/pdr"),("PATH","/usr/local/bin:/usr/local/sbin:/usr/local/share/npm/bin:/Users/pdr/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin/mongo:/opt/subversion/bin:/Users/pdr/perl5/perlbrew/bin:/Users/pdr/.rvm/gems/ruby-2.0.0-p247/bin:/Users/pdr/.rvm/gems/ruby-2.0.0-p247@global/bin:/Users/pdr/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/pdr/.rvm/bin:/usr/local/bin:/Users/pdr/Library/Haskell/bin:/usr/local/share/npm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/usr/local/go/bin:/usr/local/MacGPG2/bin:/usr/texbin:/usr/local/sbin:~/bin:/Users/pdr/.rvm/bin:/Users/pdr/.rvm/bin"),("CHECKFIX1436934","1"),("PWD","/Users/pdr"),("JAVA_HOME","/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home"),("LANG","en_US.UTF-8"),("ITERM_PROFILE","Copy of Default"),("NODE_PATH","/usr/local/lib/node_modules:"),("PERLBREW_HOME","/Users/pdr/.perlbrew"),("rvm_env_string","ruby-2.0.0-p247"),("HISTCONTROL","ignoredups"),("rvm_version","1.21.9 (stable)"),("HOME","/Users/pdr"),("COLORFGBG","7;0"),("SHLVL","1"),("rvm_ruby_string","ruby-2.0.0-p247"),("ITERM_SESSION_ID","w1t0p0"),("LOGNAME","pdr"),("GEM_PATH","/Users/pdr/.rvm/gems/ruby-2.0.0-p247:/Users/pdr/.rvm/gems/ruby-2.0.0-p247@global"),("LESS_TERMCAP_so","\ESC[01;44;33m"),("PROMPT_COMMAND","echo -ne \"\033]0;$PWD\007\""),("DISPLAY","/tmp/launch-iZSztQ/org.macosforge.xquartz:0"),("SECURITYSESSIONID”,”[redacted]“),(“RUBY_VERSION","ruby-2.0.0-p247"),("LESS_TERMCAP_se","\ESC0m"),("CFLAGS","-m64")
sh returned ExitFailure 127
Failed to install network-2.4.2.2
World file is already up to date.
Is sh
on your path? I'm having a hard time figuring out why calling sh
would fail.
/bin/sh
wasn't on my path so I added it to /etc/paths
. I opened a new terminal session and am still receiving the ExitFailure 127 when I run cabal install cabal cabal-install
or cabal install -v3 network-2.4.2.2
. Here's the output to echo $PATH
.
/usr/local/bin
/usr/local/sbin
/usr/local/share/npm/bin
/Users/pdr/bin
/opt/local/bin
/opt/local/sbin
/usr/local/bin/mongo
/opt/subversion/bin
/Users/pdr/perl5/perlbrew/bin
/Users/pdr/.rvm/gems/ruby-2.0.0-p247/bin
/Users/pdr/.rvm/gems/ruby-2.0.0-p247@global/bin
/Users/pdr/.rvm/rubies/ruby-2.0.0-p247/bin
/Users/pdr/.rvm/bin
/usr/local/bin
/Users/pdr/Library/Haskell/bin
/usr/local/share/npm/bin
/usr/bin
/bin
/bin/sh
/usr/sbin
/sbin
/usr/local/bin
/opt/X11/bin
/usr/local/git/bin
/usr/local/go/bin
/usr/local/MacGPG2/bin
/usr/texbin
/usr/local/sbin
~/bin
/Users/pdr/.rvm/bin
/Users/pdr/.rvm/bin
I'm afraid I don't know what's going on. Is this on a normal OS X Haskell Platform install? Could you try:
cabal unpack network-2.4.2.2
cd network-2.4.2.2
cabal configure -v3
cabal build -v3
and see if that gives any clues about what's actually failing?
I installed from http://www.haskell.org/platform/mac.html and am running 10.9.1 so added ghc-clang-wrapper to /usr/bin
. Here's the requested output. Sorry the formatting's a little off at the end. By any chance, do you know of a Manhattan/Brooklyn Haskeller that wouldn't mind taking a look at my machine at some Haskell meetup? Or maybe it just needs a reinstall?
cabal configure -v3
searching for ghc in path.
found ghc at /usr/local/bin/ghc
("/usr/local/bin/ghc",["--numeric-version"])
/usr/local/bin/ghc is version 7.6.3
looking for tool "ghc-pkg" near compiler in /usr/local/bin
found ghc-pkg in /usr/local/bin/ghc-pkg
("/usr/local/bin/ghc-pkg",["--version"])
/usr/local/bin/ghc-pkg is version 7.6.3
("/usr/local/bin/ghc",["--supported-languages"])
("/usr/local/bin/ghc",["--info"])
Reading installed packages...
("/usr/local/bin/ghc-pkg",["dump","--global","-v0"])
("/usr/local/bin/ghc-pkg",["dump","--user","-v0"])
("/usr/local/bin/ghc",["--print-libdir"])
Reading available packages...
Choosing modular solver.
Resolving dependencies...
[0] trying: network-2.4.2.2
[1] trying: base-4.6.0.1/installed-6c3...
[2] trying: rts-1.0/installedbuil...
[3] trying: integer-gmp-0.5.0.0/installed-2f1...
[4] trying: ghc-prim-0.3.0.0/installed-d52...
[5] trying: network-2.4.2.2:!test
[6] trying: unix-2.6.0.1/installed-1b2...
[7] trying: time-1.4.0.1/installed-10d...
[8] trying: old-locale-1.0.0.5/installed-672...
[9] trying: deepseq-1.3.0.1/installed-5cc...
[_10] trying: array-0.4.0.1/installed-3b7...
[_11] trying: parsec-3.1.4/installed-b00...
[_12] trying: text-1.0.0.0/installed-072...
[_13] trying: mtl-2.1.2/installed-94c...
[_14] trying: transformers-0.3.0.0/installed-ff2...
[_15] trying: bytestring-0.10.0.2/installed-bf7...
[_16] done
Using internal setup method with build-type Configure and args:
["configure","--verbose=3","--ghc","--prefix=/Users/pdr/Library/Haskell/$compiler/lib/$pkgid","--libsubdir=","--datasubdir=","--docdir=$prefix/doc","--enable-library-profiling","--user","--constraint=unix
==2.6.0.1","--constraint=parsec ==3.1.4","--constraint=bytestring
==0.10.0.2","--constraint=base
==4.6.0.1","--disable-tests","--disable-benchmarks"]
Configuring network-2.4.2.2...
creating dist
searching for ghc in path.
found ghc at /usr/local/bin/ghc
("/usr/local/bin/ghc",["--numeric-version"])
/usr/local/bin/ghc is version 7.6.3
looking for tool "ghc-pkg" near compiler in /usr/local/bin
found ghc-pkg in /usr/local/bin/ghc-pkg
("/usr/local/bin/ghc-pkg",["--version"])
/usr/local/bin/ghc-pkg is version 7.6.3
("/usr/local/bin/ghc",["--supported-languages"])
("/usr/local/bin/ghc",["--info"])
Reading installed packages...
("/usr/local/bin/ghc-pkg",["dump","--global","-v0"])
("/usr/local/bin/ghc-pkg",["dump","--user","-v0"])
("/usr/local/bin/ghc",["--print-libdir"])
Dependency base ==4.6.0.1: using base-4.6.0.1
Dependency bytestring ==0.10.0.2: using bytestring-0.10.0.2
Dependency parsec ==3.1.4: using parsec-3.1.4
Dependency unix ==2.6.0.1: using unix-2.6.0.1
searching for alex in path.
found alex at /usr/bin/alex
("/usr/bin/alex",["--version"])
/usr/bin/alex is version 3.0.5
searching for ar in path.
found ar at /usr/bin/ar
searching for c2hs in path.
Cannot find c2hs on the path
searching for cpphs in path.
Cannot find cpphs on the path
searching for ffihugs in path.
Cannot find ffihugs on the path
searching for gcc in path.
found gcc at /usr/bin/gcc
("/usr/bin/gcc",["-dumpversion"])
/usr/bin/gcc is version 4.2.1
searching for greencard in path.
Cannot find greencard on the path
searching for haddock in path.
found haddock at /usr/local/bin/haddock
("/usr/local/bin/haddock",["--version"])
/usr/local/bin/haddock is version 2.13.2
searching for happy in path.
found happy at /usr/bin/happy
("/usr/bin/happy",["--version"])
/usr/bin/happy is version 1.18.10
searching for hmake in path.
Cannot find hmake on the path
searching for hpc in path.
found hpc at /usr/local/bin/hpc
("/usr/local/bin/hpc",["version"])
/usr/local/bin/hpc is version 0.6
looking for tool "hsc2hs" near compiler in /usr/local/bin
found hsc2hs in /usr/local/bin/hsc2hs
("/usr/local/bin/hsc2hs",["--version"])
/usr/local/bin/hsc2hs is version 0.67
searching for HsColour in path.
Cannot find HsColour on the path
searching for hugs in path.
Cannot find hugs on the path
searching for jhc in path.
Cannot find jhc on the path
searching for ld in path.
found ld at /usr/bin/ld
("/usr/local/bin/ghc",["-c","/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/36710.c","-o","/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/36710.o"])
("/usr/bin/ld",["-x","-r","/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/36710.o","-o","/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/36711.o"])
searching for lhc in path.
Cannot find lhc on the path
searching for lhc-pkg in path.
Cannot find lhc-pkg on the path
searching for nhc98 in path.
Cannot find nhc98 on the path
searching for pkg-config in path.
found pkg-config at /usr/local/bin/pkg-config
("/usr/local/bin/pkg-config",["--version"])
/usr/local/bin/pkg-config is version 0.28
searching for ranlib in path.
found ranlib at /usr/bin/ranlib
searching for strip in path.
found strip at /usr/bin/strip
searching for tar in path.
found tar at /usr/bin/tar
searching for uhc in path.
Cannot find uhc on the path
Using Cabal-1.16.0 compiled by ghc-7.6
Using compiler: ghc-7.6.3
Using install prefix: /Users/pdr/Library/Haskell/ghc-7.6.3/lib/network-2.4.2.2
Binaries installed in:
/Users/pdr/Library/Haskell/ghc-7.6.3/lib/network-2.4.2.2/bin
Libraries installed in:
/Users/pdr/Library/Haskell/ghc-7.6.3/lib/network-2.4.2.2/lib
Private binaries installed in:
/Users/pdr/Library/Haskell/ghc-7.6.3/lib/network-2.4.2.2/libexec
Data files installed in:
/Users/pdr/Library/Haskell/ghc-7.6.3/lib/network-2.4.2.2/share
Documentation installed in:
/Users/pdr/Library/Haskell/ghc-7.6.3/lib/network-2.4.2.2/doc
Using alex version 3.0.5 found on system at: /usr/bin/alex
Using ar found on system at: /usr/bin/ar
No c2hs found
No cpphs found
No ffihugs found
Using gcc version 4.2.1 found on system at: /usr/bin/gcc
Using ghc version 7.6.3 found on system at: /usr/local/bin/ghc
Using ghc-pkg version 7.6.3 found on system at: /usr/local/bin/ghc-pkg
No greencard found
Using haddock version 2.13.2 found on system at: /usr/local/bin/haddock
Using happy version 1.18.10 found on system at: /usr/bin/happy
No hmake found
Using hpc version 0.6 found on system at: /usr/local/bin/hpc
Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs
No hscolour found
No hugs found
No jhc found
Using ld found on system at: /usr/bin/ld
No lhc found
No lhc-pkg found
No nhc98 found
Using pkg-config version 0.28 found on system at: /usr/local/bin/pkg-config
Using ranlib found on system at: /usr/bin/ranlib
Using strip found on system at: /usr/bin/strip
Using tar found on system at: /usr/bin/tar
No uhc found
Environment: [("MANPATH","/Users/pdr/.rvm/rubies/ruby-2.0.0-p247/share/man:/Users/pdr/.rvm/man:/usr/local/share/man:/usr/share/man:/opt/X11/share/man:/usr/local/git/share/man:/usr/local/MacGPG2/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man"),("LESS_TERMCAP_mb","\ESCredacted,("rvm_bin_path","/Users/pdr/.rvm/bin"),("LESS_TERMCAP_md","\ESCredacted,("LESS_TERMCAP_me","\ESC[0m"),("SHELL","/bin/bash"),("TERM","xterm"),("HISTSIZE","1000"),("TMPDIR","/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/"),("IRBRC","/Users/pdr/.rvm/rubies/ruby-2.0.0-p247/.irbrc"),("Apple_PubSub_Socket_Render","/tmp/launch-VKv2uD/Render"),("MY_RUBY_HOME","/Users/pdr/.rvm/rubies/ruby-2.0.0-p247"),("LESS_TERMCAP_ue","\ESC[0m"),("GOOGLE_DEFAULT_CLIENT_ID","[redacted].apps.googleusercontent.com"),("USER","pdr"),("HISTFILESIZE","1000"),("GOOGLE_DEFAULT_CLIENT_SECRET","[redacted]"),("COMMAND_MODE","unix2003"),("PERLBREW_BASHRC_VERSION","0.66"),("rvm_path","/Users/pdr/.rvm"),("SSH_AUTH_SOCK","/tmp/launch-v0kwEg/Listeners"),("CF_USER_TEXT_ENCODING","0x1F5:0:0"),("PERLBREW_ROOT","/Users/pdr/perl5/perlbrew"),("MAVEN_OPTS","-XX:MaxPermSize=512m"),("LESS_TERMCAP_us","\ESCredacted,("rvm_prefix","/Users/pdr"),("PATH","/usr/local/bin:/usr/local/sbin:/usr/local/share/npm/bin:/Users/pdr/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin/mongo:/opt/subversion/bin:/Users/pdr/perl5/perlbrew/bin:/Users/pdr/.rvm/gems/ruby-2.0.0-p247/bin:/Users/pdr/.rvm/gems/ruby-2.0.0-p247@global/bin:/Users/pdr/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/pdr/.rvm/bin:/usr/local/bin:/Users/pdr/Library/Haskell/bin:/usr/local/share/npm/bin:/usr/bin:/bin:/bin/sh:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/usr/local/go/bin:/usr/local/MacGPG2/bin:/usr/texbin:/usr/local/sbin:~/bin:/Users/pdr/.rvm/bin:/Users/pdr/.rvm/bin"),("CHECKFIX1436934","1"),("PWD","/Users/pdr/Downloads/network-2.4.2.2"),("JAVA_HOME","/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home"),("LANG","en_US.UTF-8"),("ITERM_PROFILE","Copy of Default"),("NODE_PATH","/usr/local/lib/node_modules:"),("PERLBREW_HOME","/Users/pdr/.perlbrew"),("HISTCONTROL","ignoredups"),("rvm_version","1.21.9 (stable)"),("HOME","/Users/pdr"),("COLORFGBG","7;0"),("SHLVL","1"),("ITERM_SESSION_ID","w1t0p0"),("LOGNAME","pdr"),("GEM_PATH","/Users/pdr/.rvm/gems/ruby-2.0.0-p247:/Users/pdr/.rvm/gems/ruby-2.0.0-p247@global"),("LESS_TERMCAP_so","\ESC[01;44;33m"),("PROMPT_COMMAND","echo -ne \"\033]0;$PWD\007\""),("DISPLAY","/tmp/launch-iZSztQ/org.macosforge.xquartz:0"),("SECURITYSESSIONID","[redacted]"),("RUBY_VERSION","ruby-2.0.0-p247"),("LESS_TERMCAP_se","\ESC0m"),("CFLAGS","-m64")
sh returned ExitFailure 127
cabal build -v3
Glasgow Haskell Compiler, Version 7.6.3, stage 2 booted by GHC version 7.4.2
Using binary package database: /usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/package.conf.d/package.cache
Using binary package database: /Users/pdr/.ghc/x86_64-darwin-7.6.3/package.conf.d/package.cache
Using package config file: dist/package.conf.inplace
wired-in package ghc-prim mapped to ghc-prim-0.3.0.0-d5221a8c8a269b66ab9a07bdc23317dd
wired-in package integer-gmp mapped to integer-gmp-0.5.0.0-2f15426f5b53fe4c6490832f9b20d8d7
wired-in package base mapped to base-4.6.0.1-6c351d70a24d3e96f315cba68f3acf57
wired-in package rts mapped to builtin_rts
wired-in package template-haskell mapped to template-haskell-2.8.0.0-c2c1b21dbbb37ace4b7dc26c966ec664
wired-in package dph-seq not found.
wired-in package dph-par not found.
Hsc static flags: -static
* Chasing dependencies:
Chasing modules from: _Network.hs,_Network.BSD,_Network.Socket,_Network.Socket.ByteString,_Network.Socket.ByteString.Lazy,_Network.Socket.Internal,_Network.URI,_Network.Socket.ByteString.IOVec,_Network.Socket.ByteString.MsgHdr,_Network.Socket.ByteString.Internal,_Network.Socket.Types
Created temporary directory: /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc367590
** C pre-processor:
'/usr/local/bin/gcc-4.2' '-E' '-undef' '-traditional' '-m64' '-fno-stack-protector' '-m64' '-I' 'dist/build' '-I' 'dist/build/autogen' '-I' 'dist/build' '-I' 'include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/unix-2.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/time-1.4.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/bytestring-0.10.0.2/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/base-4.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/include' '-D__GLASGOW_HASKELL__=706' '-Ddarwin_BUILD_OS=1' '-Dx86_64_BUILD_ARCH=1' '-Ddarwin_HOST_OS=1' '-Dx86_64_HOST_ARCH=1' '-U PIC' '-DPIC' '-include' 'dist/build/autogen/cabal_macros.h' '-x' 'c' 'Network.hs' '-o' '/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_0.hscpp'
* C pre-processor:
'/usr/local/bin/gcc-4.2' '-E' '-undef' '-traditional' '-m64' '-fno-stack-protector' '-m64' '-I' 'dist/build' '-I' 'dist/build/autogen' '-I' 'dist/build' '-I' 'include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/unix-2.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/time-1.4.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/bytestring-0.10.0.2/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/base-4.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/include' '-DGLASGOW_HASKELL=706' '-Ddarwin_BUILD_OS=1' '-Dx86_64_BUILD_ARCH=1' '-Ddarwin_HOST_OS=1' '-Dx86_64_HOST_ARCH=1' '-U PIC' '-DPIC' '-include' 'dist/build/autogen/cabal_macros.h' '-x' 'c' 'dist/build/Network/BSD.hs' '-o' '/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_1.hscpp'
*\ C pre-processor:
'/usr/local/bin/gcc-4.2' '-E' '-undef' '-traditional' '-m64' '-fno-stack-protector' '-m64' '-I' 'dist/build' '-I' 'dist/build/autogen' '-I' 'dist/build' '-I' 'include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/unix-2.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/time-1.4.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/bytestring-0.10.0.2/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/base-4.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/include' '-DGLASGOW_HASKELL=706' '-Ddarwin_BUILD_OS=1' '-Dx86_64_BUILD_ARCH=1' '-Ddarwin_HOST_OS=1' '-Dx86_64_HOST_ARCH=1' '-U PIC' '-DPIC' '-include' 'dist/build/autogen/cabal_macros.h' '-x' 'c' 'dist/build/Network/Socket.hs' '-o' '/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_2.hscpp'
* C pre-processor:
'/usr/local/bin/gcc-4.2' '-E' '-undef' '-traditional' '-m64' '-fno-stack-protector' '-m64' '-I' 'dist/build' '-I' 'dist/build/autogen' '-I' 'dist/build' '-I' 'include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/unix-2.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/time-1.4.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/bytestring-0.10.0.2/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/base-4.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/include' '-D__GLASGOW_HASKELL__=706' '-Ddarwin_BUILD_OS=1' '-Dx86_64_BUILD_ARCH=1' '-Ddarwin_HOST_OS=1' '-Dx86_64_HOST_ARCH=1' '-U PIC' '-DPIC' '-include' 'dist/build/autogen/cabal_macros.h' '-x' 'c' 'dist/build/Network/Socket/ByteString.hs' '-o' '/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_3.hscpp'
* C pre-processor:
'/usr/local/bin/gcc-4.2' '-E' '-undef' '-traditional' '-m64' '-fno-stack-protector' '-m64' '-I' 'dist/build' '-I' 'dist/build/autogen' '-I' 'dist/build' '-I' 'include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/unix-2.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/time-1.4.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/bytestring-0.10.0.2/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/base-4.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/include' '-DGLASGOW_HASKELL=706' '-Ddarwin_BUILD_OS=1' '-Dx86_64_BUILD_ARCH=1' '-Ddarwin_HOST_OS=1' '-Dx86_64_HOST_ARCH=1' '-U PIC' '-DPIC' '-include' 'dist/build/autogen/cabal_macros.h' '-x' 'c' 'dist/build/Network/Socket/ByteString/Lazy.hs' '-o' '/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_4.hscpp'
*\ C pre-processor:
'/usr/local/bin/gcc-4.2' '-E' '-undef' '-traditional' '-m64' '-fno-stack-protector' '-m64' '-I' 'dist/build' '-I' 'dist/build/autogen' '-I' 'dist/build' '-I' 'include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/unix-2.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/time-1.4.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/bytestring-0.10.0.2/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/base-4.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/include' '-DGLASGOW_HASKELL=706' '-Ddarwin_BUILD_OS=1' '-Dx86_64_BUILD_ARCH=1' '-Ddarwin_HOST_OS=1' '-Dx86_64_HOST_ARCH=1' '-U PIC' '-DPIC' '-include' 'dist/build/autogen/cabal_macros.h' '-x' 'c' 'dist/build/Network/Socket/Internal.hs' '-o' '/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_5.hscpp'
* C pre-processor:
'/usr/local/bin/gcc-4.2' '-E' '-undef' '-traditional' '-m64' '-fno-stack-protector' '-m64' '-I' 'dist/build' '-I' 'dist/build/autogen' '-I' 'dist/build' '-I' 'include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/unix-2.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/time-1.4.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/bytestring-0.10.0.2/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/base-4.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/include' '-D__GLASGOW_HASKELL__=706' '-Ddarwin_BUILD_OS=1' '-Dx86_64_BUILD_ARCH=1' '-Ddarwin_HOST_OS=1' '-Dx86_64_HOST_ARCH=1' '-U PIC' '-DPIC' '-include' 'dist/build/autogen/cabal_macros.h' '-x' 'c' './Network/URI.hs' '-o' '/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_6.hscpp'
* C pre-processor:
'/usr/local/bin/gcc-4.2' '-E' '-undef' '-traditional' '-m64' '-fno-stack-protector' '-m64' '-I' 'dist/build' '-I' 'dist/build/autogen' '-I' 'dist/build' '-I' 'include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/unix-2.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/time-1.4.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/bytestring-0.10.0.2/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/base-4.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/include' '-DGLASGOW_HASKELL=706' '-Ddarwin_BUILD_OS=1' '-Dx86_64_BUILD_ARCH=1' '-Ddarwin_HOST_OS=1' '-Dx86_64_HOST_ARCH=1' '-U PIC' '-DPIC' '-include' 'dist/build/autogen/cabal_macros.h' '-x' 'c' 'dist/build/Network/Socket/ByteString/IOVec.hs' '-o' '/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_7.hscpp'
*\ C pre-processor:
'/usr/local/bin/gcc-4.2' '-E' '-undef' '-traditional' '-m64' '-fno-stack-protector' '-m64' '-I' 'dist/build' '-I' 'dist/build/autogen' '-I' 'dist/build' '-I' 'include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/unix-2.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/time-1.4.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/bytestring-0.10.0.2/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/base-4.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/include' '-DGLASGOW_HASKELL=706' '-Ddarwin_BUILD_OS=1' '-Dx86_64_BUILD_ARCH=1' '-Ddarwin_HOST_OS=1' '-Dx86_64_HOST_ARCH=1' '-U PIC' '-DPIC' '-include' 'dist/build/autogen/cabal_macros.h' '-x' 'c' 'dist/build/Network/Socket/ByteString/MsgHdr.hs' '-o' '/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_8.hscpp'
* C pre-processor:
'/usr/local/bin/gcc-4.2' '-E' '-undef' '-traditional' '-m64' '-fno-stack-protector' '-m64' '-I' 'dist/build' '-I' 'dist/build/autogen' '-I' 'dist/build' '-I' 'include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/unix-2.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/time-1.4.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/bytestring-0.10.0.2/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/base-4.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/include' '-D__GLASGOW_HASKELL__=706' '-Ddarwin_BUILD_OS=1' '-Dx86_64_BUILD_ARCH=1' '-Ddarwin_HOST_OS=1' '-Dx86_64_HOST_ARCH=1' '-U PIC' '-DPIC' '-include' 'dist/build/autogen/cabal_macros.h' '-x' 'c' './Network/Socket/ByteString/Internal.hs' '-o' '/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_9.hscpp'
* C pre-processor:
'/usr/local/bin/gcc-4.2' '-E' '-undef' '-traditional' '-m64' '-fno-stack-protector' '-m64' '-I' 'dist/build' '-I' 'dist/build/autogen' '-I' 'dist/build' '-I' 'include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/unix-2.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/time-1.4.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/bytestring-0.10.0.2/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/base-4.6.0.1/include' '-I' '/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/include' '-D__GLASGOW_HASKELL=706' '-Ddarwin_BUILD_OS=1' '-Dx86_64_BUILD_ARCH=1' '-Ddarwin_HOST_OS=1' '-Dx86_64_HOST_ARCH=1' '-U PIC' '-DPIC__' '-include' 'dist/build/autogen/cabal_macros.h' '-x' 'c' 'dist/build/Network/Socket/Types.hs' '-o' '/var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_10.hscpp'
Stable obj: [Network.Socket.ByteString.IOVec, Network.URI]
Stable BCO: []
Ready for upsweep
[NONREC
ModSummary {
ms_hs_date = 2013-12-31 11:12:01 UTC
ms_mod = network-2.4.2.2:Network.URI,
ms_textual_imps = [import (implicit) Prelude,
import Data.Data ( Data ), import Data.Typeable ( Typeable ),
import Numeric ( showIntAtBase ), import Debug.Trace ( trace ),
import Data.Bits ( (.|.), (.&.), shiftL, shiftR ),
import Data.Char
( ord, chr, isHexDigit, toLower, toUpper, digitToInt ),
import Control.Monad ( MonadPlus(..) ),
import Text.ParserCombinators.Parsec
( GenParser,
ParseError,
parse,
(<|>),
(<?>),
try,
option,
many,
many1,
count,
notFollowedBy,
char,
satisfy,
oneOf,
string,
eof,
unexpected )]
ms_srcimps = []
},
NONREC
ModSummary {
ms_hs_date = 2014-02-19 11:35:41 UTC
ms_mod = network-2.4.2.2:Network.Socket.ByteString.IOVec,
ms_textual_imps = [import (implicit) Prelude,
import Foreign.Storable ( Storable(..) ),
import Foreign.Ptr ( Ptr ),
import Foreign.C.Types ( CChar, CInt, CSize )]
ms_srcimps = []
},
NONREC
ModSummary {
ms_hs_date = 2014-02-19 11:35:42 UTC
ms_mod = network-2.4.2.2:Network.Socket.Types,
ms_textual_imps = [import (implicit) Prelude,
import Foreign.Storable, import Foreign.Ptr,
import Foreign.Marshal.Array, import Foreign.Marshal.Alloc,
import Foreign.C, import Data.Word, import Data.Typeable,
import Data.Ratio, import Data.Maybe, import Data.Bits,
import Control.Monad, import Control.Concurrent.MVar]
ms_srcimps = []
},
NONREC
ModSummary {
ms_hs_date = 2014-02-19 11:35:41 UTC
ms_mod = network-2.4.2.2:Network.Socket.Internal,
ms_textualimps = [import (implicit) Prelude,
import Network.Socket.Types,
import GHC.Conc ( threadWaitRead, threadWaitWrite ),
import Foreign.Storable ( Storable(..) ),
import Foreign.Ptr ( Ptr, castPtr, plusPtr ),
import Foreign.Marshal.Array ( pokeArray, pokeArray0 ),
import Foreign.Marshal.Alloc ( allocaBytes ),
import Foreign.C.Types ( CInt(..), CSize(..) ),
import Foreign.C.String ( castCharToCChar, peekCString ),
import Foreign.C.Error
( throwErrno,
throwErrnoIfMinus1Retry,
throwErrnoIfMinus1RetryMayBlock,
throwErrnoIfMinus1,
Errno(..),
errnoToIOError ),
import Data.Typeable ( Typeable ),
import Data.Word ( Word8, Word16, Word32 ),
import Data.Bits ( (.|.), shiftL, shiftR )]
ms_srcimps = []
},
NONREC
ModSummary {
ms_hs_date = 2014-02-19 11:35:41 UTC
ms_mod = network-2.4.2.2:Network.Socket,
ms_textual_imps = [import (implicit) Prelude,
import Network.Socket.Types, import Network.Socket.Internal,
import GHC.IO.FD, import qualified System.Posix.Internals,
import GHC.IO, import GHC.IO.Exception, import GHC.IO.Handle.FD,
import qualified GHC.IO.Device, import GHC.Conc ( closeFdWith ),
import GHC.Conc ( threadWaitRead, threadWaitWrite ),
import System.IO.Error, import Data.Typeable,
import Control.Concurrent.MVar,
import qualified Control.Exception as E, import Data.Ratio ( (%) ),
import Control.Monad ( liftM, when ), import System.IO,
import Foreign.Marshal.Utils ( maybeWith, with ),
import Foreign.Marshal.Array ( peekArray ),
import Foreign.Marshal.Alloc ( alloca, allocaBytes ),
import Foreign.C.Types ( CInt(..), CSize(..) ),
import Foreign.C.Types ( CUInt, CChar ),
import Foreign.C.String
( CString,
withCString,
withCStringLen,
peekCString,
peekCStringLen ),
import Foreign.C.Error, import Foreign.Storable ( Storable(..) ),
import Foreign.Ptr ( Ptr, castPtr, nullPtr ),
import Data.Word ( Word8, Word16, Word32 ),
import Data.Maybe ( fromMaybe, isJust ),
import Data.List ( delete, foldl' ), import Data.Bits]
ms_srcimps = []
},
NONREC
ModSummary {
ms_hs_date = 2014-02-19 11:35:41 UTC
ms_mod = network-2.4.2.2:Network.Socket.ByteString.MsgHdr,
ms_textual_imps = [import (implicit) Prelude,
import Network.Socket.ByteString.IOVec ( IOVec ),
import Network.Socket.Internal ( zeroMemory ),
import Network.Socket ( SockAddr ),
import Foreign.Storable ( Storable(..) ),
import Foreign.Ptr ( Ptr ),
import Foreign.C.Types ( CInt, CSize, CUInt )]
ms_srcimps = []
},
NONREC
ModSummary {
ms_hs_date = 2013-12-31 11:12:01 UTC
ms_mod = network-2.4.2.2:Network.Socket.ByteString.Internal,
ms_textual_imps = [import (implicit) Prelude,
import GHC.IO.Exception ( IOErrorType(..) ),
import Network.Socket.ByteString.MsgHdr ( MsgHdr ),
import Network.Socket.ByteString.IOVec ( IOVec ),
import Foreign.Ptr ( Ptr ),
import System.Posix.Types ( CSsize(..) ),
import Foreign.C.Types ( CInt(..) ),
import System.IO.Error ( ioeSetErrorString, mkIOError )]
ms_srcimps = []
},
NONREC
ModSummary {
ms_hs_date = 2014-02-19 11:35:41 UTC
ms_mod = network-2.4.2.2:Network.Socket.ByteString,
ms_textualimps = [import (implicit) Prelude,
import GHC.Conc ( threadWaitRead, threadWaitWrite ),
import Network.Socket.ByteString.MsgHdr ( MsgHdr(..) ),
import Network.Socket.ByteString.IOVec ( IOVec(..) ),
import Foreign.Storable ( Storable(..) ),
import Foreign.Ptr ( plusPtr ),
import Foreign.Marshal.Utils ( with ),
import Foreign.Marshal.Array ( allocaArray ),
import Foreign.C.Types ( CSize(..) ),
import Foreign.C.Types ( CChar ),
import Control.Monad ( zipWithM ), import Network.Socket.Types,
import Network.Socket.Internal,
import Network.Socket.ByteString.Internal,
import qualified Data.ByteString as B,
import Network.Socket
( SockAddr, Socket(..), sendBufTo, recvBufFrom ),
import Foreign.Ptr ( Ptr, castPtr ),
import Foreign.Marshal.Alloc ( allocaBytes ),
import Foreign.C.Types ( CInt(..) ), import Data.Word ( Word8 ),
import Data.ByteString.Unsafe ( unsafeUseAsCStringLen ),
import Data.ByteString.Internal ( createAndTrim ),
import Data.ByteString ( ByteString ),
import Control.Monad ( liftM, when )]
ms_srcimps = []
},
NONREC
ModSummary {
ms_hs_date = 2014-02-19 11:35:41 UTC
ms_mod = network-2.4.2.2:Network.Socket.ByteString.Lazy,
ms_textual_imps = [import GHC.Conc ( threadWaitWrite ),
import qualified Data.ByteString.Lazy as L,
import Network.Socket.Internal,
import Network.Socket.ByteString.Internal ( c_writev ),
import Network.Socket.ByteString.IOVec ( IOVec(IOVec) ),
import Foreign.Storable ( Storable(..) ),
import Foreign.Ptr ( plusPtr ),
import Foreign.Marshal.Array ( allocaArray ),
import Data.ByteString.Unsafe ( unsafeUseAsCStringLen ),
import Control.Monad ( unless ),
import qualified Network.Socket.ByteString as N,
import qualified Data.ByteString as S,
import System.IO.Unsafe ( unsafeInterleaveIO ),
import Prelude hiding ( getContents ),
import Network.Socket ( Socket(..), ShutdownCmd(..), shutdown ),
import Data.Int ( Int64 ),
import Data.ByteString.Lazy.Internal
( ByteString(..), defaultChunkSize ),
import Control.Monad ( liftM )]
ms_srcimps = []
},
NONREC
ModSummary {
ms_hs_date = 2014-02-19 11:35:40 UTC
ms_mod = network-2.4.2.2:Network.BSD,
ms_textualimps = [import (implicit) Prelude,
import Network.Socket.Internal ( throwSocketErrorIfMinus1 ),
import Control.Monad ( liftM ), import GHC.IO.Exception,
import System.IO.Unsafe ( unsafePerformIO ),
import System.IO.Error ( ioeSetErrorString, mkIOError ),
import Data.Typeable,
import Foreign.Marshal.Utils ( with, fromBool ),
import Foreign.Marshal.Array ( allocaArray0, peekArray0 ),
import Foreign.Storable ( Storable(..) ),
import Foreign.Ptr ( Ptr, nullPtr ),
import Foreign.C.Types ( CInt(..), CULong(..), CSize(..) ),
import Foreign.C.String ( CString, peekCString, withCString ),
import qualified Control.Exception as E,
import Control.Concurrent ( MVar, newMVar, withMVar ),
import Network.Socket]
ms_srcimps = []
},
NONREC
ModSummary {
ms_hs_date = 2013-12-31 11:12:01 UTC
ms_mod = network-2.4.2.2:Network,
ms_textual_imps = [import qualified Control.Exception as Exception,
import Prelude, import System.IO,
import qualified Network.Socket as Socket ( accept ),
import Network.Socket
hiding ( accept,
socketPort,
recvFrom,
sendTo,
PortNumber,
sClose ),
import Network.BSD, import Data.Maybe ( fromJust ),
import Control.Monad ( liftM )]
ms_srcimps = []
}]
* Deleting temp files:
Deleting:
compile: input file /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_6.hscpp
* Checking old interface for network-2.4.2.2:Network.URI:
* Deleting temp files:
Deleting: /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_0.s
Warning: deleting non-existent /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_0.s
compile: input file /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_7.hscpp
* Checking old interface for network-2.4.2.2:Network.Socket.ByteString.IOVec:
* Deleting temp files:
Deleting: /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_0.s
Warning: deleting non-existent /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_0.s
compile: input file /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_10.hscpp
* Checking old interface for network-2.4.2.2:Network.Socket.Types:
*\ Parser:
Network/Socket/Types.hsc:714:16: parse error on input `CALLCONV' Upsweep partially successful. * Deleting temp files: Deleting: /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_0.s /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_10.hscpp /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_9.hscpp /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_8.hscpp /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_5.hscpp /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_4.hscpp /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_3.hscpp /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_2.hscpp /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_1.hscpp /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_0.hscpp Warning: deleting non-existent /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_0.s link(batch): upsweep (partially) failed OR Main.main not exported; not linking. * Deleting temp files: Deleting: /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_7.hscpp /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0/ghc36759_6.hscpp *\ Deleting temp dirs: Deleting: /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/ghc36759_0
So the problem is in the configure step. Can you try running configure manually:
$ cd network-2.4.2.2
$ ./configure
I think @mightybyte lives in NY.
Thanks. Yes, I remember seeing that name on the Hac NYC registration form. I'll reach out to him if we can't resolve it here.
./configure
[pdr@Peters-MacBook-Pro:~/Downloads/network-2.4.2.2]$ ./configure
checking build system type... i386-apple-darwin13.0.0
checking host system type... i386-apple-darwin13.0.0
checking for gcc... 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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for an ANSI C-conforming const... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/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 fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking ws2tcpip.h usability... no
checking ws2tcpip.h presence... no
checking for ws2tcpip.h... no
checking wspiapi.h usability... no
checking wspiapi.h presence... no
checking for wspiapi.h... no
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking for readlink... yes
checking for symlink... yes
checking for struct msghdr.msg_control... yes
checking for struct msghdr.msg_accrights... no
checking for struct sockaddr.sa_len... yes
checking for in_addr_t in netinet/in.h... yes
checking for SO_PEERCRED and struct ucred in sys/socket.h... no
checking for getpeereid in unistd.h... checking for getpeereid... yes
checking for _head_libws2_32_a in -lws2_32... no
checking for getaddrinfo... yes
checking for gai_strerror... yes
checking whether AI_ADDRCONFIG is declared... yes
checking whether AI_ALL is declared... yes
checking whether AI_NUMERICSERV is declared... yes
checking whether AI_V4MAPPED is declared... yes
checking whether IPV6_V6ONLY is declared... yes
checking whether IPPROTO_IP is declared... yes
checking whether IPPROTO_TCP is declared... yes
checking whether IPPROTO_IPV6 is declared... yes
checking for sendfile in sys/sendfile.h... no
checking for sendfile in sys/socket.h... yes
checking for gethostent... yes
checking for accept4... no
configure: creating ./config.status
config.status: creating network.buildinfo
config.status: creating include/HsNetworkConfig.h
config.status: include/HsNetworkConfig.h is unchanged
So the configure script seems to work. I'm at a loss of what's wrong here. I cannot figure out which command it's running when the failure happens. @dcoutts?
Did @mightybyte or @dcoutts say anything in another channel? I'm going to a Haskell Meetup today and will see if someone wouldn't mind taking a look.
I tried to look a bit with @peterood today at our Haskell Cats meeting. I was able to find the line of code that references the error message, but as @tibbe probably knows, it seems like that error is generic to a bunch of methods. https://github.com/haskell/cabal/search?q=%22some+packages+failed+to+install%22&ref=cmdform "Error: some packages failed to install:"
however, upon looking tonight I see that the instructions say; http://www.haskell.org/platform/mac.html [10.9 osx Mavericks uses] clang as the C compier, and with respect to pre-processing there are some "differences of interpretation" between it and gcc. These differences can affect some Haskell code that uses the CPP extension.
I see Network does use CPP and it does use preprocessor directives, at least import and if/else. https://github.com/haskell/network/search?q=cpp&ref=cmdform&type=Code
Perhaps, @peterood , you could try Kat's solution or this one she referenced? https://github.com/haskell-workshop/gloss-starter/issues/1 OSX Mavericks Fix · Issue #1 · haskell-workshop/gloss-starter @katychuang commented 4 months ago Another solution http://justtesting.org/post/64947952690/the-glasgow-haskell-compiler-ghc-on-os-x-10-9 // AnneTheAgile
@AnneTheAgile I apologize for not replying sooner. Unfortunately, neither of @katychuang's solutions resolved my issue. I'll be doing a clean install soon. Hope to see you at next weekend's Haskell Meetup.
I'd be happy to help in person too. Have a few questions:
cabal install cabal cabal-install -v
do? I've only seen cabal install cabal-install
and am curious. cabal --v
will tell youwhich gcc-4.2
point to /usr/bin/gcc? Because your output says /usr/bin/gcc is version 4.2.1
cabal update
prior to installing network package?Thanks, I appreciate it. @externalreality, @tibbe, @AnneTheAgile have looked at it, and it's probably some mistake on my part. Looking over the output, maybe I need to change the permissions for clang-xcode5-wrapper?
1.
Last login: Fri Mar 7 00:37:18 on ttys004
[pdr@Peters-MacBook-Pro:~]$ cabal install cabal cabal-install -v
Reading available packages...
Choosing modular solver.
Resolving dependencies...
Ready to install network-2.4.2.2
Waiting for install task to finish...
Extracting
/Users/pdr/Library/Haskell/repo-cache/hackage.haskell.org/network/2.4.2.2/network-2.4.2.2.tar.gz
to /var/folders/rb/9dj5zh554h50_dqxwsj8c6640000gn/T/network-2.4.2.2-25504...
Updating network.cabal with the latest revision from the index.
Configuring network-2.4.2.2...
Dependency base ==4.6.0.1: using base-4.6.0.1
Dependency bytestring ==0.10.0.2: using bytestring-0.10.0.2
Dependency parsec ==3.1.4: using parsec-3.1.4
Dependency unix ==2.6.0.1: using unix-2.6.0.1
ghc: could not execute: /usr/local/bin/clang-xcode5-wrapper
Failed to install network-2.4.2.2
World file is already up to date.
cabal: Error: some packages failed to install:
HTTP-4000.2.11 depends on network-2.4.2.2 which failed to install.
cabal-install-1.18.0.2 depends on network-2.4.2.2 which failed to install.
network-2.4.2.2 failed during the configure step. The exception was:
ExitFailure 1
2.
[pdr@Peters-MacBook-Pro:~]$ cabal --v
cabal-install version 1.16.0.2
using version 1.16.0 of the Cabal library
3.
[pdr@Peters-MacBook-Pro:~]$ which gcc-4.2
/usr/local/bin/gcc-4.2
4.
[pdr@Peters-MacBook-Pro:~]$ cabal update
Downloading the latest package list from hackage.haskell.org
Note: there is a new version of cabal-install available.
To upgrade, run: cabal install cabal-install
Then
[pdr@Peters-MacBook-Pro:~]$ cabal install cabal-install
Resolving dependencies...
Configuring network-2.4.2.2...
ghc: could not execute: /usr/local/bin/clang-xcode5-wrapper
Failed to install network-2.4.2.2
cabal: Error: some packages failed to install:
HTTP-4000.2.11 depends on network-2.4.2.2 which failed to install.
cabal-install-1.18.0.3 depends on network-2.4.2.2 which failed to install.
network-2.4.2.2 failed during the configure step. The exception was:
ExitFailure 1
I researched more into ExitFailure 127 and here is what could potentially be causing problems..
As for the last reported error ExitFailure 1:
ghc-pkg may need cleaning sudo ghc-pkg recache
(source)
Many thanks to @katychuang who helped me resolve my issue which was a conflicted PATH. Please find analysis here https://gist.github.com/peterood/9998939
I'm a beginner Haskeller so please excuse me if this is an obvious fix. When I try to update cabal, I receive the following, ending with it unable to install packages because "network-2.4.2.2 failed during the configure step. The exception was: ExitFailure 127" I'm not sure if my installation is messed up but would appreciate any suggestions how to resolve this issue; thanks.