Forums

Unable to install Cobra from SVN

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

Unable to install Cobra from SVN

Postby Zmeeed » Thu Jul 19, 2012 2:02 am

I have all .NET Frameworks and VS 2010 Pro. Everything did according to the instructions from Wiki. Launched cmd.exe as Administrator.

Code: Select all
==== Build new Cobra compiler

run: Snapshot\cobra.exe -compile -turbo -ert:yes cobra.cobra -files:files-to-com
pile.text
   : Compilation succeeded

==== Retrieve Cobra base version number

run: cobra.exe -version
   : Cobra svn: (post 0.8) / 2012-07-19 on .NET CLR v2.0.50727 on Microsoft Wind
ows NT 6.0.6002 Service Pack 2

base version: 2.0.50727-post

==== Build Cobra.Core library

run: cobra.exe -build-standard-library -debug -turbo -out:Cobra.Core.dll -key-fi
le:Cobra.Core\Cobra.Core.snk Cobra.Core\AssemblyAttrs.cobra
   : cobra: error: Cannot find "Cobra.Core\AssemblyAttrs.cobra" as a file.
   : Run Cobra without options to get full usage information.

** ERROR: Exit code from running Source Cobra: 1
Need help with the above error?
 * Make sure you ran as a Windows Administrator.
 * Install .NET or a Visual Studio product if you have not before.


At first I tried .NET 4, then .NET 2. Results are identical.
It is easy to go from the house of reality to the forest of mathematics, but only few know how to go back. Hugo Steinhaus.
Zmeeed
 
Posts: 13
Location: Russia

Re: Unable to install Cobra from SVN

Postby Charles » Thu Jul 19, 2012 9:22 am

Looks my Cobra.Core change broke the installer which I forgot to test. Will fix today.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Unable to install Cobra from SVN

Postby Charles » Thu Jul 19, 2012 11:35 am

Fixed and tested on:

-- Windows 7 32-bit + CLR2
-- Windows 7 64-bit + CLR4
-- Ubuntu 12.04 + Mono 2.10.8.1 + CLR2
-- Ubuntu 12.04 + Mono 2.10.8.1 + CLR4
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Unable to install Cobra from SVN

Postby hopscc » Fri Jul 20, 2012 12:17 am

Something in that Cobra.Core change also broke compiling for a java back-end
( as of original change yesterday and same with changeset for above)

Code: Select all
693 xx:...wkspace1/Source>  ./Snapshot/cobra.exe -compile -color -ert:yes -debug -timeit $* cobra.cobra -files:files-to-compile.text;
Compilation succeeded
timeit compile = 00:00:10.1587959
49777 lines compiled at 4899.9 lines/sec
146961 nodes compiled at 14466.4 nodes/sec
266365 tokens compiled at 26220.1 tokens/sec
694 xx:...wkspace1/Source> ./cobra -bsl
Compilation succeeded
695 xx:...wkspace1/Source> ./cobra ../Tests/100-basics/001.cobra
696 xx:...wkspace1/Source> ./cobra -back-end:jvm ../Tests/100-basics/001.cobra
dbg: java.awt.Choice indexerMethods = getItem
dbg: java.awt.List indexerMethods = getItem
dbg: java.awt.Menu indexerMethods = getItem
dbg: java.awt.event.ItemEvent indexerMethods = getItem
dbg: java.lang.String indexerMethods = charAt
dbg: java.util.List`1 indexerMethods = get,set
dbg: java.util.Map`2 indexerMethods = get,put
dbg: javax.swing.ComboBoxEditor indexerMethods = getItem,setItem
dbg: javax.swing.JMenu indexerMethods = getItem
In namespace "Awt" java namespace "Color" renamed in cobra to "ColorNS". (cobra
name collision)
In namespace "Awt" java namespace "Event" renamed in cobra to "EventNS". (cobra
name collision)
In namespace "Awt" java namespace "Font" renamed in cobra to "FontNS". (cobra na
me collision)
In namespace "Awt" java namespace "Image" renamed in cobra to "ImageNS". (cobra
name collision)
In namespace "Awt" java namespace "Image" renamed in cobra to "ImageNS". (cobra
name collision)
(implicit)(1): error: Cannot find namespace "Core" in "Cobra".
Compilation failed - 1 error, 0 warnings
Not running due to errors above.


Where is (implicit)(1) ?
hopscc
 
Posts: 632
Location: New Plymouth, Taranaki, New Zealand

Re: Unable to install Cobra from SVN

Postby hopscc » Fri Jul 20, 2012 2:14 am

OK I worked it out.

The changes to 'Core' from 'Lang' in the JVM backend code need a whole lot more changes done to the rtl
(rename package for RTL contents ) and jarfile and sig generation ( rename files and build scripts)
to be internally consistent (to work).

I'll send you a patch covering the changes needed.
hopscc
 
Posts: 632
Location: New Plymouth, Taranaki, New Zealand

Re: Unable to install Cobra from SVN

Postby Zmeeed » Fri Jul 20, 2012 5:05 am

Charles wrote:Fixed and tested on:

-- Windows 7 32-bit + CLR2
-- Windows 7 64-bit + CLR4
-- Ubuntu 12.04 + Mono 2.10.8.1 + CLR2
-- Ubuntu 12.04 + Mono 2.10.8.1 + CLR4


Success!
-- Windows Vista 32-bit + CLR4
It is easy to go from the house of reality to the forest of mathematics, but only few know how to go back. Hugo Steinhaus.
Zmeeed
 
Posts: 13
Location: Russia

Re: Unable to install Cobra from SVN

Postby hopscc » Fri Jul 20, 2012 6:55 am

Fixups for cobra core java backend patch sent as email.
Pls let me know if you dont get it or its garbled.
hopscc
 
Posts: 632
Location: New Plymouth, Taranaki, New Zealand

Re: Unable to install Cobra from SVN

Postby Charles » Fri Jul 20, 2012 10:22 am

Applied. Thanks. Sorry for the breakage.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Unable to install Cobra from SVN

Postby hopscc » Sat Jul 21, 2012 1:09 am

No problem.
hopscc
 
Posts: 632
Location: New Plymouth, Taranaki, New Zealand


Return to Discussion

Who is online

Users browsing this forum: No registered users and 5 guests

cron