www.digitalmars.com         C & C++   DMDScript  

D.gnu - GDC hangs - AbstractWriter.d

reply teqDruid <teqDruid_member pathlink.com> writes:
dmd -I. -fversion=Posix -fversion=Mango -c -ofmango/io/AbstractWriter.o
mango/io/AbstractWriter.d

Running this hangs the compiler.

$ dmd -v      
Reading specs from
/usr/local/gcc-3.4/lib/gcc/powerpc-apple-darwin7.5.0/3.4.3/specs
Configured with: ./configure --prefix=/usr/local/gcc-3.4
--enable-languages=c,d,c++
Thread model: posix
gcc version 3.4.3

DMD patch 0.8

The rest of the files are available on DSource- it's the SVN Head version.

John
Nov 26 2004
next sibling parent reply "Kris" <fu bar.com> writes:
There are three slightly unusual things about this file:

a) it uses the operator overload opShl(), and also alias's those as "put"
(which is subsequently referenced from within the file).
b) it uses an anonymous struct as part of a union (see union Encoder)
c) It also happens to be an abstract class, with toString() being an
abstract method.

I wonder if (c) is the culprit? It is kinda' weird, and should probably
change. AbstractReader.d is of a similar nature.

- Kris


"teqDruid" <teqDruid_member pathlink.com> wrote in message
news:co8foe$1o2k$1 digitaldaemon.com...
| dmd -I. -fversion=Posix -fversion=Mango -c -ofmango/io/AbstractWriter.o
| mango/io/AbstractWriter.d
|
| Running this hangs the compiler.
|
| $ dmd -v
| Reading specs from
| /usr/local/gcc-3.4/lib/gcc/powerpc-apple-darwin7.5.0/3.4.3/specs
| Configured with: ./configure --prefix=/usr/local/gcc-3.4
| --enable-languages=c,d,c++
| Thread model: posix
| gcc version 3.4.3
|
| DMD patch 0.8
|
| The rest of the files are available on DSource- it's the SVN Head version.
|
| John
|
|
|
Nov 28 2004
parent reply "Kris" <fu bar.com> writes:
Just checked-in a change for (c) that might alleviate the problem ...


"Kris" <fu bar.com> wrote in message news:cod62a$2di$1 digitaldaemon.com...
| There are three slightly unusual things about this file:
|
| a) it uses the operator overload opShl(), and also alias's those as "put"
| (which is subsequently referenced from within the file).
| b) it uses an anonymous struct as part of a union (see union Encoder)
| c) It also happens to be an abstract class, with toString() being an
| abstract method.
|
| I wonder if (c) is the culprit? It is kinda' weird, and should probably
| change. AbstractReader.d is of a similar nature.
|
| - Kris
|
|
| "teqDruid" <teqDruid_member pathlink.com> wrote in message
| news:co8foe$1o2k$1 digitaldaemon.com...
| | dmd -I. -fversion=Posix -fversion=Mango -c -ofmango/io/AbstractWriter.o
| | mango/io/AbstractWriter.d
| |
| | Running this hangs the compiler.
| |
| | $ dmd -v
| | Reading specs from
| | /usr/local/gcc-3.4/lib/gcc/powerpc-apple-darwin7.5.0/3.4.3/specs
| | Configured with: ./configure --prefix=/usr/local/gcc-3.4
| | --enable-languages=c,d,c++
| | Thread model: posix
| | gcc version 3.4.3
| |
| | DMD patch 0.8
| |
| | The rest of the files are available on DSource- it's the SVN Head
version.
| |
| | John
| |
| |
| |
|
|
Nov 28 2004
parent reply =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Kris wrote:

 | | dmd -I. -fversion=Posix -fversion=Mango -c -ofmango/io/AbstractWriter.o
 | | mango/io/AbstractWriter.d

 Just checked-in a change for (c) that might alleviate the problem ...

Sorry, no - it still just hangs: gdc -c -fversion=Posix -fversion=Mango -o mango/io/AbstractWriter.o mango/io/AbstractWriter.d Latest Mango update:
 At revision 153.

--anders
Nov 28 2004
parent "Kris" <fu bar.com> writes:
Ach!  :-)

Any suggestions? Surely it can't be the union?



