16 December 2018, 20:23 | #1 |
Registered User
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
|
vasm/mot: include failed error message
When I try to include a file that does not exist, I get this error:
Code:
fatal error 13: could not open <scrTxtDef.ii> for input include "scrTxtDef.ii"being a directive, and therefor not being handled by the actual assembler, but by some kind of 'preprocessor' -- sorry if this is a rude word Still, is it/could it ever be possible to have it report the 'offending' line in these cases? |
17 December 2018, 16:50 | #2 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
|
Oh, yes. That's because I am using the same error message for all source text files I am reading. So it is also used for the initial source, which has no line number, of course.
Yes... everything is possible. I might have a look. |
17 December 2018, 17:00 | #3 |
Registered User
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
|
|
18 December 2018, 15:10 | #4 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
|
BTW, this is a minimal modification:
Code:
--- general_errors.h 14 Mar 2018 10:14:44 -0000 1.60 +++ general_errors.h 18 Dec 2018 14:08:35 -0000 @@ -10,7 +10,7 @@ "number or identifier expected",ERROR, "could not initialize %s module",NOLINE|ERROR|FATAL, /* 10 */ "multiple input files",NOLINE|ERROR, - "could not open <%s> for input",NOLINE|ERROR|FATAL, + "could not open <%s> for input",ERROR|FATAL, "could not open <%s> for output",NOLINE|ERROR|FATAL, "unknown option <%s>",NOLINE|ERROR, "no input file specified",NOLINE|ERROR|FATAL, /* 15 */ |
23 December 2018, 18:34 | #5 |
Registered User
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
|
Thanks phx, that code modification works perfectly!
If I download the source snapshot of today (23/12), this modification does not seem to be included. I'm not sure this is intentional, so I thought I'd let you know. |
23 December 2018, 20:21 | #6 | |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
|
Quote:
Code:
frank@jaana wget -q http://sun.hasenbraten.de/vasm/daily/vasm.tar.gz frank@jaana tar xzf vasm.tar.gz frank@jaana grep "for input" vasm/general_errors.h "could not open <%s> for input",ERROR|FATAL, |
|
23 December 2018, 20:29 | #7 |
Registered User
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
|
You're right, it appears I was working with the wrong source. Sorry for the inconvenience and thanks again for the modification.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
vasm/mot: structure | guy lateur | Coders. Asm / Hardware | 20 | 05 January 2020 00:01 |
Program failed (error #8000000B) | arti | Coders. General | 2 | 13 January 2017 07:40 |
VASM fatal error.. | jimmy2x2x | Coders. Asm / Hardware | 2 | 21 November 2014 10:27 |
"block zero write failed!" Error message | MoreGrog | support.WinUAE | 5 | 21 July 2010 21:30 |
Program Failed Error | Daniel | support.Apps | 3 | 14 March 2006 15:09 |
|
|