www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - DMD 2.056 cannot find -lrt

reply Steve Teale <steve.teale britseyeview.com> writes:
I just got round to upgrading from 2.055. I read about this error some 
time ago but now can't find a reference anywhere.

What do I do to get round it.

Steve
Dec 08 2011
next sibling parent "Steven Schveighoffer" <schveiguy yahoo.com> writes:
On Thu, 08 Dec 2011 03:25:23 -0500, Steve Teale  
<steve.teale britseyeview.com> wrote:

 I just got round to upgrading from 2.055. I read about this error some
 time ago but now can't find a reference anywhere.

 What do I do to get round it.

Install librt? Unfortunately, the solution settled on for 2.056 is to put -lrt in dmd's source code, so it cannot be removed. Curious, what Linux OS are you using? I was under the impression that they all had librt installed by default. -Steve
Dec 08 2011
prev sibling next sibling parent Timon Gehr <timon.gehr gmx.ch> writes:
On 12/08/2011 09:25 AM, Steve Teale wrote:
 I just got round to upgrading from 2.055. I read about this error some
 time ago but now can't find a reference anywhere.

 What do I do to get round it.

 Steve

Try adding -L-lrt at the end of your DFLAGS inside dmd.conf.
Dec 08 2011
prev sibling next sibling parent Steve Teale <steve.teale britseyeview.com> writes:
On Thu, 08 Dec 2011 07:18:48 -0500, Steven Schveighoffer wrote:

 On Thu, 08 Dec 2011 03:25:23 -0500, Steve Teale
 <steve.teale britseyeview.com> wrote:
 
 I just got round to upgrading from 2.055. I read about this error some
 time ago but now can't find a reference anywhere.

 What do I do to get round it.

Install librt? Unfortunately, the solution settled on for 2.056 is to put -lrt in dmd's source code, so it cannot be removed. Curious, what Linux OS are you using? I was under the impression that they all had librt installed by default. -Steve

OK, fixed that - I'd been under the erroneous impression that librt was a D thing, and had purged that along with the numerous versions of libphobos2.a that were lurking around on my system. I put librt.a and the librt.so symlinks back, and hello.d now compiles and links. However the CodeBlocks setup that I had for my current DB project is now complaining that it can't find _tlsstart, _tlsend, _deh_beg, and _deh_end. These appear to be C functions - do you happen to know if they are in librt? Steve
Dec 08 2011
prev sibling next sibling parent Steve Teale <steve.teale britseyeview.com> writes:
On Thu, 08 Dec 2011 07:18:48 -0500, Steven Schveighoffer wrote:

 On Thu, 08 Dec 2011 03:25:23 -0500, Steve Teale
 <steve.teale britseyeview.com> wrote:
 
 I just got round to upgrading from 2.055. I read about this error some
 time ago but now can't find a reference anywhere.

 What do I do to get round it.

Install librt? Unfortunately, the solution settled on for 2.056 is to put -lrt in dmd's source code, so it cannot be removed. Curious, what Linux OS are you using? I was under the impression that they all had librt installed by default. -Steve

Panic over - I had a misplaced version statement, and was consequently just compiling a bunch of imports - sorry.
Dec 08 2011
prev sibling parent "Martin Nowak" <dawg dawgfoto.de> writes:
On Thu, 08 Dec 2011 17:02:24 +0100, Steve Teale  
<steve.teale britseyeview.com> wrote:

 On Thu, 08 Dec 2011 07:18:48 -0500, Steven Schveighoffer wrote:

 On Thu, 08 Dec 2011 03:25:23 -0500, Steve Teale
 <steve.teale britseyeview.com> wrote:

 I just got round to upgrading from 2.055. I read about this error some
 time ago but now can't find a reference anywhere.

 What do I do to get round it.

Install librt? Unfortunately, the solution settled on for 2.056 is to put -lrt in dmd's source code, so it cannot be removed. Curious, what Linux OS are you using? I was under the impression that they all had librt installed by default. -Steve

OK, fixed that - I'd been under the erroneous impression that librt was a D thing, and had purged that along with the numerous versions of libphobos2.a that were lurking around on my system. I put librt.a and the librt.so symlinks back, and hello.d now compiles and links. However the CodeBlocks setup that I had for my current DB project is now complaining that it can't find _tlsstart, _tlsend, _deh_beg, and _deh_end. These appear to be C functions - do you happen to know if they are in librt? Steve

These symbols only get pulled in with D's main function.
Dec 08 2011