"Anders F Björklund" <afb algonet.se> wrote in message
news:codnen$t37$1 digitaldaemon.com...
| Kris wrote:
|
| > | |
dmd -I. -fversion=Posix -fversion=Mango -c -ofmango/io/AbstractWriter.o
| > | | mango/io/AbstractWriter.d
| >
| > Just checked-in a change for (c) that might alleviate the problem ...
|
| Sorry, no - it still just hangs:
|
| gdc -c -fversion=Posix -fversion=Mango -o mango/io/AbstractWriter.o
| mango/io/AbstractWriter.d
|
| Latest Mango update:
| > At revision 153.
|
| --anders
Nov 28 2004
prev sibling parent reply David Friedman <d3rdclsmail_a_ _t_earthlink_d_._t_net> writes:
teqDruid wrote:
 dmd -I. -fversion=Posix -fversion=Mango -c -ofmango/io/AbstractWriter.o
 mango/io/AbstractWriter.d
 
 Running this hangs the compiler.
 
 $ dmd -v      
 Reading specs from
 /usr/local/gcc-3.4/lib/gcc/powerpc-apple-darwin7.5.0/3.4.3/specs
 Configured with: ./configure --prefix=/usr/local/gcc-3.4
 --enable-languages=c,d,c++
 Thread model: posix
 gcc version 3.4.3
 
 DMD patch 0.8
 
 The rest of the files are available on DSource- it's the SVN Head version.
 
 John
 
 

This compiler bug is triggered by classes/interfaces that refer to each other. I think it's IWriter and IWritable in this case. David
Nov 28 2004
parent reply "Kris" <fu bar.com> writes:
Yes, they do ~ unfortunately.  Is it something you can fix (in the compiler)
reasonably easily? I can't readily break the co-dependency in the files
under question ...

- Kris


"David Friedman" <d3rdclsmail_a_ _t_earthlink_d_._t_net> wrote in message
news:coe8hk$1gqd$1 digitaldaemon.com...
| teqDruid wrote:
| > dmd -I. -fversion=Posix -fversion=Mango -c -ofmango/io/AbstractWriter.o
| > mango/io/AbstractWriter.d
| >
| > Running this hangs the compiler.
| >
| > $ dmd -v
| > Reading specs from
| > /usr/local/gcc-3.4/lib/gcc/powerpc-apple-darwin7.5.0/3.4.3/specs
| > Configured with: ./configure --prefix=/usr/local/gcc-3.4
| > --enable-languages=c,d,c++
| > Thread model: posix
| > gcc version 3.4.3
| >
| > DMD patch 0.8
| >
| > The rest of the files are available on DSource- it's the SVN Head
version.
| >
| > John
| >
| >
|
| This compiler bug is triggered by classes/interfaces that refer to each
| other.  I think it's IWriter and IWritable in this case.
|
| David
Nov 28 2004
parent David Friedman <d3rdclsmail_a_ _t_earthlink_d_._t_net> writes:
Yes, I should have a fix for this out soon.

David

Kris wrote:
 Yes, they do ~ unfortunately.  Is it something you can fix (in the compiler)
 reasonably easily? I can't readily break the co-dependency in the files
 under question ...
 
 - Kris
 
 
 "David Friedman" <d3rdclsmail_a_ _t_earthlink_d_._t_net> wrote in message
 news:coe8hk$1gqd$1 digitaldaemon.com...
 | teqDruid wrote:
 | > dmd -I. -fversion=Posix -fversion=Mango -c -ofmango/io/AbstractWriter.o
 | > mango/io/AbstractWriter.d
 | >
 | > Running this hangs the compiler.
 | >
 | > $ dmd -v
 | > Reading specs from
 | > /usr/local/gcc-3.4/lib/gcc/powerpc-apple-darwin7.5.0/3.4.3/specs
 | > Configured with: ./configure --prefix=/usr/local/gcc-3.4
 | > --enable-languages=c,d,c++
 | > Thread model: posix
 | > gcc version 3.4.3
 | >
 | > DMD patch 0.8
 | >
 | > The rest of the files are available on DSource- it's the SVN Head
 version.
 | >
 | > John
 | >
 | >
 |
 | This compiler bug is triggered by classes/interfaces that refer to each
 | other.  I think it's IWriter and IWritable in this case.
 |
 | David
 
 

Nov 28 2004