digitalmars.D - Problem building GCC Frontend
- Nick Sabalausky (12/12) Jul 23 2004 I'm trying to build and use the D frontend for GCC. I've gotten it to
- Jan (8/24) Jul 23 2004 Try to give the whole path of "test.d" to the compiler. I havenīt done
- Nick Sabalausky (2/26) Jul 23 2004
- Nick Sabalausky (9/21) Jul 23 2004 I just converted the source file from using DOS-style line breaks to Uni...
- Ben Hinkle (13/40) Jul 23 2004 Unix-style
- Nick Sabalausky (2/15) Aug 05 2004 Is there an environment variable where that path is supposed to be set?
- Nick Sabalausky (2/3) Aug 05 2004 Is that where it's supposed to be in the D frontend for GCC?
- Deja Augustine (2/11) Aug 05 2004 yes
- bjoern (4/13) Aug 06 2004 My "object.d" is in "$(gcc-dir)/include/d/" along with a lot of other
- Ben Hinkle (12/24) Jul 23 2004 What platform are you using? Where are you installing gdc? Not finding
I'm trying to build and use the D frontend for GCC. I've gotten it to (seemingly) compile, but I'm getting an odd problem when trying to use it. I made a basic test file, test.d, which is literally just "void main() { }". When I do "gdc -c test.d" I get this: read error, errno = 2 Error: Error reading file 'test.d' Could this be one of the intrnal compiler errors that the "Grey Areas/Known Issues" section of http://home.earthlink.net/~dvdfrdmn/d/ refers to? Also, If I try "gdc test.d" without the "-c" I get "gdc: libphobos.spec: No such file or directory". The whole problem couldn't be because I haven't built phobos could it? I don't think I would be able to build phobos anyway without the D frontend working, since isn't part of phobos written in D?
Jul 23 2004
Try to give the whole path of "test.d" to the compiler. I havenīt done much in D yet, but i had that problem too (same error message), because i only gave "hello.d" to it, which was not in the same directory as the compiler. The error should rather be "couldnīt find 'hello.d'" or such, since this message is a bit confusing. Jan. Nick Sabalausky wrote:I'm trying to build and use the D frontend for GCC. I've gotten it to (seemingly) compile, but I'm getting an odd problem when trying to use it. I made a basic test file, test.d, which is literally just "void main() { }". When I do "gdc -c test.d" I get this: read error, errno = 2 Error: Error reading file 'test.d' Could this be one of the intrnal compiler errors that the "Grey Areas/Known Issues" section of http://home.earthlink.net/~dvdfrdmn/d/ refers to? Also, If I try "gdc test.d" without the "-c" I get "gdc: libphobos.spec: No such file or directory". The whole problem couldn't be because I haven't built phobos could it? I don't think I would be able to build phobos anyway without the D frontend working, since isn't part of phobos written in D?
Jul 23 2004
Hmm, no it still gives me that message. In article <cdrm2j$2d5q$1 digitaldaemon.com>, Jan says...Try to give the whole path of "test.d" to the compiler. I havenīt done much in D yet, but i had that problem too (same error message), because i only gave "hello.d" to it, which was not in the same directory as the compiler. The error should rather be "couldnīt find 'hello.d'" or such, since this message is a bit confusing. Jan. Nick Sabalausky wrote:I'm trying to build and use the D frontend for GCC. I've gotten it to (seemingly) compile, but I'm getting an odd problem when trying to use it. I made a basic test file, test.d, which is literally just "void main() { }". When I do "gdc -c test.d" I get this: read error, errno = 2 Error: Error reading file 'test.d' Could this be one of the intrnal compiler errors that the "Grey Areas/Known Issues" section of http://home.earthlink.net/~dvdfrdmn/d/ refers to? Also, If I try "gdc test.d" without the "-c" I get "gdc: libphobos.spec: No such file or directory". The whole problem couldn't be because I haven't built phobos could it? I don't think I would be able to build phobos anyway without the D frontend working, since isn't part of phobos written in D?
Jul 23 2004
I just converted the source file from using DOS-style line breaks to Unix-style (I'm on Cygwin, btw. I wanted to be able to use DOS-style breaks, but oh well...) and now instead of getting: read error, errno = 2 Error: Error reading file 'test.d' Instead of that, I'm now getting: Error: Error reading file 'object.d' Even though I never made any reference to such a file. In article <cdrlam$2cc4$1 digitaldaemon.com>, Nick Sabalausky says...I'm trying to build and use the D frontend for GCC. I've gotten it to (seemingly) compile, but I'm getting an odd problem when trying to use it. I made a basic test file, test.d, which is literally just "void main() { }". When I do "gdc -c test.d" I get this: read error, errno = 2 Error: Error reading file 'test.d' Could this be one of the intrnal compiler errors that the "Grey Areas/Known Issues" section of http://home.earthlink.net/~dvdfrdmn/d/ refers to? Also, If I try "gdc test.d" without the "-c" I get "gdc: libphobos.spec: No such file or directory". The whole problem couldn't be because I haven't built phobos could it? I don't think I would be able to build phobos anyway without the D frontend working, since isn't part of phobos written in D?
Jul 23 2004
"Nick Sabalausky" <Nick_member pathlink.com> wrote in message news:cdrn1c$2dr1$1 digitaldaemon.com...I just converted the source file from using DOS-style line breaks toUnix-style(I'm on Cygwin, btw. I wanted to be able to use DOS-style breaks, but oh well...)I'm not sure if anyone has tried gdc on cygwin. You might be in uncharted waters here.and now instead of getting: read error, errno = 2 Error: Error reading file 'test.d' Instead of that, I'm now getting: Error: Error reading file 'object.d' Even though I never made any reference to such a file.object.d is read implicitly. It is in dmd/src/phobos/object.dIn article <cdrlam$2cc4$1 digitaldaemon.com>, Nick Sabalausky says...it. II'm trying to build and use the D frontend for GCC. I've gotten it to (seemingly) compile, but I'm getting an odd problem when trying to use}".made a basic test file, test.d, which is literally just "void main()Areas/KnownWhen I do "gdc -c test.d" I get this: read error, errno = 2 Error: Error reading file 'test.d' Could this be one of the intrnal compiler errors that the "GreyAlso, If IIssues" section of http://home.earthlink.net/~dvdfrdmn/d/ refers to?file ortry "gdc test.d" without the "-c" I get "gdc: libphobos.spec: No suchcoulddirectory". The whole problem couldn't be because I haven't built phobosfrontendit? I don't think I would be able to build phobos anyway without the Dworking, since isn't part of phobos written in D?
Jul 23 2004
In article <cdrne4$2e87$1 digitaldaemon.com>, Ben Hinkle says..."Nick Sabalausky" <Nick_member pathlink.com> wrote in message news:cdrn1c$2dr1$1 digitaldaemon.com...Is there an environment variable where that path is supposed to be set?and now instead of getting: read error, errno = 2 Error: Error reading file 'test.d' Instead of that, I'm now getting: Error: Error reading file 'object.d' Even though I never made any reference to such a file.object.d is read implicitly. It is in dmd/src/phobos/object.d
Aug 05 2004
In article <cdrne4$2e87$1 digitaldaemon.com>, Ben Hinkle says...object.d is read implicitly. It is in dmd/src/phobos/object.dIs that where it's supposed to be in the D frontend for GCC?
Aug 05 2004
Nick Sabalausky wrote:In article <cdrne4$2e87$1 digitaldaemon.com>, Ben Hinkle says...yesobject.d is read implicitly. It is in dmd/src/phobos/object.dIs that where it's supposed to be in the D frontend for GCC?
Aug 05 2004
Nick Sabalausky wrote:In article <cdrne4$2e87$1 digitaldaemon.com>, Ben Hinkle says...My "object.d" is in "$(gcc-dir)/include/d/" along with a lot of other phobos-files... - Bjoernobject.d is read implicitly. It is in dmd/src/phobos/object.dIs that where it's supposed to be in the D frontend for GCC?
Aug 06 2004
What platform are you using? Where are you installing gdc? Not finding libphobos.spec sounds like an install issue. Maybe also try passing the -v flag to get verbose output. "Nick Sabalausky" <Nick_member pathlink.com> wrote in message news:cdrlam$2cc4$1 digitaldaemon.com...I'm trying to build and use the D frontend for GCC. I've gotten it to (seemingly) compile, but I'm getting an odd problem when trying to use it.Imade a basic test file, test.d, which is literally just "void main()}".When I do "gdc -c test.d" I get this: read error, errno = 2 Error: Error reading file 'test.d' Could this be one of the intrnal compiler errors that the "GreyAreas/KnownIssues" section of http://home.earthlink.net/~dvdfrdmn/d/ refers to?Also, If Itry "gdc test.d" without the "-c" I get "gdc: libphobos.spec: No such fileordirectory". The whole problem couldn't be because I haven't built phoboscouldit? I don't think I would be able to build phobos anyway without the Dfrontendworking, since isn't part of phobos written in D?
Jul 23 2004