Author Topic: nasm does not output the listing file when it encounters errors.  (Read 17877 times)

Offline STF92

  • Jr. Member
  • *
  • Posts: 10
nasm 2.03.01

Hi:
I have noticed that when nasm finds errors in the source file, it does not output the listing file, regardless of the presence of the -l option in the command line. Is this normal behavior?

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: nasm does not output the listing file when it encounters errors.
« Reply #1 on: July 12, 2011, 11:19:22 AM »
Normal for 2.03.01, yes. Try a newer version:

http://www.nasm.us/pub/nasm/releasebuilds/?C=M;O=D

Best,
Frank


Offline STF92

  • Jr. Member
  • *
  • Posts: 10
Re: nasm does not output the listing file when it encounters errors.
« Reply #2 on: July 12, 2011, 03:56:47 PM »
Thank you very much.

EDIT:
I am running nasm 2.09.09 but still no listing in the presence of errors.
« Last Edit: July 12, 2011, 05:20:35 PM by STF92 »

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: nasm does not output the listing file when it encounters errors.
« Reply #3 on: July 12, 2011, 06:58:32 PM »
Just tried explicitly 2.09.09 - works for me. Lower case 'l', of course! What error are you encountering? Possible it doesn't work for all of 'em?

"parser: instruction expected" does generate the list file, but does not write the error to the listing file as expected, so it may make a difference...

Best,
Frank


Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: nasm does not output the listing file when it encounters errors.
« Reply #4 on: July 12, 2011, 07:08:37 PM »
Ah! "unrecognised special symbol '..start'" does not generate a .lst file! Solution is to make a different error! :)

Best,
Frank

« Last Edit: July 12, 2011, 07:11:00 PM by Frank Kotler »

Offline STF92

  • Jr. Member
  • *
  • Posts: 10
Re: nasm does not output the listing file when it encounters errors.
« Reply #5 on: July 12, 2011, 07:11:48 PM »
Thank you for your post. Of course I used -l <filename>. The data you asked for:
Linux kernel 2.6.21.5, Slackware 12.0 (mostly or all GNU). Spin I guess is the version.

However, I found this, assembling with 2.09.09 (may be 2.03.01, the previous version I had, has identical behavior): After having fixed the last two errors displayed, a new compilation threw a lot more errors. Quite understandable for a one pass assembler. But, alas, a listing file was now output. This is quite another thing. But the listing does not show any errors.

As I was writing a new post arrived: Yes, I had a lot of "parser: instruction expected" but no listing. And I used lower 'L' (-l <filename).

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: nasm does not output the listing file when it encounters errors.
« Reply #6 on: July 12, 2011, 07:31:53 PM »
Sorry you're having this problem! Seems like you've discovered a "bug", or more properly an "incompletely implemented feature". We'll look into it (that is, the active developers will look into it... I hope. :) ). Might be a while... Thanks for the feedback!

Best,
Frank


Offline STF92

  • Jr. Member
  • *
  • Posts: 10
Re: nasm does not output the listing file when it encounters errors.
« Reply #7 on: July 12, 2011, 07:36:38 PM »
Thanks to you for your kind posts.

Offline Cyrill Gorcunov

  • NASM Developer
  • Full Member
  • *****
  • Posts: 179
  • Country: 00
Re: nasm does not output the listing file when it encounters errors.
« Reply #8 on: July 12, 2011, 09:47:37 PM »
guys, if you found a bug or unimplemented feature :D please file a bug, this would allow us to track it and not loose

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: nasm does not output the listing file when it encounters errors.
« Reply #9 on: July 13, 2011, 04:19:20 AM »
Thanks, Mahmoud! Sorry, Cyrill. I was "gonna" do it (honest), but thought I'd try a few more errors first. Nasm64developer seems to have some insight into it...

Best,
Frank