DUB problems

Rikki Cattermole via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Dec 31 01:23:43 PST 2015


On 31/12/15 10:17 PM, Daniel Kozak via Digitalmars-d-learn wrote:
> V Thu, 31 Dec 2015 09:09:20 +0000
> yawniek via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
> napsáno:
>
>> On Thursday, 31 December 2015 at 08:51:42 UTC, Daniel Kozak wrote:
>>> I try to build vibe-d Hello world app with dub, but I have many
>>> problems with dub, nothing works at all
>>>
>>> Error: Output file 'client.o' for module 'vibe.http.client'
>>> collides with previous module 'vibe.db.mongo.client'. See the
>>> -oq option
>>>
>>> and allmost nothing works as expected. How can I do one simple
>>> thing:
>>>
>>> Compile vibe.d with libasync and with ldc compiler
>>
>> os? versions? it kind of depends.
>>
>> i just tested this on linux.
>>
>> dub init -t vibe.d foo
>> cd foo
>> cat dub.json
>> {
>> 	"name": "foo",
>> 	"description": "A simple vibe.d server application.",
>> 	"copyright": "Copyright © 2015, yannick",
>> 	"authors": ["yannick"],
>> 	"dependencies": {
>> 		"vibe-d": "~>0.7.26"
>> 	},
>> 	"versions": ["VibeDefaultMain"],
>> "subConfigurations": { "vibe-d": "libasync"}
>> }
>>
>> ws01% cat dub.selections.json
>> {
>> 	"fileVersion": 1,
>> 	"versions": {
>> 		"memutils": "0.4.3",
>> 		"vibe-d": "0.7.26",
>> 		"libevent": "2.0.1+2.0.16",
>> 		"libev": "5.0.0+4.04",
>> 		"openssl": "1.1.4+1.0.1g",
>> 		"libasync": "0.7.5"
>> 	}
>> }
>>
>> dub build  --compiler=ldc -b release --combined
>> ldc --version
>> LDC - the LLVM D compiler (0.16.1):
>>     based on DMD v2.067.1 and LLVM 3.7.0
>> dub --version
>> DUB version 0.9.24-rc.2+18-g4fece3c
>>
>> note the dub switches
>> compiling in debug mode or without --combined crashes!
>>
>
> Error: Output file 'hashmap.o' for module 'memutils.hashmap' collides
> with previous module 'libasync.internals.hashmap'. See the -oq option
>
> It is wierd because it works before, I probably will try to remove
> everything and try it again

What are your CLI variables set to?
For *nix use export
For Windows use set
To find out.



More information about the Digitalmars-d-learn mailing list