RejectedSoftware Forums

Sign up

Errors after compiling dub with dub

I downloaded git master, ran ./build.sh, and then ./bin/dub build.
When running ./bin/dub --help I get the following error:

Fatal Error while loading '/usr/lib/libphobos2.so.0.64':
	The module 'std.regex' is already defined in './bin/dub'.
[1]    3286 segmentation fault (core dumped)  ./bin/dub --help

Re: Errors after compiling dub with dub

On Thu, 20 Feb 2014 12:44:55 GMT, simendsjo wrote:

I downloaded git master, ran ./build.sh, and then ./bin/dub build.
When running ./bin/dub --help I get the following error:

Fatal Error while loading '/usr/lib/libphobos2.so.0.64':
	The module 'std.regex' is already defined in './bin/dub'.
[1]    3286 segmentation fault (core dumped)  ./bin/dub --help

Hm, the second ./bin/dub build after the ./build.sh isn't really needed, although it should in theory produce a working binary, too. But there is currently a workaround in its package.json for using std.net.curl with DMD <= 2.064 that breaks builds done with DMD 2.065. Removing the "libs-posix-dmd": ["phobos2"], line should make it work on 2.065, though (or just omitting the ./bin/dub build, of course).