Hi,This is a box that used to work well. But today, I found that I could not install anything by cabal.I removed ~/.ghc and ~/.cabal to start all userspace thing from the beginning.I used Setup.hs to install Cabal, and bootstrap.sh to install cabal-install. All succeeded.Then I tried to install data-default-class, I got following. Notice the ld fail near the end.Versions: OS: Ubuntu Precise; ghc 7.8.2; Cabal/cabal-install: latest from github.% cabal install -v3 data-default-classSearching for ghc in path.Found ghc at /usr/local/bin/ghc("/usr/local/bin/ghc",["--numeric-version"])/usr/local/bin/ghc is version 7.8.2looking for tool ghc-pkg near compiler in /usr/local/binfound ghc-pkg in /usr/local/bin/ghc-pkg("/usr/local/bin/ghc-pkg",["--version"])/usr/local/bin/ghc-pkg is version 7.8.2("/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...Warning: The package list for the local repo'/home/local/ANT/shida/.cabal/packages/cabal-src/' is missing. The repo isinvalid.Resolving dependencies...targets: data-default-classconstraints:base installedghc-prim installedinteger-gmp installedstanzas data-default-classpreferences:strategy: PreferAllLatest[__0] trying: data-default-class-0.0.1 (user goal)[__1] trying: base-4.7.0.0/installed-018... (dependency of data-default-class-0.0.1)[__2] trying: rts-1.0/installedbuil... (dependency of base-4.7.0.0/installed-018...)[__3] trying: integer-gmp-0.5.1.0/installed-dc4... (dependency of base-4.7.0.0/installed-018...)[__4] next goal: ghc-prim (dependency of base-4.7.0.0/installed-018...)[__4] trying: ghc-prim-0.3.1.0/installed-948...[__5] doneReady to install data-default-class-0.0.1Waiting for install task to finish...Extracting/home/local/ANT/shida/.cabal/packages/hackage.haskell.org/data-default-class/0.0.1/data-default-class-0.0.1.tar.gzto /tmp/data-default-class-0.0.1-19534...Updating data-default-class.cabal with the latest revision from the index.Using internal setup method with build-type Simple and args:["configure","--verbose=3","--ghc","--prefix=/home/local/ANT/shida/.cabal","--bindir=/home/local/ANT/shida/.cabal/bin","--libdir=/home/local/ANT/shida/.cabal/lib","--libsubdir=x86_64-linux-ghc-7.8.2/data-default-class-0.0.1","--libexecdir=/home/local/ANT/shida/.cabal/libexec","--datadir=/home/local/ANT/shida/.cabal/share","--datasubdir=x86_64-linux-ghc-7.8.2/data-default-class-0.0.1","--docdir=/home/local/ANT/shida/.cabal/share/doc/x86_64-linux-ghc-7.8.2/data-default-class-0.0.1","--htmldir=/home/local/ANT/shida/.cabal/share/doc/x86_64-linux-ghc-7.8.2/data-default-class-0.0.1/html","--haddockdir=/home/local/ANT/shida/.cabal/share/doc/x86_64-linux-ghc-7.8.2/data-default-class-0.0.1/html","--sysconfdir=/home/local/ANT/shida/.cabal/etc","--enable-split-objs","--user","--dependency=base=base-4.7.0.0-018311399e3b6350d5be3a16b144df9b","--disable-tests","--exact-configuration","--disable-benchmarks"]Configuring data-default-class-0.0.1...creating distSearching for ghc in path.Found ghc at /usr/local/bin/ghc("/usr/local/bin/ghc",["--numeric-version"])/usr/local/bin/ghc is version 7.8.2looking for tool ghc-pkg near compiler in /usr/local/binfound ghc-pkg in /usr/local/bin/ghc-pkg("/usr/local/bin/ghc-pkg",["--version"])/usr/local/bin/ghc-pkg is version 7.8.2("/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.7.0.0: using base-4.7.0.0Searching for alex in path.Cannot find alex on the pathSearching for ar in path.Found ar at /usr/bin/arSearching for c2hs in path.Cannot find c2hs on the pathSearching for cpphs in path.Cannot find cpphs on the pathSearching for ffihugs in path.Cannot find ffihugs on the pathSearching for gcc in path.Found gcc at /usr/bin/gcc("/usr/bin/gcc",["-dumpversion"])/usr/bin/gcc is version 4.6Searching for greencard in path.Cannot find greencard on the pathSearching for haddock in path.Found haddock at /usr/local/bin/haddock("/usr/local/bin/haddock",["--version"])/usr/local/bin/haddock is version 2.14.2Searching for happy in path.Cannot find happy on the pathSearching for hmake in path.Cannot find hmake on the pathSearching for hpc in path.Found hpc at /usr/local/bin/hpc("/usr/local/bin/hpc",["version"])/usr/local/bin/hpc is version 0.67looking for tool hsc2hs near compiler in /usr/local/binfound hsc2hs in /usr/local/bin/hsc2hs("/usr/local/bin/hsc2hs",["--version"])/usr/local/bin/hsc2hs is version 0.67Searching for HsColour in path.Cannot find HsColour on the pathSearching for hugs in path.Cannot find hugs on the pathSearching for jhc in path.Cannot find jhc on the pathSearching for ld in path.Found ld at /usr/bin/ldEnvironment: [("COLORFGBG","12;default;8"),("COLORTERM","rxvt-xpm"),("DBUS_SESSION_BUS_ADDRESS","unix:abstract=/tmp/dbus-5El0U8sCi8,guid=09290436e309789f9814dffc00000406"),("DEFAULTS_PATH","/usr/share/gconf/xmonad.default.path"),("DESKTOP_SESSION","xmonad"),("DISPLAY","10.69.208.185:0"),("EDITOR","vim"),("GDMSESSION","xmonad"),("GPG_AGENT_INFO","/tmp/gpg-KKH3WT/S.gpg-agent:5467:1"),("GREP_COLOR","1;32"),("GREP_OPTIONS","--color=auto --exclude-dir=.cvs --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn"),("GTK_IM_MODULE","xim"),("HOME","/home/local/ANT/shida"),("LANG","C.UTF-8"),("LC_ALL","C.UTF-8"),("LC_CTYPE","C.UTF-8"),("LESS","-R"),("LOGNAME","shida"),("LSCOLORS","Gxfxcxdxbxegedabagacad"),("MANDATORY_PATH","/usr/share/gconf/xmonad.mandatory.path"),("NODE_PATH","/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript"),("OLDPWD","/home/local/ANT/shida/src/git/cabal/cabal-install"),("PAGER","less"),("PATH","/usr/local/heroku/bin:.:/home/local/ANT/shida/.cabal/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/lightdm/lightdm:/usr/local/bin:/usr/bin:/bin"),("PULSE_SERVER","10.69.208.185"),("PWD","/home/local/ANT/shida"),("QT_IM_MODULE","xim"),("SHELL","/usr/bin/zsh"),("SHLVL","1"),("SSH_AGENT_PID","14748"),("SSH_AUTH_SOCK","/tmp/ssh-NeRVrYb14746/agent.14746"),("TERM","rxvt-unicode-256color"),("UBUNTU_MENUPROXY","libappmenu.so"),("USER","shida"),("VISUAL","vim"),("WINDOWID","14683293"),("XAUTHORITY","/home/local/ANT/shida/.Xauthority"),("XDG_CONFIG_DIRS","/etc/xdg/xdg-xmonad:/etc/xdg"),("XDG_DATA_DIRS","/usr/share/xmonad:/usr/local/share/:/usr/share/"),("XDG_SEAT_PATH","/org/freedesktop/DisplayManager/Seat1"),("XDG_SESSION_COOKIE","05ca21f0ee7e6a10e18260ac00001d83-1402975930.974487-843139146"),("XDG_SESSION_PATH","/org/freedesktop/DisplayManager/Session0"),("XMODIFIERS","@im=ibus"),("ZSH","/home/local/ANT/shida/.oh-my-zsh"),("_","/home/local/ANT/shida/.cabal/bin/cabal")]("/usr/local/bin/ghc",["-c","/tmp/19534.c","-o","/tmp/19534.o"])("/usr/bin/ld",["-x","-r","/tmp/19534.o","-o","/tmp/19535.o"])Searching for lhc in path.Cannot find lhc on the pathSearching for lhc-pkg in path.Cannot find lhc-pkg on the pathSearching for nhc98 in path.Cannot find nhc98 on the pathSearching for pkg-config in path.Found pkg-config at /usr/bin/pkg-config("/usr/bin/pkg-config",["--version"])/usr/bin/pkg-config is version 0.26Searching for strip in path.Found strip at /usr/bin/stripSearching for tar in path.Found tar at /bin/tarSearching for uhc in path.Cannot find uhc on the pathUsing Cabal-1.21.0.0 compiled by ghc-7.8Using compiler: ghc-7.8.2Using install prefix: /home/local/ANT/shida/.cabalBinaries installed in: /home/local/ANT/shida/.cabal/binLibraries installed in:/home/local/ANT/shida/.cabal/lib/x86_64-linux-ghc-7.8.2/data-default-class-0.0.1Private binaries installed in: /home/local/ANT/shida/.cabal/libexecData files installed in:/home/local/ANT/shida/.cabal/share/x86_64-linux-ghc-7.8.2/data-default-class-0.0.1Documentation installed in:/home/local/ANT/shida/.cabal/share/doc/x86_64-linux-ghc-7.8.2/data-default-class-0.0.1Configuration files installed in: /home/local/ANT/shida/.cabal/etcNo alex foundUsing ar found on system at: /usr/bin/arNo c2hs foundNo cpphs foundNo ffihugs foundUsing gcc version 4.6 found on system at: /usr/bin/gccUsing ghc version 7.8.2 found on system at: /usr/local/bin/ghcUsing ghc-pkg version 7.8.2 found on system at: /usr/local/bin/ghc-pkgNo greencard foundUsing haddock version 2.14.2 found on system at: /usr/local/bin/haddockNo happy foundUsing haskell-suite found on system at: haskell-suite-dummy-locationUsing haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-locationNo hmake foundUsing hpc version 0.67 found on system at: /usr/local/bin/hpcUsing hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hsNo hscolour foundNo hugs foundNo jhc foundUsing ld found on system at: /usr/bin/ldNo lhc foundNo lhc-pkg foundNo nhc98 foundUsing pkg-config version 0.26 found on system at: /usr/bin/pkg-configUsing strip found on system at: /usr/bin/stripUsing tar found on system at: /bin/tarNo uhc found("/usr/bin/gcc",["/tmp/19534.c","-o","/tmp/19534","-D__GLASGOW_HASKELL__=708","-Dlinux_BUILD_OS=1","-Dx86_64_BUILD_ARCH=1","-Dlinux_HOST_OS=1","-Dx86_64_HOST_ARCH=1","-Idist/build/autogen","-I.","-I/usr/local/lib/ghc-7.8.2/base-4.7.0.0/include","-I/usr/local/lib/ghc-7.8.2/integer-gmp-0.5.1.0/include","-I/usr/local/lib/ghc-7.8.2/include","-L/usr/local/lib/ghc-7.8.2/base-4.7.0.0","-L/usr/local/lib/ghc-7.8.2/integer-gmp-0.5.1.0","-L/usr/local/lib/ghc-7.8.2/ghc-prim-0.3.1.0","-L/usr/local/lib/ghc-7.8.2/rts-1.0"])Using internal setup method with build-type Simple and args:["build","--verbose=3"]Component build order: librarycreating dist/buildcreating dist/build/autogenBuilding data-default-class-0.0.1...Preprocessing library data-default-class-0.0.1...Building library...creating dist/buildEnvironment: [("COLORFGBG","12;default;8"),("COLORTERM","rxvt-xpm"),("DBUS_SESSION_BUS_ADDRESS","unix:abstract=/tmp/dbus-5El0U8sCi8,guid=09290436e309789f9814dffc00000406"),("DEFAULTS_PATH","/usr/share/gconf/xmonad.default.path"),("DESKTOP_SESSION","xmonad"),("DISPLAY","10.69.208.185:0"),("EDITOR","vim"),("GDMSESSION","xmonad"),("GPG_AGENT_INFO","/tmp/gpg-KKH3WT/S.gpg-agent:5467:1"),("GREP_COLOR","1;32"),("GREP_OPTIONS","--color=auto --exclude-dir=.cvs --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn"),("GTK_IM_MODULE","xim"),("HOME","/home/local/ANT/shida"),("LANG","C.UTF-8"),("LC_ALL","C.UTF-8"),("LC_CTYPE","C.UTF-8"),("LESS","-R"),("LOGNAME","shida"),("LSCOLORS","Gxfxcxdxbxegedabagacad"),("MANDATORY_PATH","/usr/share/gconf/xmonad.mandatory.path"),("NODE_PATH","/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript"),("OLDPWD","/home/local/ANT/shida/src/git/cabal/cabal-install"),("PAGER","less"),("PATH","/usr/local/heroku/bin:.:/home/local/ANT/shida/.cabal/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/lightdm/lightdm:/usr/local/bin:/usr/bin:/bin"),("PULSE_SERVER","10.69.208.185"),("PWD","/home/local/ANT/shida"),("QT_IM_MODULE","xim"),("SHELL","/usr/bin/zsh"),("SHLVL","1"),("SSH_AGENT_PID","14748"),("SSH_AUTH_SOCK","/tmp/ssh-NeRVrYb14746/agent.14746"),("TERM","rxvt-unicode-256color"),("UBUNTU_MENUPROXY","libappmenu.so"),("USER","shida"),("VISUAL","vim"),("WINDOWID","14683293"),("XAUTHORITY","/home/local/ANT/shida/.Xauthority"),("XDG_CONFIG_DIRS","/etc/xdg/xdg-xmonad:/etc/xdg"),("XDG_DATA_DIRS","/usr/share/xmonad:/usr/local/share/:/usr/share/"),("XDG_SEAT_PATH","/org/freedesktop/DisplayManager/Seat1"),("XDG_SESSION_COOKIE","05ca21f0ee7e6a10e18260ac00001d83-1402975930.974487-843139146"),("XDG_SESSION_PATH","/org/freedesktop/DisplayManager/Session0"),("XMODIFIERS","@im=ibus"),("ZSH","/home/local/ANT/shida/.oh-my-zsh"),("_","/home/local/ANT/shida/.cabal/bin/cabal")]("/usr/local/bin/ghc",["--make","-v","-fbuilding-cabal-package","-O","-split-objs","-static","-dynamic-too","-dynosuf","dyn_o","-dynhisuf","dyn_hi","-outputdir","dist/build","-odir","dist/build","-hidir","dist/build","-stubdir","dist/build","-i","-idist/build","-i.","-idist/build/autogen","-Idist/build/autogen","-Idist/build","-optP-include","-optPdist/build/autogen/cabal_macros.h","-package-name","data-default-class-0.0.1","-hide-all-packages","-package-db","dist/package.conf.inplace","-package-id","base-4.7.0.0-018311399e3b6350d5be3a16b144df9b","-XHaskell98","Data.Default.Class"])Glasgow Haskell Compiler, Version 7.8.2, stage 2 booted by GHC version 7.8.1Using binary package database: /usr/local/lib/ghc-7.8.2/package.conf.d/package.cacheUsing binary package database: /home/local/ANT/shida/.ghc/x86_64-linux-7.8.2/package.conf.d/package.cacheUsing package config file: dist/package.conf.inplacewired-in package ghc-prim mapped to ghc-prim-0.3.1.0-948744e1f99cc8bcc7c7d3ba60c7c2d8wired-in package integer-gmp mapped to integer-gmp-0.5.1.0-dc47f6b546fc171f67a7f7d311684a99wired-in package base mapped to base-4.7.0.0-018311399e3b6350d5be3a16b144df9bwired-in package rts mapped to builtin_rtswired-in package template-haskell mapped to template-haskell-2.9.0.0-dcc8c210fb02937e104bc1784d7b0f06wired-in package dph-seq not found.wired-in package dph-par not found.Hsc static flags:wired-in package ghc-prim mapped to ghc-prim-0.3.1.0-948744e1f99cc8bcc7c7d3ba60c7c2d8wired-in package integer-gmp mapped to integer-gmp-0.5.1.0-dc47f6b546fc171f67a7f7d311684a99wired-in package base mapped to base-4.7.0.0-018311399e3b6350d5be3a16b144df9bwired-in package rts mapped to builtin_rtswired-in package template-haskell mapped to template-haskell-2.9.0.0-dcc8c210fb02937e104bc1784d7b0f06wired-in package dph-seq not found.wired-in package dph-par not found.*** Chasing dependencies:Chasing modules from: *Data.Default.ClassStable obj: []Stable BCO: []Ready for upsweep[NONRECModSummary {ms_hs_date = 2014-06-23 03:29:30.794067064 UTCms_mod = data-default-class-0.0.1:Data.Default.Class,ms_textual_imps = [import (implicit) Prelude]ms_srcimps = []}]*** Deleting temp files:Deleting:compile: input file ./Data/Default/Class.hsCreated temporary directory: /tmp/ghc19596_0*** Checking old interface for data-default-class-0.0.1:Data.Default.Class:[1 of 1] Compiling Data.Default.Class ( Data/Default/Class.hs, dist/build/Data/Default/Class.o )*** Parser:*** Renamer/typechecker:*** Desugar:Result size of Desugar (after optimization)= {terms: 0, types: 0, coercions: 0}*** Simplifier:Result size of Simplifier = {terms: 0, types: 0, coercions: 0}*** Specialise:Result size of Specialise = {terms: 0, types: 0, coercions: 0}*** Float out(FOS {Lam = Just 0, Consts = True, PAPs = False}):Result size of Float out(FOS {Lam = Just 0,Consts = True,PAPs = False})= {terms: 0, types: 0, coercions: 0}*** Float inwards:Result size of Float inwards = {terms: 0, types: 0, coercions: 0}*** Simplifier:Result size of Simplifier = {terms: 0, types: 0, coercions: 0}*** Simplifier:Result size of Simplifier = {terms: 0, types: 0, coercions: 0}*** Simplifier:Result size of Simplifier = {terms: 0, types: 0, coercions: 0}*** Demand analysis:Result size of Demand analysis = {terms: 0, types: 0, coercions: 0}*** Worker Wrapper binds:Result size of Worker Wrapper binds= {terms: 0, types: 0, coercions: 0}*** Simplifier:Result size of Simplifier = {terms: 0, types: 0, coercions: 0}*** Float out(FOS {Lam = Just 0, Consts = True, PAPs = True}):Result size of Float out(FOS {Lam = Just 0,Consts = True,PAPs = True})= {terms: 0, types: 0, coercions: 0}*** Common sub-expression:Result size of Common sub-expression= {terms: 0, types: 0, coercions: 0}*** Float inwards:Result size of Float inwards = {terms: 0, types: 0, coercions: 0}*** Simplifier:Result size of Simplifier = {terms: 0, types: 0, coercions: 0}*** Tidy Core:Result size of Tidy Core = {terms: 4, types: 7, coercions: 2}writeBinIface: 2 NameswriteBinIface: 16 dict entrieswriteBinIface: 2 NameswriteBinIface: 16 dict entries*** CorePrep:Result size of CorePrep = {terms: 4, types: 7, coercions: 2}*** Stg2Stg:*** CodeOutput:*** New CodeGen:*** CPSZ:*** CPSZ:*** Splitter:/usr/local/lib/ghc-7.8.2/ghc-split /tmp/ghc19596_0/ghc19596_2.split_s /tmp/ghc19596_0/ghc19596_4.split /tmp/ghc19596_0/ghc19596_4.split*** Assembler:/usr/bin/gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE -c -o dist/build/Data/Default/Class_o_split/Class__1.o /tmp/ghc19596_0/ghc19596_4.split__1.s*** Assembler:/usr/bin/gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE -c -o dist/build/Data/Default/Class_o_split/Class__2.o /tmp/ghc19596_0/ghc19596_4.split__2.s*** Linker:/usr/bin/gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE -nostdlib -Wl,-r -nodefaultlibs '-Wl,--build-id=none' -o dist/build/Data/Default/Class.o /tmp/ghc19596_0/ghc19596_5.ldscript/usr/bin/ld: error: cannot find dist/build/Data/Default/Class_o_split/Class__1.o/usr/bin/ld: error: cannot find dist/build/Data/Default/Class_o_split/.o::Class(void)collect2: ld returned 1 exit status*** Deleting temp files:Deleting: /tmp/ghc19596_0/ghc19596_5.ldscript /tmp/ghc19596_0/ghc19596_4.split__1.s /tmp/ghc19596_0/ghc19596_4.split__2.s /tmp/ghc19596_0/ghc19596_4.split /tmp/ghc19596_0/ghc19596_3.c /tmp/ghc19596_0/ghc19596_2.split_s /tmp/ghc19596_0/ghc19596_1.split_sWarning: deleting non-existent /tmp/ghc19596_0/ghc19596_3.cWarning: deleting non-existent /tmp/ghc19596_0/ghc19596_1.split_s*** Deleting temp dirs:Deleting: /tmp/ghc19596_0/usr/local/bin/ghc returned ExitFailure 1Failed to install data-default-class-0.0.1Updating world file...cabal: Error: some packages failed to install:data-default-class-0.0.1 failed during the building phase. The exception was:ExitFailure 1--
竹密岂妨流水过
山高哪阻野云飞
And for G+, please use magiclouds#gmail.com.