Thread overview | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
November 26, 2004 GDC hangs - AbstractWriter.d | ||||
---|---|---|---|---|
| ||||
Attachments: | 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 |
November 28, 2004 Re: GDC hangs - AbstractWriter.d | ||||
---|---|---|---|---|
| ||||
Posted in reply to teqDruid | 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 | | | |
November 28, 2004 Re: GDC hangs - AbstractWriter.d | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kris | 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 | | | | | | | | |
November 28, 2004 Re: GDC hangs - AbstractWriter.d | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kris | 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 |
November 28, 2004 Re: GDC hangs - AbstractWriter.d | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anders F Björklund | 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 |
November 29, 2004 Re: GDC hangs - AbstractWriter.d | ||||
---|---|---|---|---|
| ||||
Posted in reply to teqDruid | 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
|
November 29, 2004 Re: GDC hangs - AbstractWriter.d | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Friedman | 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 |
November 29, 2004 Re: GDC hangs - AbstractWriter.d | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kris | 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
>
>
|
Copyright © 1999-2021 by the D Language Foundation