[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
Sat Dec 9 10:06:35 CET 2006
The following issue has been RESOLVED.
======================================================================
<http://nemerle.org/bugs/view.php?id=751>
======================================================================
Reported By: VladD2
Assigned To: nazgul
======================================================================
Project: Nemerle
Issue ID: 751
Category: Compiler (blocked by framework)
Reproducibility: always
Severity: minor
Priority: normal
Status: resolved
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 09-08-2006 13:45 CEST
Last Modified: 12-09-2006 10:06 CET
======================================================================
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
----------------------------------------------------------------------
nazgul - 12-09-06 10:06
----------------------------------------------------------------------
According to MS, it will be fixed in next release of .NET (no idea
which/when it will be).
But I'm closing, since we cannot do anything more with this.
Issue History
Date Modified Username Field Change
======================================================================
09-08-06 13:45 VladD2 New Issue
09-08-06 13:55 VladD2 Note Added: 0001443
11-23-06 17:58 nazgul Status new => confirmed
11-23-06 17:58 nazgul Category Compiler => Compiler
(blocked by framework)
11-23-06 17:58 nazgul Description Updated
11-23-06 17:58 nazgul Additional Information Updated
12-09-06 10:06 nazgul Status confirmed => resolved
12-09-06 10:06 nazgul Resolution open => fixed
12-09-06 10:06 nazgul Assigned To => nazgul
12-09-06 10:06 nazgul Note Added: 0001572
======================================================================
More information about the bugs
mailing list