pcmos386v501 icon indicating copy to clipboard operation
pcmos386v501 copied to clipboard

DOSBox build problems

Open dcoshea opened this issue 7 years ago • 5 comments

SOURCES/src/MAKEMOS.BAT includes the following code (as at 2d19bc1):

ren __*.* $$*.*
ren _*.* $*.*

When running under DOSBox 0.74, these lines result in the following errors being reported:

This is a simple version of the command, no wildcards allowed!
This is a simple version of the command, no wildcards allowed!

Obviously using real DOS to run the build should avoid these errors, although I haven't tried that yet.

dcoshea avatar Sep 09 '17 03:09 dcoshea

it should indeed not be triggered with normal DOS.

Now, I might as well check if freedos and PCMOS still works OK. Afaik this could be an alternative. If yes, I would suggest to make a buildenv.md that describes the "supported" environment .. elkse we could end up in having too many ways to build.

roelandjansen avatar Sep 09 '17 09:09 roelandjansen

This is a limitation of DOSBox, but their focus is games. For that reason, I don't think PC-MOS should be responsible for coping with a DOSBox limitation. If there is no objection, I will close this in a few days.

ghost avatar Feb 03 '19 16:02 ghost

I use DosBox as my main development platform and work around these types of issues. Well, honestly, I don't use MAKEMOS.BAT because it doesn't do a complete build as I have mentioned elsewhere. My attempts to use the lowest common denominator in batch scripts should resolve this going forward.

See ulib/TESTCOMP.BAT. If something doesn't work because of a DosBox limitation, I call it out in the script to let the user know and how they can work around it. Of course, I can't code to everybody's favorite dev/test environment since I don't know what everybody else uses, so there is some generic helpful text output if it fails.

I don't like closing unresolved issues though, so if someone wants to patch MAKEMOS.BAT, this can be properly closed.

the-grue avatar Feb 03 '19 21:02 the-grue

Since you object, I will leave it alone. I didn't know we have a DOSBox user. You should help your fellow DOSBoxers out!

MAKEMOS is not very interesting to me either. So far I've only used a modifed subset of it to build the kernel. I can't use BIN as provided because I already have a BIN directory, so I rename the project BIN to BINMOS.

Because of so many local environment differences, I don't think we should have a master build script. Instead, describe in Engilsh the required steps, and let people translate that to a batch file for their own local environment. Maybe offer a sample batch file to get them started, but without trying to fix it every time someone complains.

ghost avatar Feb 03 '19 21:02 ghost

Too many words in the title, which are duplicated in the thread. Thus my edit to condense it. If someone is unhappy with the edit, here's the original, you can change it back:

MAKEMOS.BAT under DOSBox 0.74 reports "This is a simple version of the command, no wildcards allowed!"

ghost avatar Feb 04 '19 16:02 ghost