[phobos] clock_gettime changes
Brad Roberts
braddr at puremagic.com
Sat Nov 20 18:33:35 PST 2010
I removed the -L-lrt from the auto-tester's dmd.conf file and it's still failing
the phobos tests:
generated/linux/debug/unittest/std/datetime.o: In function
`_D3std8datetime5Ticks12_staticCtor1OFNeZv':
/home/braddr/sandbox/d/d-tester/client/3070/phobos-trunk/phobos/std/datetime.d:80:
undefined reference to `clock_getres'
generated/linux/debug/unittest/std/datetime.o: In function
`_D3std8datetime7systimeFNeZS3std8datetime5Ticks':
/home/braddr/sandbox/d/d-tester/client/3070/phobos-trunk/phobos/std/datetime.d:666:
undefined reference to `clock_gettime'
The druntime tests do pass without linking against librt.
For now, adding librt back again so that the tests pass.
On 11/20/2010 10:08 AM, Sean Kelly wrote:
> Oops. I'll disable the check for clock_gettime in core.sync.config.
>
> On Nov 20, 2010, at 1:33 AM, Brad Roberts wrote:
>
>> ... seems to have broken both the druntime and phobos unit tests.
>>
>> http://d.puremagic.com/test-results/test.ghtml?runid=3025
>>
>> druntime's error:
>> unittest.o: In function
>> `_D4core4sync6config7mktspecFKS4core3sys5posix6signal8timespeclZv':
>> src/rt/typeinfo/ti_wchar.d:(.text._D4core4sync6config7mktspecFKS4core3sys5posix6signal8timespeclZv+0xa):
>> undefined reference to `clock_gettime'
>>
>> phobos' error:
>> unittest.o: In function
>> `_D4core4sync6config7mktspecFKS4core3sys5posix6signal8timespeclZv':
>> src/rt/typeinfo/ti_wchar.d:(.text._D4core4sync6config7mktspecFKS4core3sys5posix6signal8timespeclZv+0xa):
>> undefined reference to `clock_gettime'
>>
>> Adding -L-lrt to the DFLAGS variable in dmd.conf fixes the problem. That'll
>> need to be reflected in the shipped dmd.conf, assuming it's the right fix. I
>> don't have access to the other posix platforms to see if it's needed there or not.
>>
>> Later,
>> Brad
More information about the phobos
mailing list