www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - GDC 0.16

reply David Friedman <d3rdclsmail_a_ _t_earthlink_d_._t_net> writes:
http://home.earthlink.net/~dvdfrdmn/d/

After more than a month of "it's almost ready"... GDC now works with GCC 
4.0.x.  There are lots of fixes too.  Go grab it!

I recently found out that GCC compilers can be installed in a directory 
different from the configured prefix setting.  This makes distributing 
binaries more feasible.  GDC itself can't do this yet, but when it can, 
I will set up a sourceforge page to distribute the binaries.

David
Nov 05 2005
next sibling parent "Walter Bright" <newshound digitalmars.com> writes:
Thanks for all your great work on this!
Nov 05 2005
prev sibling next sibling parent =?ISO-8859-1?Q?Thomas_K=FChne?= <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Friedman schrieb:
 http://home.earthlink.net/~dvdfrdmn/d/
 
 After more than a month of "it's almost ready"... GDC now works with GCC
 4.0.x.  There are lots of fixes too.  Go grab it!
nice Has anyone succeeded in building GDC and GPhobos on AMD64? I've encountered some really strange errors while crosscompiling that didn't seem to be GDC related. Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFDbn8z3w+/yD4P9tIRAnxOAKCp0bhHGcQIKlKwmzqG4Sy833GgTACePgaN MhiJ86CnAnNO9e8a/gCnPh0= =I7zR -----END PGP SIGNATURE-----
Nov 06 2005
prev sibling next sibling parent reply Tiago Gasiba <tiago.gasiba gmail.com> writes:
David Friedman schrieb:

 GDC now works with GCC 4.0.x.  There are lots of fixes too.  Go grab it!
