View previous topic :: View next topic |
Author |
Message |
404FileNotFound
Joined: 20 Aug 2005 Posts: 18
|
Posted: Fri Sep 02, 2005 1:14 pm Post subject: Build linux troubles |
|
|
I have a problem with using build on linux. Compiling it seems to work for me (with Makefile.unix), I get no error messages, an I end up with a build executable that looks fine on first sight (it shows the help message when typing 'build'). However when I try to compile my simple hello world prog with it (called test.d), it gives the following error message: "Error: build.mdf: No such file or directory". There's no file with that name included in the zip file or in trunk. Does anyone know what's going wrong and how I can fix it? |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Fri Sep 02, 2005 4:53 pm Post subject: Re: Build linux troubles |
|
|
404FileNotFound wrote: | I have a problem with using build on linux. Compiling it seems to work for me (with Makefile.unix), I get no error messages, an I end up with a build executable that looks fine on first sight (it shows the help message when typing 'build'). However when I try to compile my simple hello world prog with it (called test.d), it gives the following error message: "Error: build.mdf: No such file or directory". There's no file with that name included in the zip file or in trunk. Does anyone know what's going wrong and how I can fix it? |
There is a bug in DMD with the linux std.file.exists() function. It returns the opposite of what it should do. Build tests for the existance of "build.mdf" and if it exists it tries to read it. If it doesn't exist it just carries on. In your case, the faulty exists() function is reporting that the files exist when in fact it doesn't. So Build then tries to open the nonexistent file and thus fails.
The work around is to create an empty file in the same folder as Build is installed in, called "build.mdf".
This file is not being used in Build yet, but it is in preparation for a simple text replacement feature. It is meant to contain standard Macro Definitions (mdf ==> macro definition file). _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
404FileNotFound
Joined: 20 Aug 2005 Posts: 18
|
Posted: Sat Sep 03, 2005 2:27 am Post subject: |
|
|
I added an empty file called build.mdf to the build directory like you said, but now I get a slightly different error when trying to compile. Now it says: "Error: /usr/local/bin/build.mdf: No such file or directory". Do I have to go and put empty build.mdf files wherever it says? |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Sat Sep 03, 2005 3:42 am Post subject: |
|
|
404FileNotFound wrote: | I added an empty file called build.mdf to the build directory like you said, but now I get a slightly different error when trying to compile. Now it says: "Error: /usr/local/bin/build.mdf: No such file or directory". Do I have to go and put empty build.mdf files wherever it says? |
Sorry. It looks in two places for the build.mdf file. Once in the same directory that Build is installed in, and again in the same directory where DMD is installed in.
I hope Walter fixes this bug in the next release. _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
404FileNotFound
Joined: 20 Aug 2005 Posts: 18
|
Posted: Sat Sep 03, 2005 4:21 am Post subject: |
|
|
Well I understand that it's not your fault for this happening I'm having weird dmd.conf errors now.. I'll just wait till this bug gets fixed |
|
Back to top |
|
|
404FileNotFound
Joined: 20 Aug 2005 Posts: 18
|
Posted: Wed Sep 07, 2005 8:08 am Post subject: |
|
|
great I just tried it with 0.130 and it seems to work again. |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Wed Sep 07, 2005 12:53 pm Post subject: |
|
|
404FileNotFound wrote: | great I just tried it with 0.130 and it seems to work again. |
That's great news!
Thanks for trying it out for me. _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
|