
13 Mar
2013
13 Mar
'13
10:07 p.m.
The same error occurs on NetBSD/amd64. PrimopWrappers.dyn_o has a direct reference to newSpark but since it resides in the rts, not ghc-prim, such references must be redirected through PLT. The problem is that every *.dyn_o, not only PrimopWrappers.dyn_o, is compiled without -fPIC for OSes other than Windows, Darwin and Linux.
I have no idea why -fPIC isn't enabled for all OSes in the first place, but the attached patch works at least for me.
Thanks. This patch also solves the problem in my environment. Would you create a ticket and attach your patch? > PHO --Kazu