Re: dub doesn't work with dmd 1:2.082.0-1.0?

2018-09-17 Thread rmc via Digitalmars-d-learn
On Friday, 14 September 2018 at 15:42:05 UTC, Jesse Phillips 
wrote:

On Friday, 14 September 2018 at 05:41:41 UTC, rmc wrote:

I do wonder if `dmd` by itself on the command line works. 
Could it be some sort of 32 bit bug in the latest release of 
dmd? Relating to argc/argv.



"source/dub/compilers/compiler.d(127)"

That doesn't look like DMD source code.


Yip, that link is to where dub uses dmd (showing the specific 
error) and the other link is to a line in dmd that throws the 
initial error. The mars.d file is part of dmd.


The line in dmd appears to be a safety check that makes sure 
there is at least one argument in argv.


To me it seems really weird that dmd would be able to reach the 
trymain function with `argc < 1 || !argv` or with argc >= 1 and 
one of the arguments being null.


R


Re: dub doesn't work with dmd 1:2.082.0-1.0?

2018-09-13 Thread rmc via Digitalmars-d-learn
On Thursday, 13 September 2018 at 14:31:53 UTC, Jesse Phillips 
wrote:

On Monday, 10 September 2018 at 09:23:19 UTC, SuperPrower wrote:
dub was working nice until I updated my system (I run 
ArchLinux32) just now. dmd was updated from version 
1:2.081.2-1.0 to 1:2.082.0-1.0 (according to pacman package 
manager). After that, I couldn't invoke dub for anything. Here 
is the attempt to run `dub --vverbose`:


Can you find /usr/bin/dmd or run dmd?


The error is from the trymain function in dmd so its definitely 
installed.


I do wonder if `dmd` by itself on the command line works. Could 
it be some sort of 32 bit bug in the latest release of dmd? 
Relating to argc/argv.


Re: dub doesn't work with dmd 1:2.082.0-1.0?

2018-09-13 Thread rmc via Digitalmars-d-learn

On Monday, 10 September 2018 at 09:23:19 UTC, SuperPrower wrote:
dub was working nice until I updated my system (I run 
ArchLinux32) just now. dmd was updated from version 
1:2.081.2-1.0 to 1:2.082.0-1.0 (according to pacman package 
manager). After that, I couldn't invoke dub for anything. Here 
is the attempt to run `dub --vverbose`:

[snip]
Full exception: 
object.Exception@source/dub/compilers/compiler.d(127): Failed 
to invoke the compiler /usr/bin/dmd to determine the build 
platform: Error: missing or null command line arguments

[snip]


There don't seem to be any changes to dub or dmd directly related 
to this error perhaps its a packaging issue?


https://github.com/dlang/dmd/blame/61fe641e9a5d40617d6d20aa1abc64e77c00b6ef/src/dmd/mars.d#L205

https://github.com/dlang/dub/blame/765cf8ea8bec9b8da05e41e4987f1b37f02305bc/source/dub/compilers/compiler.d#L127

Just out of curiosity; Why are you using ArchLinux32?

R


Compiler bug? regression for the template function call syntax

2013-05-31 Thread rmc

Hi all,

Not sure if this is a bug so thought I'd post here.

It is very common to use a function template without the call 
() expecting that it will be called. However with the latest 
compilers hibernated only compiles when one leaves out the 
-property dmd command line option.


The call:
getColumnName!(MemberTest, simple)

Has to be changes to:
getColumnName!(MemberTest, simple)()

Now do that everywhere a template function is used.

Any help?

Thanks.
Rory