[Lazarus] Display of "Notes" in messages when compiling the compiler
Sven Barth
pascaldragon at googlemail.com
Fri Jun 8 10:30:03 CEST 2012
Hello together!
I have the following problem (which is quite old already):
When I compile the compiler from within the IDE (using the pp.lpi
project that's in the compiler's source directory) then some notes are
issued during the compilation process, but they are immediately hidden
by the next unit that is compiled. Thus I need to copy all hidden
messages to see the notes... Is this a configuration problem of Lazarus
or indeed a bug?
Here is the final output in the messages window (it's in German, sorry):
=== output begin ===
Einstellungen geändert, sauberes Neucompilieren mit -B
Projekt "ppc386" erfolgreich kompiliert. :)
=== output end ===
Here is what the compiler prints (copy of all messages):
=== output begin ===
Einstellungen geändert, sauberes Neucompilieren mit -B
Free Pascal Compiler version 2.6.0 [2011/12/25] for i386
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling pp.pas
Compiling globals.pas
Compiling cutils.pas
Compiling cclasses.pas
Compiling globtype.pas
Compiling cstreams.pas
cclasses.pas(1504,3) Note: Local variable "HashIndex" not used
Compiling cfileutl.pas
Compiling systems.pas
Compiling comphook.pas
Compiling finput.pas
Compiling comphook.pas
Compiling globals.pas
Compiling .\i386\cpuinfo.pas
Compiling version.pas
Compiling compiler.pas
Compiling verbose.pas
Compiling cmsgs.pas
Compiling fmodule.pas
Compiling ogbase.pas
Compiling owbase.pas
Compiling aasmbase.pas
Compiling fmodule.pas
Compiling symbase.pas
Compiling symconst.pas
Compiling symsym.pas
Compiling widestr.pas
Compiling ccharset.pas
Compiling cp8859_1.pas
Compiling cp850.pas
Compiling cp437.pas
Compiling cp1252.pp
Compiling cp1251.pas
Compiling cp866.pas
Compiling cp8859_5.pas
Compiling constexp.pas
Compiling symtype.pas
Compiling ppu.pas
Compiling fpccrc.pas
Compiling crefs.pas
Compiling fmodule.pas
Compiling symsym.pas
Compiling symdef.pas
Compiling tokens.pas
tokens.pas(685,6) Note: Local variable "j" not used
Compiling node.pas
Compiling .\x86\cpubase.pas
Compiling cgbase.pas
Compiling rgbase.pas
Compiling cgutils.pas
Compiling optbase.pas
Compiling nutils.pas
Compiling symsym.pas
Compiling symdef.pas
Compiling aasmtai.pas
Compiling aasmdata.pas
Compiling aasmtai.pas
Compiling fmodule.pas
Compiling symsym.pas
Compiling symdef.pas
Compiling parabase.pas
Compiling symsym.pas
Compiling symdef.pas
Compiling .\x86\aasmcpu.pas
Compiling aasmsym.pas
Compiling symsym.pas
Compiling defcmp.pas
Compiling symtable.pas
Compiling symsym.pas
Compiling symnot.pas
Compiling defutil.pas
Compiling symtable.pas
Compiling symutil.pas
Compiling procinfo.pas
Compiling optutils.pas
Compiling nbas.pas
Compiling .\x86\aasmcpu.pas
Compiling procinfo.pas
Compiling tgobj.pas
Compiling cgobj.pas
Compiling rgobj.pas
Compiling fmodule.pas
Compiling wpobase.pas
Compiling scanner.pas
Compiling switches.pas
Compiling dbgbase.pas
Compiling options.pas
Compiling comprsrc.pas
Compiling script.pas
Compiling rabase.pas
Compiling .\systems\i_bsd.pas
Compiling rescmn.pas
Compiling paramgr.pas
Compiling ncgrtti.pas
cgobj.pas(1848,9) Note: Local variable "tmpreg" not used
Compiling .\x86\itcpugas.pas
Compiling pass_1.pas
Compiling nutils.pas
Compiling ncon.pas
Compiling nld.pas
Compiling htypechk.pas
Compiling ncnv.pas
Compiling ncal.pas
Compiling ninl.pas
Compiling nadd.pas
Compiling nmat.pas
Compiling nflw.pas
Compiling optloop.pas
Compiling nflw.pas
Compiling nmem.pas
Compiling nset.pas
Compiling ncgmem.pas
Compiling pass_2.pas
Compiling hlcgobj.pas
Compiling export.pas
Compiling ncgutil.pas
Compiling cg64f32.pas
Compiling .\i386\cpupara.pas
Compiling regvars.pas
Compiling psub.pas
Compiling optdfa.pas
Compiling symcreat.pas
Compiling pbase.pas
Compiling pdecobj.pas
Compiling pexpr.pas
Compiling pinline.pas
Compiling ngenutil.pas
Compiling nobj.pas
ngenutil.pas(267,7) Note: Local variable "tcinitproc" is assigned but
never used
Compiling ptype.pas
Compiling pdecsub.pas
Compiling objcutil.pas
Compiling objcdef.pas
Compiling pdecl.pas
Compiling ptconst.pas
Compiling pdecvar.pas
Compiling import.pas
Compiling ngtcon.pas
Compiling asmutils.pas
Compiling pgenutil.pas
Compiling pparautl.pas
ptype.pas(496,9) Note: Local variable "pd" is assigned but never used
Compiling gendef.pas
Compiling pstatmnt.pas
Compiling pexports.pas
Compiling .\i386\cgcpu.pas
Compiling .\x86\cgx86.pas
Compiling .\x86\rgx86.pas
Compiling .\i386\rgcpu.pas
Compiling .\i386\hlcgcpu.pas
Compiling .\x86\hlcgx86.pas
Compiling hlcg2ll.pas
hlcgcpu.pas(59,7) Note: Local variable "locdef" not used
Compiling opttail.pas
Compiling optcse.pas
Compiling .\i386\aopt386.pas
Compiling .\i386\daopt386.pas
Compiling .\i386\popt386.pas
Compiling .\i386\csopt386.pas
Compiling .\i386\rropt386.pas
Compiling objcgutl.pas
ncgmem.pas(285,9) Note: Local variable "hreg" not used
nmat.pas(442,9) Note: Local variable "newtype" not used
Compiling nopt.pas
Compiling nobjc.pas
ninl.pas(1585,9) Note: Local variable "lowppn" not used
ninl.pas(1586,9) Note: Local variable "highppn" not used
ninl.pas(1587,9) Note: Local variable "npara" not used
ncnv.pas(1989,9) Note: Local variable "nestinglevel" not used
symdef.pas(3851,9) Note: Local variable "csym" not used
symdef.pas(3851,15) Note: Local variable "ncsym" not used
symdef.pas(4402,9) Note: Local variable "i" not used
symdef.pas(4404,9) Note: Local variable "pvs" not used
Compiling ogmap.pas
Compiling parser.pas
Compiling fppu.pas
Compiling wpoinfo.pas
fppu.pas(949,9) Note: Local variable "ns" not used
Compiling scandir.pas
Compiling psystem.pas
Compiling pmodules.pas
Compiling link.pas
Compiling owar.pas
link.pas(943,12) Note: Local variable "para" is assigned but never used
Compiling assemble.pas
Compiling cresstr.pas
Compiling wpo.pas
Compiling optvirt.pas
Compiling optdead.pas
Compiling .\i386\cpupi.pas
Compiling .\i386\cpunode.pas
Compiling ncgbas.pas
Compiling ncgld.pas
Compiling ncgflw.pas
Compiling ncgcnv.pas
Compiling ncgmat.pas
Compiling ncgcon.pas
Compiling ncgcal.pas
Compiling .\x86\cga.pas
ncgcal.pas(488,9) Note: Local variable "hp" not used
ncgcal.pas(489,9) Note: Local variable "hp2" not used
Compiling ncgset.pas
Compiling ncginl.pas
Compiling ncgopt.pas
Compiling ncgobjc.pas
Compiling .\x86\nx86set.pas
Compiling .\x86\nx86con.pas
Compiling .\x86\nx86cnv.pas
Compiling .\i386\n386add.pas
Compiling .\x86\nx86add.pas
Compiling ncgadd.pas
Compiling .\i386\n386cal.pas
Compiling .\x86\nx86cal.pas
Compiling .\i386\n386mem.pas
Compiling .\x86\nx86mem.pas
Compiling .\i386\n386set.pas
Compiling .\i386\n386inl.pas
Compiling .\x86\nx86inl.pas
Compiling .\i386\n386mat.pas
Compiling .\x86\nx86mat.pas
Compiling .\i386\cputarg.pas
Compiling .\systems\t_linux.pas
Compiling expunix.pas
Compiling .\systems\i_linux.pas
Compiling .\systems\t_bsd.pas
Compiling .\systems\t_sunos.pas
Compiling .\systems\i_sunos.pas
Compiling .\systems\t_emx.pas
Compiling .\systems\i_emx.pas
Compiling .\systems\t_os2.pas
Compiling .\systems\i_os2.pas
Compiling .\systems\t_win.pas
Compiling .\systems\i_win.pas
Compiling ogcoff.pas
ogcoff.pas(2259,11) Note: Local variable "callbacksymbol" is assigned
but never used
ogcoff.pas(2193,9) Note: Local variable "tlsExeSec" is assigned but
never used
ogcoff.pas(2194,9) Note: Local variable "tlsdir" not used
Compiling .\systems\t_nwm.pas
Compiling .\systems\i_nwm.pas
Compiling ognlm.pas
Compiling .\systems\t_nwl.pas
Compiling .\systems\i_nwl.pas
Compiling .\systems\t_go32v2.pas
Compiling .\systems\i_go32v2.pas
Compiling .\systems\t_beos.pas
Compiling .\systems\i_beos.pas
Compiling .\systems\t_haiku.pas
Compiling .\systems\i_haiku.pas
Compiling .\systems\t_wdosx.pas
Compiling .\systems\i_wdosx.pas
Compiling .\systems\t_watcom.pas
Compiling .\systems\i_watcom.pas
Compiling .\systems\t_symbian.pas
Compiling .\systems\i_symbian.pas
Compiling .\systems\t_nativent.pas
Compiling .\systems\i_nativent.pas
Compiling .\systems\t_embed.pas
Compiling .\systems\i_embed.pas
Compiling .\x86\agx86att.pas
Compiling aggas.pas
Compiling .\x86\agx86nsm.pas
Compiling .\x86\agx86int.pas
Compiling .\x86\itx86int.pas
Compiling ogelf.pas
Compiling ogmacho.pas
Compiling macho.pas
Compiling machoutils.pas
Compiling .\i386\ra386int.pas
Compiling .\x86\rax86int.pas
Compiling rasm.pas
Compiling .\x86\rax86.pas
Compiling rautils.pas
Compiling .\i386\ra386att.pas
Compiling .\x86\rax86att.pas
Compiling raatt.pas
Compiling cfidwarf.pas
Compiling dbgstabs.pas
Compiling dbgdwarf.pas
Linking C:\svn\fpc\compiler\i386\pp2.exe
289779 lines compiled, 193.1 sec , 1920816 bytes code, 457948 bytes data
23 note(s) issued
Projekt "ppc386" erfolgreich kompiliert. :)
=== output end ===
And here is what I would hope for:
=== output begin ===
cclasses.pas(1504,3) Note: Local variable "HashIndex" not used
tokens.pas(685,6) Note: Local variable "j" not used
cgobj.pas(1848,9) Note: Local variable "tmpreg" not used
ngenutil.pas(267,7) Note: Local variable "tcinitproc" is assigned but
never used
ptype.pas(496,9) Note: Local variable "pd" is assigned but never used
hlcgcpu.pas(59,7) Note: Local variable "locdef" not used
ncgmem.pas(285,9) Note: Local variable "hreg" not used
nmat.pas(442,9) Note: Local variable "newtype" not used
ninl.pas(1585,9) Note: Local variable "lowppn" not used
ninl.pas(1586,9) Note: Local variable "highppn" not used
ninl.pas(1587,9) Note: Local variable "npara" not used
ncnv.pas(1989,9) Note: Local variable "nestinglevel" not used
symdef.pas(3851,9) Note: Local variable "csym" not used
symdef.pas(3851,15) Note: Local variable "ncsym" not used
symdef.pas(4402,9) Note: Local variable "i" not used
symdef.pas(4404,9) Note: Local variable "pvs" not used
fppu.pas(949,9) Note: Local variable "ns" not used
link.pas(943,12) Note: Local variable "para" is assigned but never used
ncgcal.pas(488,9) Note: Local variable "hp" not used
ncgcal.pas(489,9) Note: Local variable "hp2" not used
ogcoff.pas(2259,11) Note: Local variable "callbacksymbol" is assigned
but never used
ogcoff.pas(2193,9) Note: Local variable "tlsExeSec" is assigned but
never used
ogcoff.pas(2194,9) Note: Local variable "tlsdir" not used
Linking C:\svn\fpc\compiler\i386\pp2.exe
23 note(s) issued
Projekt "ppc386" erfolgreich kompiliert. :)
=== output end ===
I don't know whether this problem applies to hints and warnings as well.
Errors work as expected though ;)
I'm using Lazarus 1.1 revision 37273 on Windows Vista x86.
Regards,
Sven
More information about the Lazarus
mailing list