Hi all, I'm using SUSE 10.0 with the following settings: uname -a GNU/Linux gcc --version gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux) I have downloaded the gdc-0.16.tar.gz, and also the gcc-core-4.0.2.tar.gz and gcc-g++-4.0.2.tar.gz and try to compile GDC with the following commands: tar xvzf gcc-core-4.0.2.tar.gz tar xvzf gcc-g++-4.0.2.tar.gz cd gcc-4.0.2/gcc tar xvzf ../../gdc-0.16.tar.gz cd .. mkdir objdir cd objdir ../configure make The compilation process continues for a while, until I get the following error messages. What did I do wrong? How can I compile GDC? Thanks! Tiago <snip> make[1]: Entering directory `/home/gasiba/downloads/D/gdc/gcc-4.0.2/objdir/libiberty' make[2]: Entering directory `/home/gasiba/downloads/D/gdc/gcc-4.0.2/objdir/libiberty/testsuite' make[2]: Für das Ziel »all« ist nichts zu tun. make[2]: Leaving directory `/home/gasiba/downloads/D/gdc/gcc-4.0.2/objdir/libiberty/testsuite' make[1]: Leaving directory `/home/gasiba/downloads/D/gdc/gcc-4.0.2/objdir/libiberty' make[1]: Entering directory `/home/gasiba/downloads/D/gdc/gcc-4.0.2/objdir/fixincludes' make[1]: Für das Ziel »all« ist nichts zu tun. make[1]: Leaving directory `/home/gasiba/downloads/D/gdc/gcc-4.0.2/objdir/fixincludes' make[1]: Entering directory `/home/gasiba/downloads/D/gdc/gcc-4.0.2/objdir/intl' make[1]: Für das Ziel »all« ist nichts zu tun. make[1]: Leaving directory `/home/gasiba/downloads/D/gdc/gcc-4.0.2/objdir/intl' make[1]: Entering directory `/home/gasiba/downloads/D/gdc/gcc-4.0.2/objdir/build-i686-pc-linux-gnu/libiberty' make[2]: Entering directory `/home/gasiba/downloads/D/gdc/gcc-4.0.2/objdir/build-i686-pc-linux-gnu/libiberty/testsuite' make[2]: Für das Ziel »all« ist nichts zu tun. make[2]: Leaving directory `/home/gasiba/downloads/D/gdc/gcc-4.0.2/objdir/build-i686-pc-linux-gnu/libiberty/testsuite' make[1]: Leaving directory `/home/gasiba/downloads/D/gdc/gcc-4.0.2/objdir/build-i686-pc-linux-gnu/libiberty' make[1]: Entering directory `/home/gasiba/downloads/D/gdc/gcc-4.0.2/objdir/build-i686-pc-linux-gnu/fixincludes' make[1]: Für das Ziel »all« ist nichts zu tun. make[1]: Leaving directory `/home/gasiba/downloads/D/gdc/gcc-4.0.2/objdir/build-i686-pc-linux-gnu/fixincludes' make[1]: Entering directory `/home/gasiba/downloads/D/gdc/gcc-4.0.2/objdir/libcpp' make[1]: Für das Ziel »all« ist nichts zu tun. make[1]: Leaving directory `/home/gasiba/downloads/D/gdc/gcc-4.0.2/objdir/libcpp' make[1]: Entering directory `/home/gasiba/downloads/D/gdc/gcc-4.0.2/objdir/gcc' c++ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -I. -Id -I../../gcc -I../../gcc/d -I../../gcc/../include -I../../gcc/../libcpp/include -I. -Id -I../../gcc -I../../gcc/d -I../../gcc/../include -I../../gcc/../libcpp/include -I../../gcc/d -I../../gcc/d/dmd -Id -D_GNU_SOURCE=1 -DD_PHOBOS_DIR=\"/usr/local/lib/gcc/i686-pc-linux-gnu/4.0.2/../../../..`echo /usr/local | sed -e 's|^/usr/local||' -e 's|/[^/]*|/..|g'`/include/d/4.0.2\" -DD_NO_TRAMPOLINES=1 -DD_CPU_VERSYM=\"X86\" -DD_OS_VERSYM=\"linux\" -DD_PHOBOS_TARGET_DIR=\"/usr/local/lib/gcc/i686-pc-linux-gnu/4. .2/../../../..`echo /usr/local | sed -e 's|^/usr/local||' -e 's|/[^/]*|/..|g'`/include/d/4.0.2/i686-pc-linux-gnu\" -DD_GCC_VER=40 -Wno-missing-braces -fmessage-length=0 -DGCC_SAFE_DMD=1 -o d/d-codegen.glue.o -c ../../gcc/d/d-codegen.cc cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-prototypes" is valid for Ada/C/ObjC but not for C++ In file included from ../../gcc/d/dmd/stringtable.h:19, from ../../gcc/d/dmd/mtype.h:24, from ../../gcc/d/d-irstate.h:28, from ../../gcc/d/d-codegen.h:22, from ../../gcc/d/d-codegen.cc:21: ../../gcc/d/dmd/lstring.h:23: warning: ignoring #pragma warning ../../gcc/d/d-gcc-real.h:66: warning: unused parameter ‘v’ ../../gcc/d/d-gcc-real.h:67: warning: unused parameter ‘v’ ../../gcc/d/dmd/dchar.h:159: warning: unused parameter ‘pstart’ ../../gcc/d/dmd/dchar.h:162: warning: unused parameter ‘pstart’ ../../gcc/d/d-codegen.h: In member function ‘unsigned char IRState::isBitArrayAccess(Expression*)’: ../../gcc/d/d-codegen.h:288: warning: operation on ‘e1_basetype’ may be undefined ../../gcc/d/d-codegen.h: At global scope: ../../gcc/d/d-codegen.h:508: warning: ‘class FieldVisitor’ has virtual functions but non-virtual destructor ../../gcc/d/d-codegen.h:519: warning: ‘class AggLayout’ has virtual functions but non-virtual destructor ../../gcc/d/dmd/module.h:43: warning: unused parameter ‘sc’ ../../gcc/d/dmd/cond.h:24: warning: ‘struct Condition’ has virtual functions but non-virtual destructor ../../gcc/d/dmd/cond.h:38: warning: ‘struct DVCondition’ has virtual functions but non-virtual destructor ../../gcc/d/dmd/cond.h:49: warning: ‘struct DebugCondition’ has virtual functions but non-virtual destructor ../../gcc/d/dmd/cond.h:61: warning: ‘struct VersionCondition’ has virtual functions but non-virtual destructor ../../gcc/d/dmd/cond.h:74: warning: ‘struct StaticIfCondition’ has virtual functions but non-virtual destructor ../../gcc/d/dmd/cond.h:84: warning: ‘struct IftypeCondition’ has virtual functions but non-virtual destructor ../../gcc/d/dmd/template.h:66: warning: ‘struct TemplateParameter’ has virtual functions but non-virtual destructor ../../gcc/d/dmd/template.h:106: warning: ‘struct TemplateTypeParameter’ has virtual functions but non-virtual destructor ../../gcc/d/dmd/template.h:127: warning: ‘struct TemplateValueParameter’ has virtual functions but non-virtual destructor ../../gcc/d/dmd/template.h:152: warning: ‘struct TemplateAliasParameter’ has virtual functions but non-virtual destructor ../../gcc/d/dt.h:61: warning: unused parameter ‘ty’ ../../gcc/d/dt.h:73: warning: unused parameter ‘ty’ ../../gcc/d/d-codegen.cc: In member function ‘tree_node* IRState::getStaticChain(tree_node*)’: ../../gcc/d/d-codegen.cc:2326: error: ‘STATIC_CHAIN_EXPR’ was not declared in this scope ../../gcc/d/d-codegen.cc: At global scope: ../../gcc/d/d-codegen.cc:2601: warning: unused parameter ‘unused’ ../../gcc/d/d-codegen.cc:2621: warning: unused parameter ‘t_cond’ ../../gcc/d/d-codegen.cc: In member function ‘void IRState::startTry(Statement*)’: ../../gcc/d/d-codegen.cc:2658: warning: unused variable ‘flow’ ../../gcc/d/d-codegen.cc: In member function ‘virtual void AggLayout::doInterfaces(Array*, AggregateDeclaration*)’: ../../gcc/d/d-codegen.cc:2847: warning: unused variable ‘fcontext’ make[1]: *** [d/d-codegen.glue.o] Fehler 1 make[1]: Leaving directory `/home/gasiba/downloads/D/gdc/gcc-4.0.2/objdir/gcc' make: *** [all-gcc] Fehler 2 <snip> -- Tiago Gasiba (M.Sc.) - http://www.gasiba.de Everything should be made as simple as possible, but not simpler.
Nov 07 2005
next sibling parent Tiago Gasiba <tiago.gasiba gmail.com> writes:
Tiago Gasiba schrieb:

 David Friedman schrieb:
 
 GDC now works with GCC 4.0.x.  There are lots of fixes too.  Go grab it!
