Bug 752886 - ldc2/ldmd2 can't compile "Hello, world!" example....
Summary: ldc2/ldmd2 can't compile "Hello, world!" example....
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: ldc
Version: 16
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: MERCIER Jonathan
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-10 17:55 UTC by Horst H. von Brand
Modified: 2011-11-13 11:36 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-13 11:36:36 UTC
Type: ---


Attachments (Terms of Use)
"Hello, world!" in D (sez the D homepage) (89 bytes, text/plain)
2011-11-10 17:55 UTC, Horst H. von Brand
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.