ghc-6.0.1 --make -O (linking errors)

Simon Marlow simonmar@microsoft.com
Thu, 31 Jul 2003 10:30:01 +0100


=20
> I recently switched to ghc 6.0.1 running on a debian linux box.
>=20
> When compiling a program using
>   ghc --make -O
> or
>   ghc --make -O2
> I get lots of errors while linking.
> The linker concerns about undefined references to=20
> Data.FiniteMap, which I=20
> frequently use.
> For example, the linker says:
>=20
> ../Options.o(.text+0xc0d): In function `s4m5T_ret':
> : undefined reference to `DataziFiniteMap_lvl4_closure'
>=20
> Without optimizing my code, doing a plain
>   ghc --make
> everything goes fine.
> Similarly, compiling the same program with the older ghc 6.0=20
> I do not get any=20
> linking errors, whether I optimize or not.
>=20
> Any ideas, how I can get rid of the linking errors, except=20
> for switching back to ghc 6.0?

It could be a problem with your build of ghc-6.0.1.  Where did it come
from?

Cheers,
	Simon