de     

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
en:software:compilation:compilation [2022/08/06 16:53] – [The line numbers of sdcc errors looks strange] 190.128.107.217en:software:compilation:compilation [2022/08/06 16:59] – old revision restored stefan
Line 168: Line 168:
  
  
 +==== The line numbers of sdcc errors looks strange ===
  
 +The macro processor [[bmp|bmp]] assembles the source files into one single temporary source file with ''.tmp.c'' extension. In order make backtracings of the errors possible bmp adds line meta informations to the ''.tmp.c'' files which are analyzed by sdcc. Unfortunately these line information can be ambiguous, in particular if there is a macro behind the location and on the same line where the error occurs.
 +
 +Usually this happens when there is a "''<nowiki>//</nowiki>''" comment on the same line where the error occurs. (Background: "''<nowiki>//</nowiki>''" is a macro which prevents that the comment text is expanded. This is necessary in order to allow to comment out macros.)
 +
 +**Solution:**
 +The line informations can be suppressed by setting the ''LINEINFO'' environment variable to "no", i.e. by executing
 +
 +  export LINEINFO=no
 +  
 +before calling make or bmpsdcc.sh, respectively. The error then can be located in the ''.tmp.c'' file. 
 +
 +Execute 
 +
 +  export LINEINFO=""
 +  
 +in order to switch  line informations on again.
 +
 +{{indexmenu_n>7000}}
 
en/software/compilation/compilation.txt · Last modified: 2022/08/06 17:02 by stefan
 
Recent changes RSS feed Creative Commons License Powered by PHP Debian Driven by DokuWiki
[ZTEX Home] [Imprint] [Privacy policy]