www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - updating druntime

reply "Benji" <romanbeno273 gmail.com> writes:
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' ?
Dec 12 2013
parent reply "John Colvin" <john.loughran.colvin gmail.com> writes:
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?
Dec 12 2013
parent reply "Benji" <romanbeno273 gmail.com> writes:
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)
Dec 12 2013
parent reply Marco Leise <Marco.Leise gmx.de> writes:
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
Dec 13 2013
next sibling parent reply "John Colvin" <john.loughran.colvin gmail.com> writes:
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?!?!
Dec 13 2013
parent reply Marco Leise <Marco.Leise gmx.de> writes:
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
Dec 13 2013
parent "John Colvin" <john.loughran.colvin gmail.com> writes:
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 :)
Dec 13 2013
prev sibling parent reply "Benji" <romanbeno273 gmail.com> writes:
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__T8AppenderTAyaZ8Ap enderxAammZk+0x45): undefined reference to `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10FormatSpecTaZ10FormatSpec' helloa.o: In function `_D3std6format68__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTmTAyaZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8AppenderxAamAyaZk': helloa.d:(.text._D3std6format68__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTmTAyaZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8Appe derxAamAyaZk+0x49): undefined reference to `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10FormatSpecTaZ10FormatSpec' helloa.o:helloa.d:(.text._D3std6format64__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTtZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8A penderxAatZk+0x40): more undefined references to `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10Format pecTaZ10FormatSpec' follow collect2: error: ld returned 1 exit status After 7 hours of effort and trying everything it still doesn't work :((
Dec 13 2013
parent reply Marco Leise <Marco.Leise gmx.de> writes:
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__T8AppenderTAyaZ8Ap
enderxAammZk+0x45): 
 undefined reference to 
 `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10FormatSpecTaZ10FormatSpec'
 helloa.o: In function 
 `_D3std6format68__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTmTAyaZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8AppenderxAamAyaZk':
 helloa.d:(.text._D3std6format68__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTmTAyaZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8Appe
derxAamAyaZk+0x49): 
 undefined reference to 
 `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10FormatSpecTaZ10FormatSpec'
 helloa.o:helloa.d:(.text._D3std6format64__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTtZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8A
penderxAatZk+0x40): 
 more undefined references to 
 `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10Format
pecTaZ10FormatSpec' 
 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
Dec 13 2013
parent reply "Benji" <romanbeno273 gmail.com> writes:
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__T8AppenderTAyaZ8Ap
enderxAammZk+0x45): 
 undefined reference to 
 `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10FormatSpecTaZ10FormatSpec'
 helloa.o: In function 
 `_D3std6format68__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTmTAyaZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8AppenderxAamAyaZk':
 helloa.d:(.text._D3std6format68__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTmTAyaZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8Appe
derxAamAyaZk+0x49): 
 undefined reference to 
 `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10FormatSpecTaZ10FormatSpec'
 helloa.o:helloa.d:(.text._D3std6format64__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTtZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8A
penderxAatZk+0x40): 
 more undefined references to 
 `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10Format
pecTaZ10FormatSpec' 
 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.. :(
Dec 13 2013
parent reply Marco Leise <Marco.Leise gmx.de> writes:
Am Fri, 13 Dec 2013 21:40:10 +0100
schrieb "Benji" <romanbeno273 gmail.com>:

 I got two errors mentioned above at once.. :(
What the heck is happening on your system? :( -- Marco
Dec 13 2013
parent reply "Benji" <romanbeno273 gmail.com> writes:
On Saturday, 14 December 2013 at 00:15:30 UTC, Marco Leise wrote:
 Am Fri, 13 Dec 2013 21:40:10 +0100
 schrieb "Benji" <romanbeno273 gmail.com>:

 I got two errors mentioned above at once.. :(
What the heck is happening on your system? :(
I plan to install Arch, so hope that will solve it :P
Dec 13 2013
parent reply Marco Leise <Marco.Leise gmx.de> writes:
Am Sat, 14 Dec 2013 08:43:42 +0100
schrieb "Benji" <romanbeno273 gmail.com>:

 On Saturday, 14 December 2013 at 00:15:30 UTC, Marco Leise wrote:
 Am Fri, 13 Dec 2013 21:40:10 +0100
 schrieb "Benji" <romanbeno273 gmail.com>:

 I got two errors mentioned above at once.. :(
What the heck is happening on your system? :(
I plan to install Arch, so hope that will solve it :P
So format c: it is ... If you are switching already, Gentoo (http://www.gentoo.org/main/en/about.xml) is also a viable option for D development (https://github.com/gentoo-dlang) especially if you want to try alternative compilers to DMD and plan to use libraries like GtkD and want them to work on top of all your installed D compilers. [Currently all D compilers produce libraries that are incompatible with those of the other compilers, so a library needs to be compiled and installed up to 6 times for all three compilers and 32/64 bit versions. So it is nice to get some assistance from the package manager here.] -- Marco
Dec 14 2013
parent reply "Benji" <romanbeno273 gmail.com> writes:
On Saturday, 14 December 2013 at 16:58:06 UTC, Marco Leise wrote:
 Am Sat, 14 Dec 2013 08:43:42 +0100
 schrieb "Benji" <romanbeno273 gmail.com>:

 On Saturday, 14 December 2013 at 00:15:30 UTC, Marco Leise 
 wrote:
 Am Fri, 13 Dec 2013 21:40:10 +0100
 schrieb "Benji" <romanbeno273 gmail.com>:

 I got two errors mentioned above at once.. :(
What the heck is happening on your system? :(
I plan to install Arch, so hope that will solve it :P
So format c: it is ... If you are switching already, Gentoo (http://www.gentoo.org/main/en/about.xml) is also a viable option for D development (https://github.com/gentoo-dlang) especially if you want to try alternative compilers to DMD and plan to use libraries like GtkD and want them to work on top of all your installed D compilers. [Currently all D compilers produce libraries that are incompatible with those of the other compilers, so a library needs to be compiled and installed up to 6 times for all three compilers and 32/64 bit versions. So it is nice to get some assistance from the package manager here.]
I have Debian now, and it works with dmd ~/main.d -L-lcurl :)
Dec 15 2013
parent reply Marco Leise <Marco.Leise gmx.de> writes:
Am Sun, 15 Dec 2013 09:06:16 +0100
schrieb "Benji" <romanbeno273 gmail.com>:

 On Saturday, 14 December 2013 at 16:58:06 UTC, Marco Leise wrote:
 Am Sat, 14 Dec 2013 08:43:42 +0100
 schrieb "Benji" <romanbeno273 gmail.com>:

 On Saturday, 14 December 2013 at 00:15:30 UTC, Marco Leise 
 wrote:
 Am Fri, 13 Dec 2013 21:40:10 +0100
 schrieb "Benji" <romanbeno273 gmail.com>:

 I got two errors mentioned above at once.. :(
What the heck is happening on your system? :(
I plan to install Arch, so hope that will solve it :P
So format c: it is ... If you are switching already, Gentoo (http://www.gentoo.org/main/en/about.xml) is also a viable option for D development (https://github.com/gentoo-dlang) especially if you want to try alternative compilers to DMD and plan to use libraries like GtkD and want them to work on top of all your installed D compilers. [Currently all D compilers produce libraries that are incompatible with those of the other compilers, so a library needs to be compiled and installed up to 6 times for all three compilers and 32/64 bit versions. So it is nice to get some assistance from the package manager here.]
I have Debian now, and it works with dmd ~/main.d -L-lcurl :)
As it should. But I keep wondering why it didn't work on Ubuntu which is based on Debian. Oh well... :) -- Marco
Dec 15 2013
parent Joseph Rushton Wakeling <joseph.wakeling webdrake.net> writes:
On 15/12/13 14:27, Marco Leise wrote:
 As it should. But I keep wondering why it didn't work on
 Ubuntu which is based on Debian. Oh well... :)
Forgot to copy phobos/etc to include/d2/etc ... ?
Dec 15 2013