Re: Almost successful: Building ikvm-7.2.4630.5 on windows 8.1 with Visual Studio 2013
Jeroen Frijters <[email protected]> Sat, 14 Mar 2015 07:24:02 +0000
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <[email protected]> |
This might also be a consequence of trying to use JDK 8 to compile. Using a matching JDK version really is a hard requirement. Regards, Jeroen > -----Original Message----- > From: Jaroslav Tulach [mailto:[email protected]] > Sent: Friday, March 13, 2015 17:06 > To: Jeroen Frijters; [email protected] > Subject: Almost successful: [Ikvm-developers] Building ikvm-7.2.4630.5 > on windows 8.1 with Visual Studio 2013 > > Now the build properly created many .dll files (including > \IKVM.OpenJDK.Core.dll which is my main interest), but at the end it > failed on > > > classes: > [exec] > C:\Users\jarda\Documents\NetBeansProjects\ikvm\ikvm\openjdk\openjdk.buil > d(89,10): Attribute 'useruntimeengine' for <exec ... /> is deprecated. > Use the managed attribute and Managed property instead. > [exec] > C:\Users\jarda\Documents\NetBeansProjects\ikvm\ikvm\openjdk\openjdk.buil > d(90,10): Attribute 'useruntimeengine' for <exec ... /> is deprecated. > Use the managed attribute and Managed property instead. > [exec] > C:\Users\jarda\Documents\NetBeansProjects\ikvm\ikvm\openjdk\openjdk.buil > d(91,10): Attribute 'useruntimeengine' for <exec ... /> is deprecated. > Use the managed attribute and Managed property instead. > [exec] > C:\Users\jarda\Documents\NetBeansProjects\ikvm\ikvm\openjdk\openjdk.buil > d(95,10): Attribute 'useruntimeengine' for <exec ... /> is deprecated. > Use the managed attribute and Managed property instead. > [exec] > C:\Users\jarda\Documents\NetBeansProjects\ikvm\ikvm\openjdk\openjdk.buil > d(96,10): Attribute 'useruntimeengine' for <exec ... /> is deprecated. > Use the managed attribute and Managed property instead. > [copy] Copying 1 file to > 'C:\Users\jarda\Documents\NetBeansProjects\ikvm\ikvm\openjdk\AssemblyInf > o.java'. > [copy] Copying 1 file to > 'C:\Users\jarda\Documents\NetBeansProjects\ikvm\ikvm\openjdk\java\lang\P > ropertyConstants.java'. > [exec] > C:\Users\jarda\Documents\NetBeansProjects\ikvm\ikvm\openjdk\openjdk.buil > d(119,10): Attribute 'useruntimeengine' for <exec ... /> is deprecated. > Use the managed attribute and Managed property instead. > [exec] sun\jdbc\odbc\JdbcOdbcDatabaseMetaData.java:429: > error: cannot access IXmlSerializable > [exec] DataRowCollection rows1 = > dt1.get_Rows(); > [exec] ^ > [exec] class file for > cli.System.Xml.Serialization.IXmlSerializable not found > [exec] Note: Some input files use or override a > deprecated API. > [exec] Note: Recompile with -Xlint:deprecation for > details. > [exec] Note: Some input files use unchecked or unsafe > operations. > [exec] Note: Recompile with -Xlint:unchecked for > details. > [exec] 1 error > > > 2015-03-13 17:50 GMT+02:00 Jaroslav Tulach <[email protected] > <mailto:[email protected]> >: > > > I found it! I correctly unzipped the *dll into ikvm/bin/ directory, > but after unzipping it didn't have the execution attribute set up. > > $ chmod a+x *.dll > > fixed that. > > -jt > > > 2015-03-13 17:44 GMT+02:00 Jaroslav Tulach > <[email protected] <mailto:[email protected]> >: > > > Thanks for all you hints. Yes, the file is missing: > > ikvm $ find tools/ > tools/ > tools/asmref.cs > tools/asmref.exe > tools/CVS > tools/CVS/Entries > tools/CVS/Repository > tools/CVS/Root > tools/CVS/Tag > tools/depcheck.cs > tools/depcheck.exe > tools/pubkey.cs > tools/pubkey.exe > tools/pubkey.txt > tools/tools.build > tools/updbaseaddresses.cs > tools/updbaseaddresses.exe > > > but I used > $ cvs -z3 - > d:pserver:[email protected]:/cvsroot/ikvm co -r > v7_2_4630_5 -P ikvm > to get it. So probably the 7.2.4630.5 version is broken. > After switching to 7_2_4630_6 the file appeared. > > Now the build fails on missing ICSharpCode.SharpZipLib.dll. I > have downloaded it, but what am I supposed to do with it now? Unzip > somewhere? I tried to run "nant -debug" hoping it prints location it > seeks the file for, but no luck. > > Thanks in advance for a push in the right direction. > > -jt > > 2015-03-13 15:58 GMT+02:00 Jeroen Frijters <[email protected] > <mailto:[email protected]> >: > > > Hi, > > It looks like ./ikvm/tools/writeappconfig.cs is missing. > > Regards, > Jeroen > > > > -----Original Message----- > > From: Jaroslav Tulach > [mailto:[email protected] <mailto:[email protected]> ] > > Sent: Friday, March 13, 2015 14:48 > > To: [email protected] > <mailto:[email protected]> > > Subject: [Ikvm-developers] Building ikvm-7.2.4630.5 on > windows 8.1 with > > Visual Studio 2013 > > > > > > Hi. > > I am a complete windows newbie, so please excuse my > ignorance. I am > > trying to follow > http://sourceforge.net/p/ikvm/wiki/Building/ > > I have the sources with following structure: > > > > $ find -type d | cut -f 1-3 -d / | sort -u ./ikvm > ./ikvm/awt ./ikvm/bin > > ./ikvm/bin-x64 > > ./ikvm/bin-x86 > > ./ikvm/classpath > > ./ikvm/CVS > > ./ikvm/debugger > > ./ikvm/ikvm > > ./ikvm/ikvmc > > ./ikvm/ikvmdoc > > ./ikvm/ikvmstub > > ./ikvm/japi > > ./ikvm/jvm > > ./ikvm/native > > ./ikvm/openjdk > > ./ikvm/reflect > > ./ikvm/runtime > > ./ikvm/tools > > ./ikvm/website > > ./openjdk-7u6-b24 > > ./openjdk-7u6-b24/build > > ./openjdk-7u6-b24/jdk > > ./openjdk-7u6-b24/langtools > > > > I start something called "VS2013 x64 Cross Tools > Command Prompt", change > > my directory to ikvm directory and type: > > > > $ c:\nant-0.92\bin\NAnt.exe > > > > the build fails. Any clues of what is going on? Thanks > for any advice. > > -jt > > > > PS: Here is the output: > > > > > > CommonAssemblyInfo: > > [copy] Copying 1 file to > > > 'c:\Users\jarda\Documents\NetBeansProjects\ikvm\ikvm\CommonAssemblyInfo. > > cs'. > > managed: > > [nant] > > > c:\Users\jarda\Documents\NetBeansProjects\ikvm\ikvm\tools\tools.build > > Buildfile: > > > file:///c:/Users/jarda/Documents/NetBeansProjects/ikvm/ikvm/tools/tools. > > build > > Target framework: Microsoft .NET Framework > 4.0 > > Target(s) specified: tools > > > > tools: > > [csc] Compiling 1 files to > > > 'c:\Users\jarda\Documents\NetBeansProjects\ikvm\ikvm\tools\asmref.exe'. > > [csc] > > > c:\Users\jarda\Documents\NetBeansProjects\ikvm\ikvm\tools\asmref.cs(43,1 > > 5): warning CS0618: > > > 'System.Reflection.Assembly.LoadWithPartialName(string)' is obsolete: > > 'This method h as been deprecated. Please use > Assembly.Load() instead. > > http://go.microsoft.com/fwlink/?linkid=14202' > > [csc] Compiling 1 files to > > > 'c:\Users\jarda\Documents\NetBeansProjects\ikvm\ikvm\tools\updbaseaddres > > ses.exe'. > > [csc] Compiling 1 files to > > > 'c:\Users\jarda\Documents\NetBeansProjects\ikvm\ikvm\tools\depcheck.exe' > > . > > [csc] Compiling 2 files to > > > 'c:\Users\jarda\Documents\NetBeansProjects\ikvm\ikvm\tools\pubkey.exe'. > > [exec] > > > c:\Users\jarda\Documents\NetBeansProjects\ikvm\ikvm\tools\tools.build(32 > > ,10): Attribute 'useruntimeengine' for <exec ... /> is > deprecated. Use > > the managed attribute and Manage d property instead. > > [csc] Compiling 0 files to > > > 'c:\Users\jarda\Documents\NetBeansProjects\ikvm\ikvm\tools\writeappconfi > > g.exe'. > > [csc] warning CS2008: No source > files specified > > [csc] error CS5001: Program > > > 'c:\Users\jarda\Documents\NetBeansProjects\ikvm\ikvm\tools\writeappconfi > > g.exe' does not contain a static 'Main' method > suitable for an entry > > point > > BUILD FAILED - 0 non-fatal error(s), 1 > warning(s) > > > > > c:\Users\jarda\Documents\NetBeansProjects\ikvm\ikvm\tools\tools.build(34 > > ,10): > > External Program Failed: > > > C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe (return code was > > 1) > > Total time: 0.8 seconds. > > > > BUILD FAILED - 0 non-fatal error(s), 1 warning(s) > Nested build failed. > > Refer to build log for exact reason. > > Total time: 1.1 seconds. > > > > > ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/