
Hey everyone, After I upgraded to a newer cabal-install my cabal-install broke again: I get a Bus Error when doing "cabal update" or "cabal install something". The version that was bundled with the Haskell platform worked fine, but now it's broken again. I'm not sure what it was that went wrong or how to debug this. The previous time I had Bus Errors I upgraded to the newest available Haskell Platform release and started from scratch. I would prefer not to do that again. However, I don't really know how to solve the Bus Error. Does anyone have a clue where to start? Or is there a way to undo my cabal-install upgrade? -chris

On Mon, May 3, 2010 at 2:21 PM, Chris Eidhof
Hey everyone,
After I upgraded to a newer cabal-install my cabal-install broke again: I get a Bus Error when doing "cabal update" or "cabal install something". The version that was bundled with the Haskell platform worked fine, but now it's broken again. I'm not sure what it was that went wrong or how to debug this.
This happened to a co-worker on her mac. We used gdb to track the bus errors to the network library. Once we tracked it down to there, we did some combination of deleting $HOME/.cabal, building/installing the latest version of Network and then relinking cabal-install. I've also seen these errors with some versions of zlib (but, I think that was on an old Solaris box that had lots of issues). I don't think my co-worker has had issues since upgrading to GHC 6.12.
The previous time I had Bus Errors I upgraded to the newest available Haskell Platform release and started from scratch. I would prefer not to do that again. However, I don't really know how to solve the Bus Error. Does anyone have a clue where to start? Or is there a way to undo my cabal-install upgrade?
Well, you could try removing $HOME/.cabal (make a backup first?), and then rebuild re-install cabal-install and it's dependencies. You might also spend some time running cabal-install inside gdb to see where it's crashing and report back what you find out. I hope that helps, Jason

On 5/3/10 23:46, Jason Dagit wrote:
This happened to a co-worker on her mac. We used gdb to track the bus errors to the network library. Once we tracked it down to there, we did some combination of deleting $HOME/.cabal, building/installing the latest version of Network and then relinking cabal-install. I've also seen these errors with some versions of zlib (but, I think that was on an old Solaris box that had lots of issues).
I just updated to the newest version and had problems with zlib:
ld: warning: in /opt/local/lib/libz.dylib, file is not of required architecture (full error below)
The solution was: # port install zlib +universal I hope this is of use to someone. :-) Martijn. Full error: (...) [39 of 40] Compiling Distribution.Client.Install ( Distribution/Client/Install.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Install.o ) [40 of 40] Compiling Main ( Main.hs, dist/build/cabal/cabal-tmp/Main.o ) Linking dist/build/cabal/cabal ... ld: warning: in /opt/local/lib/libz.dylib, file is not of required architecture Undefined symbols: "_deflateEnd", referenced from: _deflateEnd$non_lazy_ptr in libHSzlib-0.5.2.0.a(Stream.o) "_inflateEnd", referenced from: _inflateEnd$non_lazy_ptr in libHSzlib-0.5.2.0.a(Stream.o) "_inflateInit2_", referenced from: _s4ug_info in libHSzlib-0.5.2.0.a(Stream.o) "_deflate", referenced from: _s4lq_info in libHSzlib-0.5.2.0.a(Stream.o) "_deflateInit2_", referenced from: _s4z5_info in libHSzlib-0.5.2.0.a(Stream.o) "_zlibVersion", referenced from: _r336_info in libHSzlib-0.5.2.0.a(Stream.o) "_inflate", referenced from: _s4om_info in libHSzlib-0.5.2.0.a(Stream.o) ld: symbol(s) not found collect2: ld returned 1 exit status cabal: Error: some packages failed to install: cabal-install-0.8.2 failed during the building phase. The exception was: exit: ExitFailure 1
participants (3)
-
Chris Eidhof
-
Jason Dagit
-
Martijn van Steenbergen