www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - Problem building dub with LDC

reply "Joseph Rushton Wakeling" <joseph.wakeling webdrake.net> writes:
Hello all,

Today I decided to download, build and install the dub package 
manager.  One clone from GitHub later, and I thought I'd try and 
build it with LDC, only to run into the following error:

$ DC=ldmd2 ./build.sh
Generating version file...
Running ldmd2...
bin/dub.o:(.rodata._D123TypeInfo_S3std8typecons86__T10RefCountedTS3std4file15DirIteratorImplVE3std8typecons24RefCountedAutoInitialize0Z10RefCounted6__initZ[_D123TypeInfo_S3std8typecons86__T10RefCountedTS3std4file15DirIteratorImplVE3std8typecons24RefCountedAutoInitialize0Z10RefCou
ted6__initZ]+0x60): 
undefined reference to 
`_D3std8typecons86__T10RefCountedTS3std4file15DirIteratorImplVE3std8typecons24RefCountedAutoInitialize0Z10RefCounted10__postblitMFZv'
collect2: error: ld returned 1 exit status
Error: /usr/bin/gcc failed with status: 1

Any idea what's going on here?  It looks like a problem on LDC's 
side rather than dub's.

Thanks & best wishes,

     -- Joe
Oct 17 2013
parent reply "David Nadlinger" <code klickverbot.at> writes:
On 17 Oct 2013, at 13:02, Joseph Rushton Wakeling wrote:
 undefined reference to =
 `_D3std8typecons86__T10RefCountedTS3std4file15DirIteratorImplVE3std8typ=
econs24RefCountedAutoInitialize0Z10RefCounted10__postblitMFZv' This looks a lot like https://github.com/ldc-developers/ldc/issues/454. Which LDC version did you use? Cheers, David
Oct 17 2013
next sibling parent reply "Elvis Zhou" <elvis.x.zhou gmail.com> writes:
On Thursday, 17 October 2013 at 12:37:44 UTC, David Nadlinger 
wrote:
 On 17 Oct 2013, at 13:02, Joseph Rushton Wakeling wrote:
 undefined reference to 
 `_D3std8typecons86__T10RefCountedTS3std4file15DirIteratorImplVE3std8typecons24RefCountedAutoInitialize0Z10RefCounted10__postblitMFZv'
This looks a lot like https://github.com/ldc-developers/ldc/issues/454. Which LDC version did you use? Cheers, David
I've already post this issue in 0.12.0 alpha release thread, seems David just ignore it there and I have to give it up.
Oct 17 2013
next sibling parent "Kai Nacke" <kai redstar.de> writes:
On Thursday, 17 October 2013 at 13:43:03 UTC, Elvis Zhou wrote:
 On Thursday, 17 October 2013 at 12:37:44 UTC, David Nadlinger 
 wrote:
 On 17 Oct 2013, at 13:02, Joseph Rushton Wakeling wrote:
 undefined reference to 
 `_D3std8typecons86__T10RefCountedTS3std4file15DirIteratorImplVE3std8typecons24RefCountedAutoInitialize0Z10RefCounted10__postblitMFZv'
This looks a lot like https://github.com/ldc-developers/ldc/issues/454. Which LDC version did you use? Cheers, David
I've already post this issue in 0.12.0 alpha release thread, seems David just ignore it there and I have to give it up.
The issue should be fixed with this (merged) pull request: https://github.com/ldc-developers/ldc/pull/507. Therefore David asked about the used LDC version. Please, could you also retest with the beta 1 release? Thanks!!! Regards Kai
Oct 17 2013
prev sibling parent reply David Nadlinger <code klickverbot.at> writes:
Hi Elvis,

On Thu, Oct 17, 2013 at 3:43 PM, Elvis Zhou <elvis.x.zhou gmail.com> wrote:
 I've already post this issue in 0.12.0 alpha release thread, seems David
 just ignore it there and I have to give it up.
I never ignore anybody on purpose, but occasionally some mails either get caught in the filters or manage to magically disappear from the inbox unanswered. Thus, if you receive no reply from me in a few days, please just contact me again, I probably just missed your message then. Apart from that, I think I replied to your post in the alpha thread with a link to the bug report, which got automatically closed when I pushed the fix. I figured it would be clear enough when I just mentioned that all reported bugs have been fixed in the beta announcement. Sorry for any confusion, David
Oct 17 2013
parent "Elvis Zhou" <elvis.x.zhou gmail.com> writes:
On Thursday, 17 October 2013 at 17:35:50 UTC, David Nadlinger 
wrote:
 Hi Elvis,

 On Thu, Oct 17, 2013 at 3:43 PM, Elvis Zhou 
 <elvis.x.zhou gmail.com> wrote:
 I've already post this issue in 0.12.0 alpha release thread, 
 seems David
 just ignore it there and I have to give it up.
I never ignore anybody on purpose, but occasionally some mails either get caught in the filters or manage to magically disappear from the inbox unanswered. Thus, if you receive no reply from me in a few days, please just contact me again, I probably just missed your message then. Apart from that, I think I replied to your post in the alpha thread with a link to the bug report, which got automatically closed when I pushed the fix. I figured it would be clear enough when I just mentioned that all reported bugs have been fixed in the beta announcement. Sorry for any confusion, David
That's all right, my fault, actually I really appreicate your hard work!!
Oct 18 2013
prev sibling parent reply "Joseph Rushton Wakeling" <joseph.wakeling webdrake.net> writes:
On Thursday, 17 October 2013 at 12:37:44 UTC, David Nadlinger 
wrote:
 This looks a lot like 
 https://github.com/ldc-developers/ldc/issues/454.

 Which LDC version did you use?
Built from source, but obviously not recently enough to have that bugfix in it. I've updated to latest git HEAD and dub now compiles fine. Thanks very much!
Oct 17 2013
parent David Nadlinger <code klickverbot.at> writes:
On Thu, Oct 17, 2013 at 7:22 PM, Joseph Rushton Wakeling
<joseph.wakeling webdrake.net> wrote:
 Built from source, but obviously not recently enough to have that bugfix in
 it.  I've updated to latest git HEAD and dub now compiles fine.  Thanks very
 much!
Glad to hear that. Still anxiously waiting for the first regression to pop up in the wake of that bug fix, though. David
Oct 17 2013