Hi all, I'm using SUSE 10.0 with the following settings: uname -a i386 GNU/Linux gcc --version gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux) I have downloaded the gdc-0.16.tar.gz, and also the gcc-core-4.0.2.tar.gz and gcc-g++-4.0.2.tar.gz and try to compile GDC with the following commands: tar xvzf gcc-core-4.0.2.tar.gz tar xvzf gcc-g++-4.0.2.tar.gz cd gcc-4.0.2/gcc tar xvzf ../../gdc-0.16.tar.gz cd .. mkdir objdir cd objdir ../configure make The compilation process continues for a while, until I get the following error messages. What did I do wrong? How can I compile GDC? Thanks! Tiago
If you are interested, you can find a complete logfile in this address: http://www.gasiba.de/trace_GDC_with_gcc-4.0.2.log Thanks! Tiago -- Tiago Gasiba (M.Sc.) - http://www.gasiba.de Everything should be made as simple as possible, but not simpler.
Nov 07 2005
prev sibling parent reply David Friedman <d3rdclsmail_a t_earthlink_d.t_net> writes:
Tiago Gasiba wrote:
 David Friedman schrieb:
 
 
GDC now works with GCC 4.0.x.  There are lots of fixes too.  Go grab it!
Hi all, I'm using SUSE 10.0 with the following settings: uname -a GNU/Linux gcc --version gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux) I have downloaded the gdc-0.16.tar.gz, and also the gcc-core-4.0.2.tar.gz and gcc-g++-4.0.2.tar.gz and try to compile GDC with the following commands: tar xvzf gcc-core-4.0.2.tar.gz tar xvzf gcc-g++-4.0.2.tar.gz cd gcc-4.0.2/gcc tar xvzf ../../gdc-0.16.tar.gz cd .. mkdir objdir cd objdir ../configure make The compilation process continues for a while, until I get the following error messages. What did I do wrong? How can I compile GDC? Thanks! Tiago
(snip)
 ../../gcc/d/d-codegen.cc: In member function ‘tree_node*
IRState::getStaticChain(tree_node*)’:
 ../../gcc/d/d-codegen.cc:2326: error: ‘STATIC_CHAIN_EXPR’ was not declared in
this scope
 ../../gcc/d/d-codegen.cc: At global scope:
 ../../gcc/d/d-codegen.cc:2601: warning: unused parameter ‘unused’
 ../../gcc/d/d-codegen.cc:2621: warning: unused parameter ‘t_cond’
 ../../gcc/d/d-codegen.cc: In member function ‘void
