Re: GCC-compatible dmd shell wrapper?

2015-10-17 Thread Shriramana Sharma via Digitalmars-d
Iain Buclaw via Digitalmars-d wrote:

>> I previously had some serious problems with GDC so never tried that ever
>> again, but dmd, ldmd2 and ldc2 all generally have the same syntax, esp.
>> w.r.t missing -o...
>>
>>
> Where's the bug report?

http://forum.dlang.org/post/mailman.572.1370073456.13711.digitalmars-d-le...@puremagic.com

http://forum.dlang.org/post/mailman.573.1370076049.13711.digitalmars-d-le...@puremagic.com

Both dated 2013-Jun-01.

The initial post I started that thread with was on the previous day: 
http://forum.dlang.org/post/mailman.520.1370020486.13711.digitalmars-d-le...@puremagic.com

And I had even provided a stacktrace at: 
http://forum.dlang.org/post/mailman.551.1370044498.13711.digitalmars-d-le...@puremagic.com

Now I'm scared off of even installing gdc on my system, sorry!

-- 
Shriramana Sharma, Penguin #395953


Re: GCC-compatible dmd shell wrapper?

2015-10-17 Thread Iain Buclaw via Digitalmars-d
On 17 Oct 2015 11:50 am, "Shriramana Sharma via Digitalmars-d" <
digitalmars-d@puremagic.com> wrote:
>
> Iain Buclaw via Digitalmars-d wrote:
>
> >> I previously had some serious problems with GDC so never tried that
ever
> >> again, but dmd, ldmd2 and ldc2 all generally have the same syntax, esp.
> >> w.r.t missing -o...
> >>
> >>
> > Where's the bug report?
>
>
http://forum.dlang.org/post/mailman.572.1370073456.13711.digitalmars-d-le...@puremagic.com
>
>
http://forum.dlang.org/post/mailman.573.1370076049.13711.digitalmars-d-le...@puremagic.com
>
> Both dated 2013-Jun-01.
>
> The initial post I started that thread with was on the previous day:
>
http://forum.dlang.org/post/mailman.520.1370020486.13711.digitalmars-d-le...@puremagic.com
>
> And I had even provided a stacktrace at:
>
http://forum.dlang.org/post/mailman.551.1370044498.13711.digitalmars-d-le...@puremagic.com
>
> Now I'm scared off of even installing gdc on my system, sorry!
>
> --
> Shriramana Sharma, Penguin #395953

Looking at that backtrace I can only speculate.  Segfault in dso registry -
how stable was dmd's shared library support back then?

If you are certain that it only started segfaulting after installing
gdc-4.6, the only other case to speculate is what was the default gcc
version?

I can't see having two versions of gcc installed being a problem - as what
would have undoubtedly happened if the defaults-gcc package was 4.7 or
later, but I question how dmd did it's linking back then.  It used to call
gcc, but now calls ld directly now though, right?

In any case, dmd shared library support, or linking against a unsupported C
runtime, had the person asked you to run ldd against the broken binary,
probably would have guessed one or the other.

In any case neither directly relate to each other - different library names
different module paths - so I still have doubts over your claims.

The most common reason I'm aware of is having two versions of dmd installed.

But if you are unfamiliar with a package system you always seem to find
ways to break it that don't make much sense.

That's the long answer for "You should not be able to reproduce your
problem should you do the same again, and if you do, I'd eat my hat".

Iain.


Re: GCC-compatible dmd shell wrapper?

2015-10-16 Thread Iain Buclaw via Digitalmars-d
On 16 October 2015 at 15:49, Shriramana Sharma via Digitalmars-d <
digitalmars-d@puremagic.com> wrote:

> Daniel Kozak wrote:
>
> > dmd, gdmd, ldmd2
>
> Excuse me -- I don't understand what you mean. I was asking if anyone had
> written a shell wrapper for dmd to accept standard GCC/Clang-like syntax
> for
> input files etc. I am particularly missing the -o option.
>
> No big deal, guess can do it myself...
>
> I previously had some serious problems with GDC so never tried that ever
> again, but dmd, ldmd2 and ldc2 all generally have the same syntax, esp.
> w.r.t missing -o...
>
>
Where's the bug report?


