Skip to content

GHC 6.10.1 fails to build with --enable-shared configured on Ubuntu 8.04.

To replicate:

  • unpack the source tar file
  • unpack the extralibs tar file
  • unpack the test suite tar file

In the source root: $ ./configure --enable-shared $ make

The package base-4.0.0.0 will crap out with a complaint about libffi. Do the following instead after unpacking and it builds all the way through, even if you bootstrap3, etc.: $ ./configure $ make

To my untutored eyes it appears as if ghc is looking for libffi.so.5 and isn't finding it. This is not a surprise given: $ ll /usr/lib/libffi* lrwxrwxrwx 1 root root 15 2008-10-23 09:13 /usr/lib/libffi.so.4 -> libffi.so.4.0.1 -rw-r--r-- 1 root root 22K 2008-10-11 03:38 /usr/lib/libffi.so.4.0.1

I've attached the config log (for details of file versions, etc.) and the output of the make process (for complete error information) to this ticket.

Trac metadata
Trac field Value
Version 6.10.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information