Forums

Compiling on windows

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Compiling on windows

Postby melger » Sun Nov 27, 2011 12:41 am

I've been playing around with the snapshot cobra compiler fine, but I was wondering if the current trunk compiles on windows (and I'm just doing something wrong)? Running bin\install-from-workspace.bat results in the following while compiling Cobra.Lang:

"warning: Cannot extract version number from version string: svn: (post 0.8) / 2011-11-27 on .NET CLR v4.0.30319"

This may have something to do with me not using a standard svn client. Manually setting the .versionString to what the regex expects on line 1006 of CommandLine.cobra (i.e. svn:0.8.0 post) I can get past this, however this leads to:

"
run: cobra.exe -c -t:lib -namespace:Cobra.Lang.Compiler -files:files-to-compile.text -debug -native-compiler:C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe -turbo -out:Cobra.Lang.Compiler.dll -key-file:Cobra.Lang\Cobra.Lang.snk cobra.cobra
: Statements.cobra(277): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Expr> on the left.
: Statements.cobra(328): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Stmt> on the left.
: Statements.cobra(989): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Expr> on the left.
: Statements.cobra(1070): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Expr> on the left.
: Statements.cobra(1247): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Expr> on the left.
: Statements.cobra(1681): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Expr> on the left.
: Expr.cobra(636): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Expr> on the left.
: Compilation failed - 7 errors, 0 warnings
"

Being new to Cobra I'm not sure I can debug this one easily :). Any ideas on whats going on?
melger
 
Posts: 6

Re: Compiling on windows

Postby Charles » Sun Nov 27, 2011 4:50 pm

I'll take a look. Thanks for the report.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Compiling on windows

Postby pchapin » Thu Dec 01, 2011 6:17 am

For what it's worth I'm seeing the same problem with the 7 errors in Statements.cobra and Expr.cobra. I'm using Windows 7, 64 bit and I'm installing as Administrator. This is with repository revision 2627.
pchapin
 
Posts: 46
Location: Vermont, USA

Re: Compiling on windows

Postby Charles » Thu Dec 01, 2011 9:25 am

I can reproduce as well on Windows, although not on Mono/Mac. :(

I have some work to do before I can get into this. You can try checking out earlier versions of Cobra with subversion. I'm guessing 2624 would work.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Compiling on windows

Postby Charles » Fri Dec 02, 2011 12:04 am

I hacked in a fix which is to not build the Cobra.Lang.Compiler library for now.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Compiling on windows

Postby ObtuseAngle » Thu Dec 08, 2011 6:46 pm

Probably an unrelated problem.
My workplace changed me to another machine.

Installing from the Windows installer worked OK.

Attempting to install from source (svn revision 2629) ends with the following error:

Image

Probably something simple, but I'm not terribly au fait with the .NET environment.
99 programming bugs in the code, 99 bugs in the code, fix 1 bug and compile it again, 101 programming bugs in the code
ObtuseAngle
 
Posts: 42
Location: Gippsland, Australia

Re: Compiling on windows

Postby Charles » Thu Dec 08, 2011 7:07 pm

That's a bug on our side. I'll try to fix later tonight.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Compiling on windows

Postby melger » Thu Dec 08, 2011 7:51 pm

That's the same error as I had above. You can temporarily get around it by changing CommandLine.cobra as I mentioned.
melger
 
Posts: 6

Re: Compiling on windows

Postby ObtuseAngle » Thu Dec 08, 2011 8:13 pm

melger wrote:That's the same error as I had above. You can temporarily get around it by changing CommandLine.cobra as I mentioned.


Opps, sorry melger, I understood you were getting the warning, but not the error that followed.
My error :? for misunderstanding.
99 programming bugs in the code, 99 bugs in the code, fix 1 bug and compile it again, 101 programming bugs in the code
ObtuseAngle
 
Posts: 42
Location: Gippsland, Australia

Re: Compiling on windows

Postby Charles » Fri Dec 09, 2011 1:21 am

Fixed. Let me know if you have further problems with this or anything else.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Next

Return to Discussion

Who is online

Users browsing this forum: No registered users and 35 guests