GCC-compatible dmd shell wrapper?

2015-10-16 Thread Shriramana Sharma via Digitalmars-d
dmd's command-line argument parsing is different from that of gcc/clang. Of 
course I can use ldc or gdc but as I want to stay with latest improvements I 
would prefer to use dmd, but I'm having to readapt my habit every time I 
want to compile a D program. Has anyone written a thin shell wrapper 
(running Kubuntu Trusty LTS here) for dmd?

Thanks!

-- 
Shriramana Sharma, Penguin #395953


Re: GCC-compatible dmd shell wrapper?

2015-10-16 Thread Daniel Kozak via Digitalmars-d
Shriramana Sharma píše v Pá 16. 10. 2015 v 17:51 +0530:
> dmd's command-line argument parsing is different from that of
> gcc/clang. Of 
> course I can use ldc or gdc but as I want to stay with latest
> improvements I 
> would prefer to use dmd, but I'm having to readapt my habit every
> time I 
> want to compile a D program. Has anyone written a thin shell wrapper 
> (running Kubuntu Trusty LTS here) for dmd?
> 
> Thanks!
> 

dmd, gdmd, ldmd2


Re: GCC-compatible dmd shell wrapper?

2015-10-16 Thread Daniel Kozak via Digitalmars-d
Daniel Kozak píše v Pá 16. 10. 2015 v 15:46 +0200:
> Shriramana Sharma píše v Pá 16. 10. 2015 v 17:51 +0530:
> > dmd's command-line argument parsing is different from that of
> > gcc/clang. Of 
> > course I can use ldc or gdc but as I want to stay with latest
> > improvements I 
> > would prefer to use dmd, but I'm having to readapt my habit every
> > time I 
> > want to compile a D program. Has anyone written a thin shell
> > wrapper 
> > (running Kubuntu Trusty LTS here) for dmd?
> > 
> > Thanks!
> > 
> 
> dmd, gdmd, ldmd2

Oh I see now, you dont look for universal D way, but something same as
clang or gcc


Re: GCC-compatible dmd shell wrapper?

2015-10-16 Thread Shriramana Sharma via Digitalmars-d
Daniel Kozak wrote:

> dmd, gdmd, ldmd2

Excuse me -- I don't understand what you mean. I was asking if anyone had 
written a shell wrapper for dmd to accept standard GCC/Clang-like syntax for 
input files etc. I am particularly missing the -o option.

No big deal, guess can do it myself...

I previously had some serious problems with GDC so never tried that ever 
again, but dmd, ldmd2 and ldc2 all generally have the same syntax, esp. 
w.r.t missing -o...

-- 
Shriramana Sharma, Penguin #395953


Re: GCC-compatible dmd shell wrapper?

2015-10-16 Thread Shriramana Sharma via Digitalmars-d
Iain Buclaw via Digitalmars-d wrote:

>> I previously had some serious problems with GDC so never tried that ever
>> again, but dmd, ldmd2 and ldc2 all generally have the same syntax, esp.
>> w.r.t missing -o...
>>
>>
> Where's the bug report?

Sorry I don't think I filed one. It was quite some time back. It was like 
after once installing GDC, I couldn't ever install DMD again and have it 
work. Maybe I posted about that here on the forum, but I don't remember. I'm 
not sure I would care to try to reproduce that since last time I was only 
able to reinstall DMD after a complete re-install of my Kubuntu system (a la 
Windows, yikes – never had to do that for *any* other Linux-based program!).

Besides, my post wasn't intended to deride GDC in any way... It's just that 
for C/C++ I already moved to Clang totally, so not too interested in GCC-
based compilers. I realize you are putting a lot of effort into GDC, but 
well it's just that I'm not looking into it. Sorry again...

-- 
Shriramana Sharma, Penguin #395953