Thread overview
Dub failing with message about DFLAGS
Apr 28, 2020
Russel Winder
Apr 28, 2020
WebFreak001
Apr 28, 2020
Russel Winder
Apr 28, 2020
WebFreak001
Apr 28, 2020
Russel Winder
Apr 28, 2020
WebFreak001
Apr 28, 2020
Russel Winder
April 28, 2020
Hi,

Has anyone seen this before, it has just started happening to me and is stopping me doing any work on this D project.


|> dub build
Invalid variable: DFLAGS


-- 
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk



April 28, 2020
On Tuesday, 28 April 2020 at 11:56:26 UTC, Russel Winder wrote:
> Hi,
>
> Has anyone seen this before, it has just started happening to me and is stopping me doing any work on this D project.
>
>
> |> dub build
> Invalid variable: DFLAGS

try running with `dub build -v`
April 28, 2020
On Tue, 2020-04-28 at 12:04 +0000, WebFreak001 via Digitalmars-d-learn wrote:
> On Tuesday, 28 April 2020 at 11:56:26 UTC, Russel Winder wrote:
> > Hi,
> > 
> > Has anyone seen this before, it has just started happening to me and is stopping me doing any work on this D project.
> > 
> > 
> > > > dub build
> > Invalid variable: DFLAGS
> 
> try running with `dub build -v`

I am not sure this gives any further information. :-(

|> dub build -v
Using dub registry url 'https://code.dlang.org/'
Refreshing local packages (refresh existing: true)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/users/russel/.dub/packages/local-packages.json
Looking for local package map at /home/users/russel/Repositories/Git/Masters/Public/ArcamClient_D/.dub/packages/local-packages.json
Determined package version using GIT: arcamclient ~master
Refreshing local packages (refresh existing: false)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/users/russel/.dub/packages/local-packages.json
Looking for local package map at /home/users/russel/Repositories/Git/Masters/Public/ArcamClient_D/.dub/packages/local-packages.json
  Found dependency gtk-d:gtkd 3.9.0
  Found dependency unit-threaded 0.10.8
    Found dependency unit-threaded:mocks 0.10.8
      Found dependency unit-threaded:assertions 0.10.8
        Found dependency unit-threaded:exception 0.10.8
          Found dependency unit-threaded:from 0.10.8
    Found dependency unit-threaded:property 0.10.8
    Found dependency unit-threaded:runner 0.10.8
    Found dependency unit-threaded:integration 0.10.8
Refreshing local packages (refresh existing: false)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/users/russel/.dub/packages/local-packages.json
Looking for local package map at /home/users/russel/Repositories/Git/Masters/Public/ArcamClient_D/.dub/packages/local-packages.json
  Found dependency gtk-d:gtkd 3.9.0
  Found dependency unit-threaded 0.10.8
    Found dependency unit-threaded:mocks 0.10.8
      Found dependency unit-threaded:assertions 0.10.8
        Found dependency unit-threaded:exception 0.10.8
          Found dependency unit-threaded:from 0.10.8
    Found dependency unit-threaded:property 0.10.8
    Found dependency unit-threaded:runner 0.10.8
    Found dependency unit-threaded:integration 0.10.8
Generating using build
Invalid variable: DFLAGS



-- 
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk



April 28, 2020
On Tuesday, 28 April 2020 at 13:44:14 UTC, Russel Winder wrote:
> On Tue, 2020-04-28 at 12:04 +0000, WebFreak001 via Digitalmars-d-learn wrote:
>> [...]
>
> I am not sure this gives any further information. :-(
>
> [...]

in this case, try dub upgrade --vverbose and the full exception message should hopefully show
April 28, 2020
On Tue, 2020-04-28 at 14:03 +0000, WebFreak001 via Digitalmars-d-learn wrote:
> […]
> 
> in this case, try dub upgrade --vverbose and the full exception message should hopefully show

I have no idea what has changed, but things are now working again. Strange.

Thanks for chipping in with support.

-- 
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk



April 28, 2020
On Tuesday, 28 April 2020 at 14:26:11 UTC, Russel Winder wrote:
> On Tue, 2020-04-28 at 14:03 +0000, WebFreak001 via Digitalmars-d-learn wrote:
>> […]
>> 
>> in this case, try dub upgrade --vverbose and the full exception message should hopefully show
>
> I have no idea what has changed, but things are now working again. Strange.
>
> Thanks for chipping in with support.

well it was some problem that you tried to use the $DFLAGS environment variable somewhere but it wasn't defined
April 28, 2020
On Tue, 2020-04-28 at 15:09 +0000, WebFreak001 via Digitalmars-d-learn wrote:
> […]
> 
> well it was some problem that you tried to use the $DFLAGS environment variable somewhere but it wasn't defined

The problem is something to do with Dub and Unit-Threaded. My build never uses the "$DFLAGS" explicitly. The Unit-Threaded stuff does however do:


Performing "$DFLAGS" build using /usr/bin/ldc2 for x86_64.


which is just weird.

-- 
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk