Bug 752886

Summary: ldc2/ldmd2 can't compile "Hello, world!" example....
Product: [Fedora] Fedora Reporter: Horst H. von Brand <vonbrand>
Component: ldcAssignee: MERCIER Jonathan <bioinfornatics>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16CC: bioinfornatics
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-13 11:36:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
"Hello, world!" in D (sez the D homepage) none

Description Horst H. von Brand 2011-11-10 17:55:47 UTC
Created attachment 532891 [details]
"Hello, world!" in D (sez the D homepage)

Description of problem:
After installing ldc, I had to install tango-devel (missing dependency on the standard library?)

If I try the attached "Hello, world!" example I just get error messages...

Version-Release number of selected component (if applicable):
ldc-2-4.20110801git58d40d2.fc16.x86_64
tango-devel-0.99.9-21.20101012svn5569.fc15.x86_64

How reproducible:
Always...

Steps to Reproduce:
1. ldc2 hello.d
2.
3.
  
Actual results:
$ ldc2 hello.d 
/usr/include/d/tango/core/Thread.d(633): volatile statements deprecated; used synchronized statements instead
/usr/include/d/tango/core/Thread.d(680): volatile statements deprecated; used synchronized statements instead
/usr/include/d/tango/core/Thread.d(692): volatile statements deprecated; used synchronized statements instead
/usr/include/d/tango/core/Thread.d(2578): volatile statements deprecated; used synchronized statements instead
/usr/include/d/tango/core/Thread.d(3607): 15 == 0 must be parenthesized when next to operator &
/usr/include/d/tango/core/Thread.d(3691): volatile statements deprecated; used synchronized statements instead
/usr/include/d/tango/core/Thread.d(3699): volatile statements deprecated; used synchronized statements instead
/usr/include/d/tango/core/Thread.d(3726): volatile statements deprecated; used synchronized statements instead
/usr/include/d/tango/core/Thread.d(3732): volatile statements deprecated; used synchronized statements instead
/usr/include/d/tango/core/sync/Atomic.d(144): volatile statements deprecated; used synchronized statements instead
/usr/include/d/tango/core/sync/Atomic.d(153): volatile statements deprecated; used synchronized statements instead
/usr/include/d/tango/core/sync/Atomic.d(157): volatile statements deprecated; used synchronized statements instead
/usr/include/d/tango/core/sync/Atomic.d(161): volatile statements deprecated; used synchronized statements instead
/usr/include/d/tango/core/sync/Atomic.d(174): volatile statements deprecated; used synchronized statements instead
/usr/include/d/tango/core/sync/Atomic.d(183): volatile statements deprecated; used synchronized statements instead
/usr/include/d/tango/core/sync/Atomic.d(187): volatile statements deprecated; used synchronized statements instead
/usr/include/d/tango/core/sync/Atomic.d(191): volatile statements deprecated; used synchronized statements instead
/usr/include/d/tango/core/sync/Atomic.d(265): volatile statements deprecated; used synchronized statements instead
/usr/include/d/tango/core/sync/Atomic.d(273): volatile statements deprecated; used synchronized statements instead
/usr/include/d/tango/core/sync/Atomic.d(281): volatile statements deprecated; used synchronized statements instead
/usr/include/d/tango/core/sync/Atomic.d(304): volatile statements deprecated; used synchronized statements instead

Expected results:
Some executable, ...

Additional info:

Comment 1 MERCIER Jonathan 2011-11-11 23:05:23 UTC
Dear,
currently tango D2 is being in development, in Fedora 16 the standard library is phobos

so hello world is:

----------------
import std.stdio;
import std.string;

void main( sring[] args ){
    writeln( "Hello world" );
}
----------------
read a file

----------------
private import std.stream : BufferedFile;
private import std.stdio  : writeln;
private import std.string;

void main( sring[] args ){
    foreach(char[] line; new BufferedFile( filePath )){
        writeln( line );
    }
}
----------------

i follow tango d2 here: https://github.com/SiegeLord/Tango-D2/
when it will enough stable i will add it

Comment 2 MERCIER Jonathan 2011-11-13 11:36:11 UTC
I close the bug, if you feel you need re-open the bug you are welcome

I can suggest add D repo:
$ su -lc 'yum install --nogpgcheck http://repos.fedorapeople.org/repos/bioinfornatics/D/fedora-16/noarch/d-repo-16-1.fc16.noarch.rpm'

currenlty only for 64 bits
derelict, gtkd, DSQLite, DParser