Can't build GHC on Mac OS X
Simon Marlow
simonmar@microsoft.com
Fri, 14 Mar 2003 13:11:06 -0000
> I installed GHC 5.04.2 from binaries on my machine (running=20
> Mac OS 10.2.1
> and gcc 3.1) and proceeded to try to build the latest version of GHC
> from cvs, resulting in the following error message:
> [lots of stuff snipped]
> --------------------------------------------------------------
> ----------
> =3D=3Dfptools=3D=3D make all - --no-print-directory -r;
> in /Users/krc/Work/fptools/green-card/lib/hugs
> --------------------------------------------------------------
> ----------
> gcc -fPIC -shared -I . -DSTRICT -o StdDIS.so StdDIS.c
> gcc: unrecognized option `-shared'
> ld: Undefined symbols:
> _main
> make[3]: *** [StdDIS.so] Error 1
> make[2]: *** [all] Error 1
> make[1]: *** [all] Error 1
> make: *** [build] Error 1
>=20
> Any idea what's up?
Looks like you're trying to build green-card, which isn't part of a
standard GHC build. Try removing fptools/green-card (unless you have a
good reason to want it, in which case try contacting the green-card
folks).
Cheers,
Simon