English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 16 December 2018, 20:23   #1
guy lateur
Registered User
 
guy lateur's Avatar
 
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
Usually, when I get an error, it points me to the line that causes the error. I think this probably has to do with
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?
guy lateur is offline  
Old 17 December 2018, 16:50   #2
phx
Natteravn
 
phx's Avatar
 
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.

Quote:
Originally Posted by guy lateur View Post
Still, is it/could it ever be possible to have it report the 'offending' line in these cases?
Yes... everything is possible. I might have a look.
phx is offline  
Old 17 December 2018, 17:00   #3
guy lateur
Registered User
 
guy lateur's Avatar
 
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
Quote:
Originally Posted by phx View Post
Yes... everything is possible. I might have a look.
Great, thanks a lot!
guy lateur is offline  
Old 18 December 2018, 15:10   #4
phx
Natteravn
 
phx's Avatar
 
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 */
Or, alternatively, download tomorrow's snapshot.
phx is offline  
Old 23 December 2018, 18:34   #5
guy lateur
Registered User
 
guy lateur's Avatar
 
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
Quote:
Originally Posted by phx View Post
BTW, this is a minimal modification:
<snap diff>
Thanks phx, that code modification works perfectly!

Quote:
Originally Posted by phx View Post
Or, alternatively, download tomorrow's snapshot.
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.
guy lateur is offline  
Old 23 December 2018, 20:21   #6
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Quote:
Originally Posted by guy lateur View Post
If I download the source snapshot of today (23/12), this modification does not seem to be included.
Here it is. NOLINE has disappeared.
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,
phx is offline  
Old 23 December 2018, 20:29   #7
guy lateur
Registered User
 
guy lateur's Avatar
 
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
Quote:
Originally Posted by phx View Post
Here it is. NOLINE has disappeared.
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,
You're right, it appears I was working with the wrong source. Sorry for the inconvenience and thanks again for the modification.
guy lateur is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:39.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07116 seconds with 13 queries