Jump to page: 1 2
Thread overview
updating druntime
Dec 12, 2013
Benji
Dec 12, 2013
John Colvin
Dec 12, 2013
Benji
Dec 13, 2013
Marco Leise
Dec 13, 2013
John Colvin
Dec 13, 2013
Marco Leise
Dec 13, 2013
John Colvin
Dec 13, 2013
Benji
Dec 13, 2013
Marco Leise
Dec 13, 2013
Benji
Dec 14, 2013
Marco Leise
Dec 14, 2013
Benji
Dec 14, 2013
Marco Leise
Dec 15, 2013
Benji
Dec 15, 2013
Marco Leise
December 12, 2013
Hello,
when I try to compile something with dmd,
I get following message:

/usr/include/dmd/phobos/std/bitmanip.d(416): Error: undefined identifier '_xopCmp'
Error: ICE: _xopCmp not found in object module. You must update druntime

How to 'update druntime' ?
December 12, 2013
On Thursday, 12 December 2013 at 16:44:28 UTC, Benji wrote:
> Hello,
> when I try to compile something with dmd,
> I get following message:
>
> /usr/include/dmd/phobos/std/bitmanip.d(416): Error: undefined identifier '_xopCmp'
> Error: ICE: _xopCmp not found in object module. You must update druntime
>
> How to 'update druntime' ?

how did you install dmd/druntime/phobos originally?
December 12, 2013
On Thursday, 12 December 2013 at 19:11:03 UTC, John Colvin wrote:
> On Thursday, 12 December 2013 at 16:44:28 UTC, Benji wrote:
>> Hello,
>> when I try to compile something with dmd,
>> I get following message:
>>
>> /usr/include/dmd/phobos/std/bitmanip.d(416): Error: undefined identifier '_xopCmp'
>> Error: ICE: _xopCmp not found in object module. You must update druntime
>>
>> How to 'update druntime' ?
>
> how did you install dmd/druntime/phobos originally?

As it is mentioned in installation instructions to the dmd (linux-ubuntu)
December 13, 2013
Am Thu, 12 Dec 2013 20:29:31 +0100
schrieb "Benji" <romanbeno273@gmail.com>:

> On Thursday, 12 December 2013 at 19:11:03 UTC, John Colvin wrote:
> > On Thursday, 12 December 2013 at 16:44:28 UTC, Benji wrote:
> >> Hello,
> >> when I try to compile something with dmd,
> >> I get following message:
> >>
> >> /usr/include/dmd/phobos/std/bitmanip.d(416): Error: undefined
> >> identifier '_xopCmp'
> >> Error: ICE: _xopCmp not found in object module. You must
> >> update druntime
> >>
> >> How to 'update druntime' ?
> >
> > how did you install dmd/druntime/phobos originally?
> 
> As it is mentioned in installation instructions to the dmd (linux-ubuntu)

Did you use the .deb file? It shouldn't produce such a
version mismatch. Did you install over a previous installation
and possibly have some leftover files from the old DMD version?

I'd say format c: and start over with the installation of DMD. In any case, if you didn't install from the GitHub sources this error message should not appear and someone who isn't hacking on DMD does not have to update druntime manually.

-- 
Marco

December 13, 2013
On Friday, 13 December 2013 at 15:00:57 UTC, Marco Leise wrote:
> I'd say format c:

A bit drastic, or am i missing something?!?!
December 13, 2013
Am Fri, 13 Dec 2013 16:08:22 +0100
schrieb "John Colvin" <john.loughran.colvin@gmail.com>:

> On Friday, 13 December 2013 at 15:00:57 UTC, Marco Leise wrote:
> > I'd say format c:
> 
> A bit drastic, or am i missing something?!?!

That was meant as "remove anything D related from your system". format c: on a POSIX system, come on. I was clearly not serious. :)

-- 
Marco

December 13, 2013
On Friday, 13 December 2013 at 15:54:06 UTC, Marco Leise wrote:
> Am Fri, 13 Dec 2013 16:08:22 +0100
> schrieb "John Colvin" <john.loughran.colvin@gmail.com>:
>
>> On Friday, 13 December 2013 at 15:00:57 UTC, Marco Leise wrote:
>> > I'd say format c:
>> 
>> A bit drastic, or am i missing something?!?!
>
> That was meant as "remove anything D related from your
> system". format c: on a POSIX system, come on. I was
> clearly not serious. :)

Woops, sorry, missed that it was posix :)
December 13, 2013
On Friday, 13 December 2013 at 15:00:57 UTC, Marco Leise wrote:
> Am Thu, 12 Dec 2013 20:29:31 +0100
> schrieb "Benji" <romanbeno273@gmail.com>:
>
>> On Thursday, 12 December 2013 at 19:11:03 UTC, John Colvin wrote:
>> > On Thursday, 12 December 2013 at 16:44:28 UTC, Benji wrote:
>> >> Hello,
>> >> when I try to compile something with dmd,
>> >> I get following message:
>> >>
>> >> /usr/include/dmd/phobos/std/bitmanip.d(416): Error: undefined identifier '_xopCmp'
>> >> Error: ICE: _xopCmp not found in object module. You must update druntime
>> >>
>> >> How to 'update druntime' ?
>> >
>> > how did you install dmd/druntime/phobos originally?
>> 
>> As it is mentioned in installation instructions to the dmd (linux-ubuntu)
>
> Did you use the .deb file? It shouldn't produce such a
> version mismatch. Did you install over a previous installation
> and possibly have some leftover files from the old DMD version?
>
> I'd say format c: and start over with the installation of DMD.
> In any case, if you didn't install from the GitHub sources
> this error message should not appear and someone who isn't
> hacking on DMD does not have to update druntime manually.

