./configure --enable-shared does not work for ghc-6.10
SunOS q 5.11 snv_126 i86pc i386 i86pc
./configure --prefix=/opt \
--disable-static \
--disable-rpath \
--enable-shared \
--with-ghc=$ROOT4BUILD/opt/bin/ghc \
--with-gmp-includes=/usr/include/gmp \
--with-gmp-libraries=/usr/lib/${ARCH_DIR}
gmake all | tee $MAKELOG
...
/export/scratch/elkner/build/ghc-6.10.4/ghc-6.10.4/ghc/stage1-inplace/ghc -H32m -O -optc-O2 -I../includes -I. -Iparallel -Ism -DCOMPILING_RTS -package-name rts -I/usr/include/gmp -I../gmp/gmpbuild -I../libffi/build/include -I. -dcmm-lint -hisuf dyn_hi -hcsuf dyn_hc -osuf dyn_o -fPIC -dynamic -c Apply.cmm -o Apply.dyn_o
ghc: panic! (the 'impossible' happened)
(GHC version 6.10.4 for i386-unknown-solaris2):
howToAccessLabel: PIC not defined for this platform
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
gmake[2]: *** [Apply.dyn_o] Error 1
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/export/scratch/elkner/build/ghc-6.10.4/ghc-6.10.4/rts'
gmake: *** [stage1] Error 2
Skipping package make
432.09u 41.84s 9:58.28 79.2%
Edited by duncan