
Hi everyone. I'm trying to build GHC 6.8.3 on a Solaris 8 machine. I'd
love to upgrade Solaris to 10, which I believe would solve the problem I'm
having by making /usr/lib/libm.so.2 available, but that's not an option at
this time.
Here's the output of uname -a on the system.
SunOS bwddev1 5.8 Generic_117350-53 sun4u sparc SUNW,Ultra-80
The GCC I'm using is gcc
Target: sparc-sun-solaris2.8
Configured with: /usr/local/src/gnu/gcc-4.0.1/configure
--with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
--prefix=/usr/local/gcc4
Thread model: posix
gcc version 4.0.1
The GHC binary I'm bootstrapping with is 6.4.1. It works fine for compiling
complex haskell programs and packages.
I've already worked through a couple of problems to get to where I'm at now.
What I had to do was...
changed #define SIZET_FMT "d" to #define SIZET_FMT "d" in
includes/mkDerivedConstances.c.
change #include

Ralph Crawford wrote:
ln -s /usr/lib/libm.so.1 $BOS_ROOT/lib/libm.so.2
You need an actual libm.so.2 library that contains the missing symbols. To this library you set a link libm.so in a directory that is in the front of your LD_LIBRARY_PATH, so that libm.so.2 instead of libm.so.1 is found via libm.so. HTH Christian

On 2009 Mar 17, at 10:36, Christian Maeder wrote:
Ralph Crawford wrote:
ln -s /usr/lib/libm.so.1 $BOS_ROOT/lib/libm.so.2
You need an actual libm.so.2 library that contains the missing symbols. To this library you set a link libm.so in a directory that is in the front of your LD_LIBRARY_PATH, so that libm.so.2 instead of libm.so. 1 is found via libm.so.
It's a bit more complex than that: if you have the appropriate service contract you can request the C9X patch cluster, otherwise you can't get libm.so.2 at all, as far as I can determine. I came up with an ugly hack to work around it, but would prefer to find a better solution. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH
participants (3)
-
Brandon S. Allbery KF8NH
-
Christian Maeder
-
Ralph Crawford