[nem-bug] [Nemerle 0000751]: Dependence compile result from order
of source files in the ncc command line
feedback at nemerle.org
feedback at nemerle.org
Fri Sep 8 13:55:44 CEST 2006
A NOTE has been added to this issue.
======================================================================
<http://nemerle.org/bugs/view.php?id=751>
======================================================================
Reported By: VladD2
Assigned To:
======================================================================
Project: Nemerle
Issue ID: 751
Category: Compiler
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 09-08-2006 13:45 CEST
Last Modified: 09-08-2006 13:55 CEST
======================================================================
Summary: Dependence compile result from order of source files
in the ncc command line
Description:
If add source files of the project Nemerle.dll to ncc command line in
rundom order (not is set in make-th), Nemerle.dll does not processed by
NGen.
If to set (in the MSBuild project) the list of files in this case:
<Compile Include="lib\*.n" />
It result to generate following command line:
D:\MyProjects\RSDN\Nemerle\nemerle\boot\ncc.exe
/no-color /no-stdlib /greedy-references:-
/define:DEBUG;TRACE /debug+ /keyfile:misc\keys\Nemerle.snk
/out:obj\Debug\Nemerle.dll /target:library
lib\AssemblyInfo.n lib\concurrency.n lib\core.n lib\getopt.n
lib\hashtable.n
lib\heap.n lib\icloneable.n lib\icollection.n lib\idictionary.n
lib\idictionaryenumerator.n lib\input.n lib\internal.n
lib\internal-array.n
lib\internal-numbered.n lib\LazyValue.n lib\linkedlist.n lib\list.n
lib\listenumerator.n lib\macros.n lib\narray.n lib\nstring.n lib\oldapi.n
lib\option.n lib\pair.n lib\PipeReader.n lib\PipeWriter.n lib\queue.n
lib\rlist.n lib\set.n lib\stack.n lib\tree.n
/ref:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll
/ref:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll
/ref:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll
If try NGen of this assembly will print following error message:
-------------------------------------------------------
Error compiling c:\Program Files\Nemerle\Nemerle.dll: Invalid pointer
(Exception from HRESULT: 0x80004003 (E_POINTER))
Invalid pointer (Exception from HRESULT: 0x80004003 (E_POINTER))
-------------------------------------------------------
If to use order of files from make-file it’s generate following command
line:
D:\MyProjects\RSDN\Nemerle\nemerle\boot\ncc.exe
/no-color /no-stdlib /greedy-references:-
/define:DEBUG;TRACE /debug+ /keyfile:misc\keys\Nemerle.snk
/out:obj\Debug\Nemerle.dll /target:library
lib\internal-numbered.n lib\internal-array.n lib\internal.n lib\core.n
lib\macros.n lib\getopt.n lib\hashtable.n lib\icloneable.n
lib\icollection.n
lib\input.n lib\linkedlist.n lib\list.n lib\listenumerator.n lib\option.n
lib\queue.n lib\stack.n lib\tree.n lib\idictionaryenumerator.n
lib\idictionary.n lib\heap.n lib\narray.n lib\nstring.n lib\pair.n
lib\rlist.n lib\set.n lib\concurrency.n lib\AssemblyInfo.n lib\LazyValue.n
lib\PipeReader.n lib\PipeWriter.n lib\oldapi.n
/ref:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll
/ref:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll
/ref:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll
The assembly compiled in this way NGen’s successfully.
======================================================================
----------------------------------------------------------------------
VladD2 - 09-08-06 13:55
----------------------------------------------------------------------
Script to test:
set NGen=%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\ngen.exe
%NGen% uninstall Nemerle.dll
%NGen% install Nemerle.dll
pause
Issue History
Date Modified Username Field Change
======================================================================
09-08-06 13:45 VladD2 New Issue
09-08-06 13:55 VladD2 Note Added: 0001443
======================================================================
More information about the bugs
mailing list