Page 1 of 1

cobra.lang.compiler.dll not getting produced

PostPosted: Fri Feb 04, 2011 8:57 am
by RIGHT_THEN
Gentlemen,

i am using comp-compiler-dll.bat with administrative command prompt on windows 7
but it is not getting produced. it gives 2533 errors in total most of then saying
type or namespace compiler does not exist in namspace cobra.lang_ert_..number...

2) would cobra not work with .net 4.0 assemblies . it gives some internal error that file image mscorlib is newer than what is used to make compiler, something in that sense.


This site got a good new look now and refined.Hope you all fellows are happy and well.

Thanking you
RIGHT_THEN

Re: cobra.lang.compiler.dll not getting produced

PostPosted: Fri Feb 04, 2011 9:59 am
by torial
It looks like 2 possible variables are at play:
* Windows 7
* .Net 4

I can say on my Win2008 box, a week ago I was able to build Cobra even though I had .Net 4 installed, BUT I have versions 2 and up installed as well. Do you have .Net 2.0 installed?

Presuming yes to that, let me know what code base you are building from.. and I can see if I run into the issue on my wife's Win7 box.

Re: cobra.lang.compiler.dll not getting produced

PostPosted: Fri Feb 04, 2011 10:56 am
by RIGHT_THEN
Mr. torial

Thanks for the reply
i dont have 2.0 installed myself but 2.0 is automatically there if machine has 3.5
because 3.0 and 3.5 are libraries on top of 2.0 whose System.dll is common with 3.0 and 3.5
and i saw in gac many assemblies with 2.0 version showing there. Also C:\Windows\Microsoft.NET\Framework\v2.0.50727 is available with its assemblies so i would say
yes there is 2.0 on my machine.

you asked about code base, i dont understand what you mean by that if you meant cobra source then it is the latest i downloaded on 3rd-feb-2011 with svn.

ThankingYou
RIGHT_THEN

Re: cobra.lang.compiler.dll not getting produced

PostPosted: Fri Feb 04, 2011 12:41 pm
by Charles
I'm on a business trip right now. I'll try to look into this on Sunday or Monday.

Re: cobra.lang.compiler.dll not getting produced

PostPosted: Fri Feb 04, 2011 9:22 pm
by torial
I actually misunderstood, I hadn't run the comp-compiler-dll.bat, I had run the install-from-workspace.bat. When I run the comp-compiler-dll.bat, it does give a series of errors (w/ .Net 2.0 installed, and on Win2k8).

Re: cobra.lang.compiler.dll not getting produced

PostPosted: Tue Feb 08, 2011 3:24 am
by Charles
I can reproduce the problem on both Windows and Mac. It's a bug in the Cobra compiler--a collision between the -embed-run-time feature and the -namespace feature in the case where -namespace starts with "Cobra.Lang". I'm working on a fix.

Re: cobra.lang.compiler.dll not getting produced

PostPosted: Tue Feb 08, 2011 7:11 am
by RIGHT_THEN
Mr. Charles

Thanks for the info.

cobra-win.exe is also not getting produced maybe the same problem
and i would like to represent my second point again of the above post, what about .net 4.
would cobra not work with .net 4.0 assemblies? and how to build it with .net 4.0 because
.net 4.0 has memory mapped files.

Thanking you
RIGHT_THEN

Re: cobra.lang.compiler.dll not getting produced

PostPosted: Tue Feb 08, 2011 1:21 pm
by Charles
I haven't looked into .NET 4.0 yet. It's a new version of the VM, unlike .NET 3.0 and 3.5 which were just additional libraries. But I don't know if they made the assemblies backwards compatible such that a 2.0 process (like the cobra.exe compiler) can read them.

The win-comp problem is unrelated to the other problems. It was broken by the patch that prints stats on lines compiled etc. I can fix soon.

Thanks for the reports.

Re: cobra.lang.compiler.dll not getting produced

PostPosted: Tue Feb 08, 2011 5:42 pm
by Charles
The problem with comp-compiler-dll.bat is now fixed. I tested on:
-- Windows 7 32-bit + .NET
-- Mac OS X 10.6.4 + Mono 2.6.7

If you have any more problems with that, let me know.

Re: cobra.lang.compiler.dll not getting produced

PostPosted: Tue Feb 08, 2011 8:42 pm
by Charles
The problem with win-comp.bat is fixed.

Thanks for the report.