[racket] link errors on 64bit

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Fri May 24 13:44:06 EDT 2013

At Thu, 23 May 2013 14:43:18 +0100, David Griffiths wrote:
> I've been getting a problem for some time building against the racket
> ubuntu packages on 64 bit:
> 
> /usr/bin/ld: /usr/lib/libracket3m.a(salloc.o): relocation
> R_X86_64_TPOFF32 against `scheme_thread_locals' can not be used when
> making a shared object; recompile with -fPIC
> 
> Any chance this can be resolved?

Is this with a vanilla Racket build (e.g., no `--enable-shared')?

And it's happening when you link your program to "libracket3m.a", as
opposed to just building Racket, right? Is your code compiled `-fPIC'
(while the Racket code isn't, I think)?


Posted on the users mailing list.