www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Re: DMD 1.037 and 2.020 releases

reply Pablo Ripolles <in-call gmx.net> writes:
Hello,

did anybody installed DMD 2.021 successfully in GNU/Linux?

I get lots of similar errors such as the following, whenever I try to build a
plain "hello world".
/usr/local/lib/phobos/std/c/stdio.d(200): Error: identifier 'va_list' is not
defined
/usr/local/lib/phobos/std/c/stdio.d(200): Error: va_list is used as a type
/usr/local/lib/phobos/std/c/stdio.d(200): Error: cannot have parameter of type
void

My /etc/dmd.conf has:
DFLAGS=-I/usr/local/lib/druntime/import -I/usr/local/lib/phobos

I installed as root with:
install -p -m 0755 dmd/bin/dmd dmd/bin/obj2asm dmd/bin/dumpobj dmd/bin/rdmd
/usr/local/bin/
install -p -m 0644 dmd/lib/libdruntime.a dmd/lib/libphobos2.a /usr/local/lib/
(cd dmd/src/druntime/; find -name '*.d' | xargs tar -c) | (cd
/usr/local/lib/druntime/; tar -xv)
(cd dmd/src/druntime/; find -name '*.di' | xargs tar -c) | (cd
/usr/local/lib/druntime/; tar -xv)
(cd dmd/src/phobos/; find -name '*.d' | xargs tar -c) | (cd
/usr/local/lib/phobos/; tar -xv)

Any idea of what I'm missing?

By the way, I followed the same procedure with DMD 1.037 and it did work.

Thanks a lot!


Walter Bright Wrote:

 
 http://www.digitalmars.com/d/1.0/changelog.html
 http://ftp.digitalmars.com/dmd.1.037.zip
 
 
 
 http://www.digitalmars.com/d/2.0/changelog.html
 http://ftp.digitalmars.com/dmd.2.021.zip
 

Nov 29 2008
parent reply Pablo Ripolles <in-call gmx.net> writes:
I've been following the same procedure (mutatis mutandi) with versions 2.020
and 2.019, only the latter worked.  Clearly there must be some issue related
with the druntime lib which I am missing in the installation procedure.  Any
idea? 

Cheers!


Pablo Ripolles Wrote:

 Hello,
 
 did anybody installed DMD 2.021 successfully in GNU/Linux?
 
 I get lots of similar errors such as the following, whenever I try to build a
plain "hello world".
 /usr/local/lib/phobos/std/c/stdio.d(200): Error: identifier 'va_list' is not
defined
 /usr/local/lib/phobos/std/c/stdio.d(200): Error: va_list is used as a type
 /usr/local/lib/phobos/std/c/stdio.d(200): Error: cannot have parameter of type
void
 
 My /etc/dmd.conf has:
 DFLAGS=-I/usr/local/lib/druntime/import -I/usr/local/lib/phobos
 
 I installed as root with:
 install -p -m 0755 dmd/bin/dmd dmd/bin/obj2asm dmd/bin/dumpobj dmd/bin/rdmd
/usr/local/bin/
 install -p -m 0644 dmd/lib/libdruntime.a dmd/lib/libphobos2.a /usr/local/lib/
 (cd dmd/src/druntime/; find -name '*.d' | xargs tar -c) | (cd
/usr/local/lib/druntime/; tar -xv)
 (cd dmd/src/druntime/; find -name '*.di' | xargs tar -c) | (cd
/usr/local/lib/druntime/; tar -xv)
 (cd dmd/src/phobos/; find -name '*.d' | xargs tar -c) | (cd
/usr/local/lib/phobos/; tar -xv)
 
 Any idea of what I'm missing?
 
 By the way, I followed the same procedure with DMD 1.037 and it did work.
 
 Thanks a lot!
 
 
 Walter Bright Wrote:
 
 
 http://www.digitalmars.com/d/1.0/changelog.html
 http://ftp.digitalmars.com/dmd.1.037.zip
 
 
 
 http://www.digitalmars.com/d/2.0/changelog.html
 http://ftp.digitalmars.com/dmd.2.021.zip
 


Nov 30 2008
parent reply Walter Bright <newshound1 digitalmars.com> writes:
Pablo Ripolles wrote:
 I've been following the same procedure (mutatis mutandi) with
 versions 2.020 and 2.019, only the latter worked.  Clearly there must
 be some issue related with the druntime lib which I am missing in the
 installation procedure.  Any idea?

