Hacking on Phobos

Jonathan M Davis jmdavisProg at gmx.com
Tue Apr 17 11:25:32 PDT 2012


On Tuesday, April 17, 2012 20:10:51 Joseph Rushton Wakeling wrote:
> Hello all,
> 
> As per earlier discussion I'm trying to hack on Phobos to update the random
> sampling code.
> 
> To do this I've just copied random.d into a new file, randomsample.d, which
> I'm modifying and messing around with; I'm trying to build against a local
> copy of the GitHub Phobos sources.
> 
> When I try and compile,
> 
> gdc -nophoboslib -I../phobos/ -o randomsample randomsample.d
> 
> I get a huge list of errors, beginning with:
> 
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
> relocation 0 has invalid symbol index 10
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
> relocation 1 has invalid symbol index 11
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
> relocation 2 has invalid symbol index 2
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
> relocation 3 has invalid symbol index 2
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
> relocation 4 has invalid symbol index 10
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
> relocation 5 has invalid symbol index 12
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
> relocation 6 has invalid symbol index 12
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
> relocation 7 has invalid symbol index 12
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
> relocation 8 has invalid symbol index 2
> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
> relocation 9 has invalid symbol index 2

You need to link in librt. core.time requires it.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list