Yes, I used :(

I tryied it again via zip-archive, and it works...
but, using std.net.curl module functions doesn't work for me...

This is my error: (after get("google.com") call)

[...]
In function `_D3std3net4curl4Curl7performMFbZi':
std/net/curl.d:(.text._D3std3net4curl4Curl7performMFbZi+0x1f): undefined reference to `curl_easy_perform'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libphobos2.a(curl_248d_4a1.o): In function `_D3std3net4curl4Curl11errorStringMFiZAya':
std/net/curl.d:(.text._D3std3net4curl4Curl11errorStringMFiZAya+0x11): undefined reference to `curl_easy_strerror'
collect2: error: ld returned 1 exit status

When I compile it this way: dmd helloa.d -L-lphobos2 -L-lcurl
Another error appear:

[...]
helloa.d:(.text._D3std6format66__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTmTmZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8AppenderxAammZk+0x45): undefined reference to `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10FormatSpecTaZ10FormatSpec'
helloa.o: In function `_D3std6format68__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTmTAyaZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8AppenderxAamAyaZk':
helloa.d:(.text._D3std6format68__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTmTAyaZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8AppenderxAamAyaZk+0x49): undefined reference to `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10FormatSpecTaZ10FormatSpec'
helloa.o:helloa.d:(.text._D3std6format64__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTtZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8AppenderxAatZk+0x40): more undefined references to `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10FormatSpecTaZ10FormatSpec' follow
collect2: error: ld returned 1 exit status

After 7 hours of effort and trying everything it still doesn't work :((
December 13, 2013
Am Fri, 13 Dec 2013 19:48:46 +0100
schrieb "Benji" <romanbeno273@gmail.com>:

> When I compile it this way: dmd helloa.d -L-lphobos2 -L-lcurl Another error appear:
> 
> [...]
> helloa.d:(.text._D3std6format66__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTmTmZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8AppenderxAammZk+0x45):
> undefined reference to
> `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10FormatSpecTaZ10FormatSpec'
> helloa.o: In function
> `_D3std6format68__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTmTAyaZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8AppenderxAamAyaZk':
> helloa.d:(.text._D3std6format68__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTmTAyaZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8AppenderxAamAyaZk+0x49):
> undefined reference to
> `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10FormatSpecTaZ10FormatSpec'
> helloa.o:helloa.d:(.text._D3std6format64__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTtZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8AppenderxAatZk+0x40):
> more undefined references to
> `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10FormatSpecTaZ10FormatSpec'
> follow
> collect2: error: ld returned 1 exit status
> 
> After 7 hours of effort and trying everything it still doesn't work :((

And when you compile like this?: dmd helloa.d -L-lcurl
This will link in the static version of Phobos and there is
only one static (.a) Phobos on any system. -L-lphobos2 might
link against the wrong (.so) if you have an old version. I'm
just guessing here.

-- 
Marco

December 13, 2013
On Friday, 13 December 2013 at 19:22:20 UTC, Marco Leise wrote:
> Am Fri, 13 Dec 2013 19:48:46 +0100
> schrieb "Benji" <romanbeno273@gmail.com>:
>
>> When I compile it this way: dmd helloa.d -L-lphobos2 -L-lcurl
>> Another error appear:
>> 
>> [...]
>> helloa.d:(.text._D3std6format66__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTmTmZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8AppenderxAammZk+0x45): undefined reference to `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10FormatSpecTaZ10FormatSpec'
>> helloa.o: In function `_D3std6format68__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTmTAyaZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8AppenderxAamAyaZk':
>> helloa.d:(.text._D3std6format68__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTmTAyaZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8AppenderxAamAyaZk+0x49): undefined reference to `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10FormatSpecTaZ10FormatSpec'
>> helloa.o:helloa.d:(.text._D3std6format64__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTtZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8AppenderxAatZk+0x40): more undefined references to `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10FormatSpecTaZ10FormatSpec' follow
>> collect2: error: ld returned 1 exit status
>> 
>> After 7 hours of effort and trying everything it still doesn't work :((
>
> And when you compile like this?: dmd helloa.d -L-lcurl
> This will link in the static version of Phobos and there is
> only one static (.a) Phobos on any system. -L-lphobos2 might
> link against the wrong (.so) if you have an old version. I'm
> just guessing here.

I got two errors mentioned above at once.. :(
« First   ‹ Prev
1 2