www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Link problem in std.regex with DMD git master

reply =?UTF-8?B?Ik5vcmRsw7Z3Ig==?= <per.nordlow gmail.com> writes:
Since a couple of days my DMD git master has start to error as 
below when I compiled programs that import std.regex. What's 
wrong?

dmd -vcolumns -debug -g -gs -unittest -wi -main conceptnet5.d 
/home/per/Work/justd/languages.d 
/home/per/Work/justd/algorithm_ex.d /home/per/Work/justd/dbg.d 
/home/per/Work/justd/wordnet.d 
/home/per/Work/justd/backtrace/backtrace.d 
/home/per/Work/justd/traits_ex.d /home/per/Work/justd/range_ex.d 
/home/per/Work/justd/rational.d /home/per/Work/justd/bitset.d 
/home/per/Work/justd/bitop_ex.d /home/per/Work/justd/msgpack.d 
/home/per/Work/justd/random_ex.d /home/per/Work/justd/assert_ex.d 
-of/home/per/.emacs.d/auto-builds/dmd/Debug-Boundscheck-Unittest/home/per/Wo
k/justd/conceptnet5 
2>&1 | ddemangle
/home/per/Work/justd/msgpack.d(4614,25): Warning: calling 
msgpack.pack!(false, string).pack without side effects discards 
return value of type ubyte[], prepend a cast(void) if intentional
/home/per/Work/justd/msgpack.d(4614,25): Warning: calling 
msgpack.pack!(false, string).pack without side effects discards 
return value of type ubyte[], prepend a cast(void) if intentional
/home/per/.emacs.d/auto-builds/dmd/Debug-Boundscheck-Unittest/home/per/Work/justd/conceptnet5.o:__main.d:_D32TypeInfo_S3std5regex1
NamedGroup6__initZ: 
error: undefined reference to 'nothrow  trusted ulong 
std.regex.NamedGroup.__xtoHash(ref const(std.regex.NamedGroup))'
/home/per/.emacs.d/auto-builds/dmd/Debug-Boundscheck-Unittest/home/per/Work/justd/conceptnet5.o:__main.d:_D32TypeInfo_S3std5regex1
NamedGroup6__initZ: 
error: undefined reference to 'bool 
std.regex.NamedGroup.__xopEquals(ref const(std.regex.NamedGroup), 
ref const(std.regex.NamedGroup))'
/home/per/opt/x86_64-unknown-linux-gnu/dmd/linux/bin64/src/pho
os/std/regex.d:965: 
error: undefined reference to 'std.regex.Bytecode 
std.regex.Bytecode.fromRaw(uint)'
/home/per/opt/x86_64-unknown-linux-gnu/dmd/linux/bin64/src/phob
s/std/regex.d:1040: 
error: undefined reference to 'ref std.regex.Bytecode 
std.regex.Bytecode.__ctor(std.regex.IR, uint)'
/home/per/opt/x86_64-unknown-linux-gnu/dmd/linux/bin64/src/phob
s/std/regex.d:1067: 
error: undefined reference to 'ref std.regex.Bytecode 
std.regex.Bytecode.__ctor(std.regex.IR, uint)'
/home/per/opt/x86_64-unknown-linux-gnu/dmd/linux/bin64/src/phob
s/std/regex.d:1091: 
error: undefined reference to 'ref std.regex.Bytecode 
std.regex.Bytecode.__ctor(std.regex.IR, uint)'
/home/per/opt/x86_64-unknown-linux-gnu/dmd/linux/bin64/src/phob
s/std/regex.d:1104: 
error: undefined reference to 'ref std.regex.Bytecode 
std.regex.Bytecode.__ctor(std.regex.IR, uint)'
Sep 17 2014
next sibling parent =?UTF-8?B?Ik5vcmRsw7Z3Ig==?= <per.nordlow gmail.com> writes:
On Wednesday, 17 September 2014 at 23:46:13 UTC, Nordlöw wrote:
 Since a couple of days my DMD git master has start to error as 
 below when I compiled programs that import std.regex. What's 
 wrong?
The error doesn't occur on DMD version 2.066.
Sep 17 2014
prev sibling parent reply "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
On Wednesday, 17 September 2014 at 23:46:13 UTC, Nordlöw wrote:
 Since a couple of days my DMD git master has start to error as 
 below when I compiled programs that import std.regex. What's 
 wrong?
How are you building Phobos? std.regex was recently split up into a package. Make sure your makefiles are up to date.
Sep 17 2014
parent reply =?UTF-8?B?Ik5vcmRsw7Z3Ig==?= <per.nordlow gmail.com> writes:
On Thursday, 18 September 2014 at 00:18:41 UTC, Vladimir 
Panteleev wrote:
 std.regex was recently split up into a package. Make sure your 
 makefiles are up to date.
My installation script for Phobos just copied (appended) to target directory. I guess it picked the old version of std.regex. Works now. Thanks!
Sep 17 2014
parent reply =?UTF-8?B?Ik5vcmRsw7Z3Ig==?= <per.nordlow gmail.com> writes:
On Thursday, 18 September 2014 at 00:35:37 UTC, Nordlöw wrote:
 My installation script for Phobos just copied (appended) to 
 target directory. I guess it picked the old version of
I guess make install in Phobos is a bit to blame in this regard. I'll add some logic in my bash wrapper scripts that removes the installation of Phobos before the new is written there.
Sep 17 2014
parent =?UTF-8?B?Ik5vcmRsw7Z3Ig==?= <per.nordlow gmail.com> writes:
On Thursday, 18 September 2014 at 00:38:33 UTC, Nordlöw wrote:
 I guess make install in Phobos is a bit to blame in this regard.

 I'll add some logic in my bash wrapper scripts that removes the 
 installation of Phobos before the new is written there.
I guess the same goes for druntime.
Sep 17 2014