IRState::startTry(Statement*)’:
 ../../gcc/d/d-codegen.cc:2658: warning: unused variable ‘flow’
 ../../gcc/d/d-codegen.cc: In member function ‘virtual void
AggLayout::doInterfaces(Array*, AggregateDeclaration*)’:
 ../../gcc/d/d-codegen.cc:2847: warning: unused variable ‘fcontext’
 make[1]: *** [d/d-codegen.glue.o] Fehler 1
 make[1]: Leaving directory `/home/gasiba/downloads/D/gdc/gcc-4.0.2/objdir/gcc'
 make: *** [all-gcc] Fehler 2
 <snip>
 
Did you run setup-gcc.sh first? David
Nov 07 2005
parent reply Tiago Gasiba <tiago.gasiba gmail.com> writes:
David Friedman schrieb:

 
 Did you run setup-gcc.sh first?
 
 David
Shame on me! David, could you please post the following in your website: <snip> tar xvzf gcc-core-4.0.2.tar.gz tar xvzf gcc-g++-4.0.2.tar.gz cd gcc-4.0.2/gcc tar xvzf ../../gdc-0.16.tar.gz cd .. gcc/d/setup-gcc.sh mkdir objdir cd objdir ../configure make make install (as root) <snip> Or something similar? Such that people dont make the same mistake as me... Note: this is the first time ever that I compile either GCC or GDC from scratch. The code serves as an example on how to compile GDC. What you wrote in your website very good, but its much nicer to have an example, dont you think so? ;) I feel great! I gave GDC on my machine now... wow!! :) Thanks! Have you thought about packing the program as RPM? I could search on the internet and try to contribute with a SUSE RPM! The compiler works great with SUSE - you can add it to the tested distributions list! However, I have found an "internal compiler error", which I'm submitting in the D.bugs list. Thanks! Tiago -- Tiago Gasiba (M.Sc.) - http://www.gasiba.de Everything should be made as simple as possible, but not simpler.
Nov 07 2005
parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Tiago Gasiba wrote:

 Have you thought about packing the program as RPM?
 I could search on the internet and try to contribute with a SUSE RPM!
Feel free to use my old SRPM, at: http://www.algonet.se/~afb/d/gdc.spec Or maybe I'll update it for Fedora Core 4 and GCC 4.0.2 later this week. I was going to host the binary RPMS on David's new website for D... :-) Have a RPM for DMD too, but it is not re-distributable - due to license. --anders
Nov 07 2005
prev sibling next sibling parent Dejan Lekic <leka entropy.tmok.com> writes:
David, thanks A LOT!

-- 
...........
Dejan Lekic
  http://dejan.lekic.org
  
Nov 08 2005
prev sibling parent reply =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
David Friedman wrote:

 http://home.earthlink.net/~dvdfrdmn/d/
 
 After more than a month of "it's almost ready"... GDC now works with GCC 
 4.0.x.  There are lots of fixes too.  Go grab it!
Grabbed it, compiled it, compiler crashed. Thanks, Apple. (it seemed to have worked just fine on Linux, so kudos!) If and when I figure out why Tiger segfaults on anything more complicated than Herlo Wolld, I will post to D.gnu. Maybe it's just me. --anders
Nov 08 2005
parent reply David Friedman <d3rdclsmail_a t_earthlink_d.t_net> writes:
Anders F Björklund wrote:
 David Friedman wrote:
 
 http://home.earthlink.net/~dvdfrdmn/d/

 After more than a month of "it's almost ready"... GDC now works with 
 GCC 4.0.x.  There are lots of fixes too.  Go grab it!
Grabbed it, compiled it, compiler crashed. Thanks, Apple. (it seemed to have worked just fine on Linux, so kudos!) If and when I figure out why Tiger segfaults on anything more complicated than Herlo Wolld, I will post to D.gnu. Maybe it's just me. --anders
Are you making a clean build? (I still need fix the dependencies in the Makefile...) If you get stuck, let me know what gcc distro and compiler flags you are using. I *should* get the same results... David
Nov 08 2005
parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
David Friedman wrote:

 Are you making a clean build? (I still need fix the dependencies in the 
 Makefile...)
 
 If you get stuck, let me know what gcc distro and compiler flags you are 
 using.  I *should* get the same results...
Never mind, I was using my custom build as I was trying to make a new GCC patch to bring the "framework" stuff over from Apple's GCC tree... And then I had to use GCC 4.0.0, even though it was "known not to work". Will switch over to GCC 4.0.2 and the vanilla build, see how that goes. --anders
Nov 08 2005