I don't know what's going wrong with your setup. But the first thing is to fix DFLAGS so that the phobos comes before druntime, as phobos should be searched first.
Nov 30 2008
parent reply Pablo Ripolles <in-call gmx.net> writes:
Walter Bright Wrote:

 Pablo Ripolles wrote:
 I've been following the same procedure (mutatis mutandi) with
 versions 2.020 and 2.019, only the latter worked.  Clearly there must
 be some issue related with the druntime lib which I am missing in the
 installation procedure.  Any idea?

I don't know what's going wrong with your setup. But the first thing is to fix DFLAGS so that the phobos comes before druntime, as phobos should be searched first.

Yes indeed! that was it! It would be nice not to forget to update the install docs such as in http://www.digitalmars.com/d/2.0/dmd-linux.html (there is no comment about druntime stuff at all). Something esle, there is this dmd.conf.5 man page which is deployed in man1 directory of the dmd zip file. Shouldn't it be in a new man5 diretory? again, shouldn't it have renamed its internal number (the one that appears in the header when you type "man dmd.conf" such as DMD.CONF(1)) to DMD.CONF(5)? Walter, thank you very much.
Dec 01 2008
parent reply Walter Bright <newshound1 digitalmars.com> writes:
Pablo Ripolles wrote:
 It would be nice not to forget to update the install docs such as in
 http://www.digitalmars.com/d/2.0/dmd-linux.html (there is no comment
 about druntime stuff at all).
 
 Something esle, there is this dmd.conf.5 man page which is deployed
 in man1 directory of the dmd zip file.  Shouldn't it be in a new man5
 diretory?  again, shouldn't it have renamed its internal number (the
 one that appears in the header when you type "man dmd.conf" such as
 DMD.CONF(1)) to DMD.CONF(5)?

I don't know. I don't know much about man files.
 Walter, thank you very much.
 

Dec 01 2008
parent Pablo Ripolles <in-call gmx.net> writes:
Walter Bright Wrote:

 Pablo Ripolles wrote:
 It would be nice not to forget to update the install docs such as in
 http://www.digitalmars.com/d/2.0/dmd-linux.html (there is no comment
 about druntime stuff at all).
 
 Something else, there is this dmd.conf.5 man page which is deployed
 in man1 directory of the dmd zip file.  Shouldn't it be in a new man5
 directory?  again, shouldn't it have renamed its internal number (the
 one that appears in the header when you type "man dmd.conf" such as
 DMD.CONF(1)) to DMD.CONF(5)?

I don't know. I don't know much about man files.

Ok, I don't know much about man files either. However here is the reasoning. The man pages are structured in sections and section 1 contains descriptions of "Executable programs or shell commands" while section 5 takes care of "File formats and conventions". *A typical example of the *first* case would be the gfortran executable, its man file can be found in: pablo baobab:~$ ls -al /usr/share/man/man1/ | grep gfortran lrwxrwxrwx 1 root root 17 2008-11-26 16:12 gfortran.1.gz -> gfortran-4.3.1.gz -rw-r--r-- 1 root root 13215 2008-09-28 18:02 gfortran-4.3.1.gz which is in man1 and carries the 1 in its file name. Moreover its man page displays (1) on the top: GFORTRAN(1) GNU GFORTRAN(1) NAME gfortran - GNU Fortran compiler SYNOPSIS gfortran [-c|-S|-E] [-g] [-pg] [-Olevel] [-Wwarn...] [-pedantic] [-Idir...] [-Ldir...] [-Dmacro[=defn]...] [-Umacro] [-foption...] [-mmachine-option...] [-o outfile] infile... Only the most useful options are listed here; see below for the remainder. *A typical example of the *second* case would be the xorg.conf config file, its man file can be found in: pablo baobab:~$ ls -al /usr/share/man/man5/ | grep xorg -rw-r--r-- 1 root root 17453 2008-11-15 17:57 xorg.conf.5.gz which is in man5 and carries the 5 in its file name. Moreover its man page displays (5) on the top: xorg.conf(5) xorg.conf(5) NAME xorg.conf - configuration File for Xorg X server INTRODUCTION Xorg supports several mechanisms for supplying/obtaining configuration and run-time parameters: command line options, environment variables, All this is just a matter of consistency, not very important obviously, nice however. Cheers!
Dec 02 2008