www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Dub failing with message about DFLAGS

reply Russel Winder <russel winder.org.uk> writes:
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


--=20
Russel.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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
Apr 28 2020
parent reply WebFreak001 <d.forum webfreak.org> writes:
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`
Apr 28 2020
parent reply Russel Winder <russel winder.org.uk> writes:
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,
=20
 Has anyone seen this before, it has just started happening to=20
 me and is stopping me doing any work on this D project.
=20
=20
 dub build
Invalid variable: DFLAGS
=20 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-pac= kages.json Looking for local package map at /home/users/russel/Repositories/Git/Master= s/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-pac= kages.json Looking for local package map at /home/users/russel/Repositories/Git/Master= s/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-pac= kages.json Looking for local package map at /home/users/russel/Repositories/Git/Master= s/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 --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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
Apr 28 2020
parent reply WebFreak001 <d.forum webfreak.org> writes:
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
Apr 28 2020
parent reply Russel Winder <russel winder.org.uk> writes:
On Tue, 2020-04-28 at 14:03 +0000, WebFreak001 via Digitalmars-d-learn
wrote:
 [=E2=80=A6]
=20
 in this case, try dub upgrade --vverbose and the full exception=20
 message should hopefully show
I have no idea what has changed, but things are now working again. Strange. Thanks for chipping in with support. --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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
Apr 28 2020
parent reply WebFreak001 <d.forum webfreak.org> writes:
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
Apr 28 2020
parent Russel Winder <russel winder.org.uk> writes:
On Tue, 2020-04-28 at 15:09 +0000, WebFreak001 via Digitalmars-d-learn
wrote:
 [=E2=80=A6]
=20
 well it was some problem that you tried to use the $DFLAGS=20
 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. --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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
Apr 28 2020