Nemerle Compiler Assertion?

61 views
Skip to first unread message

Philip Laureano

unread,
Feb 28, 2013, 4:18:56 AM2/28/13
to nemer...@googlegroups.com
Is this a compiler bug? 

C:\Program Files (x86)\Nemerle\Net-4.5\Nemerle.MSBuild.targets(289,5): error : internal compiler error: assertion failed in file ncc\external\LibraryReferenceManager.n, line 546: wanted to cache cached value Nemerle.Builtins.FunctionVoid`20['p1, 'p2, 'p3, 'p4, 'p5, 'p6, 'p7, 'p8, 'p9, 'p10, 'p11, 'p12, 'p13, 'p14, 'p15, 'p16, 'p17, 'p18, 'p19, 'p20]
  at Nemerle.Compiler.LibraryReferenceManager.CacheTypeInfo(Type t, TypeInfo tc, Node node)
  at Nemerle.Compiler.LibraryReference.ExternalTypeInfo..ctor(LibraryReference lib, Type h, Node ns_node)
  at Nemerle.Compiler.LibraryReference.ConstructTypeInfo(Type reflected_type, Node ns_node)
  at Nemerle.Compiler.NamespaceTree.Node._N__N_lambda__85270__85290.apply(ExternalType e, list`1 acc)
  at Nemerle.Collections.NList.FoldLeft[T,TOut](list`1 l, TOut acc, Function`3 f)
  at Nemerle.Compiler.NamespaceTree.Node.LoadValue(NotLoadedList val)
  at Nemerle.Compiler.NamespaceTree.Node.LookupType(list`1 split, Int32 args_count)
  at Nemerle.Compiler.LibraryReference.TypeInfoOfType(Type framework_type)
  at Nemerle.Compiler.LibraryReference.TypeOfType(Map`2 _tenv, Type framework_type)
  at Nemerle.Compiler.LibraryReference.ExternalMethodInfo..ctor(Map`2 tenv, LibraryReference lib, MethodBase h)
  at Nemerle.Compiler.LibraryReference.ExternalTypeInfo.imember_of_memberinfo(MemberInfo m)
  at Nemerle.Compiler.LibraryReference.ExternalTypeInfo.collect_members()
  at Nemerle.Compiler.LibraryReference.ExternalTypeInfo.LookupMemberImpl(String name)
  at Nemerle.Compiler.LibraryReference.ExternalTypeInfo.decode_extension_methods(LibraryReferenceManager mgr)
  at Nemerle.Compiler.LibraryReference.ExternalTypeInfo..ctor(LibraryReference lib, Type h, Node ns_node)
  at Nemerle.Compiler.LibraryReference.ConstructTypeInfo(Type reflected_type, Node ns_node)
  at Nemerle.Compiler.NamespaceTree.Node.LookupType(list`1 split, Int32 args_count)
  at Nemerle.Compiler.LibraryReferenceManager.LoadExtensions()
  at Nemerle.Compiler.ManagerClass._N_tryEx_28026(_N_closureOf_LoadExternalLibraries_28008 _N_LoadExternalLibraries_cp_28025, FunctionVoid f)
  at Nemerle.Compiler.ManagerClass.LoadExternalLibraries()
  at Nemerle.Compiler.ManagerClass.Run()
  at Nemerle.CommandlineCompiler.MainClass.main_with_catching()
Done building project "Tao.CompositionStreams.Macros.nproj" -- FAILED.


NN

unread,
Feb 28, 2013, 5:51:09 AM2/28/13
to nemer...@googlegroups.com
Seems like problem, can you minimize needed amount of code to reproduce this ?

Philip Laureano

unread,
Feb 28, 2013, 2:12:47 PM2/28/13
to nemer...@googlegroups.com
Sure, I've attached the sample to this message.
NemerleCompilerAssertionError.zip

Philip Laureano

unread,
Mar 6, 2013, 4:59:07 AM3/6/13
to nemer...@googlegroups.com
So did you get a chance to look at the bug?


On Thursday, February 28, 2013 9:51:09 PM UTC+11, NN wrote:

VladD2

unread,
Mar 6, 2013, 7:39:11 AM3/6/13
to nemer...@googlegroups.com
2013/3/6 Philip Laureano <philip....@gmail.com>
So did you get a chance to look at the bug?

I think, your projects made by hand. I advise recreate  projects by wizard or remove <NoStdLib>true</NoStdLib> teg from projects.
 

NN

unread,
Mar 6, 2013, 10:49:33 AM3/6/13
to nemer...@googlegroups.com
I approve.
Removing or changing this to <NoStdLib>false</NoStdLib> makes everything work.

NN

unread,
Oct 25, 2013, 11:04:56 AM10/25/13
to nemer...@googlegroups.com
Ok, I found the reason.
http://www.rsdn.ru/forum/nemerle/5342273.1

Here you have IL with problem and you can download the zip.

Issue in github:https://github.com/rsdn/nemerle/issues/576
Reply all
Reply to author
Forward
0 new messages