Hi Patrrik,

So, this explains things. The problem is in Ant 1.8.0RC1. I've spent
some time to bisect the problem, and filed Ant bug for this:
https://issues.apache.org/bugzilla/show_bug.cgi?id=48541

Basically, some recent Ant changes broke JarJar task (which silently
skips that renaming).

Note to JRuby users: DON'T USE 1.8.0RC1 ant to build JRuby yet. :)

Thanks,
  --Vladimir

On Thu, Jan 14, 2010 at 11:44 AM, Sundberg, Patrik
<[email protected]> wrote:
> Picked the snapshot from the 13th. One thing I see when unpacking is this:
> ..
> ..
> inflating: 
> jruby-1.5.0.dev/lib/ruby/gems/1.8/gems/ruby-debug-0.10.3/cli/ruby-debug/commands/show.rb
> inflating: 
> jruby-1.5.0.dev/lib/ruby/gems/1.8/gems/ruby-debug-0.10.3/cli/ruby-debug/commands/source.RB
> replace 
> jruby-1.5.0.dev/lib/ruby/gems/1.8/gems/ruby-debug-0.10.3/cli/ruby-debug/commands/source.rb?
>  [y]es, [n]o, [A]ll, [N]one, [r]ename:
>
> Thought I'd mention that.
>
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> N:\>echo %PATH%
> C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program 
> Files\NetIQ\AppManager\bin;C:\Program 
> Files\NetIQ\Common\bin;C:\blp\API;C:\blp\API\dde;C:\Program Files\Barclays 
> Capital\Shared Files\;c:\Program Files\Console2;C:\Program 
> Files\QuickTime\QTSystem\;c:\tools;c:\Program 
> Files\Java\jdk1.6.0_17\bin;c:\Program Files\PuTTY
> N:\>echo %JAVA_HOME%
> %JAVA_HOME%
> N:\>echo %JRUBY_HOME%
> %JRUBY_HOME%
> N:\>c:
> C:\>cd jruby-1.5.0.dev
> C:\jruby-1.5.0.dev>bin\jruby.bat -v
> jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2010-01-13 2555b05) (Java 
> HotSpot(TM) Client VM 1.6.0_17) [x86-java]
> CallbackFactory.java:267:in `createFactory': java.lang.NoClassDefFoundError: 
> jruby/objectweb/asm/Opcodes
>        from CallbackFactory.java:256:in `createFactory'
>        from Ruby.java:2591:in `callbackFactory'
>        from RubySystemCallError.java:173:in `createSystemCallErrorClass'
>        from Ruby.java:1253:in `initExceptions'
>        from Ruby.java:1031:in `bootstrap'
>        from Ruby.java:1008:in `init'
>        from Ruby.java:172:in `newInstance'
>        from Main.java:206:in `run'
>        from Main.java:117:in `run'
>        from Main.java:97:in `main'
> C:\jruby-1.5.0.dev>java -version
> java version "1.6.0_17"
> Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
> Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
> C:\jruby-1.5.0.dev>
>
> So same result that I got out of my own build. And same on a windows box and 
> a linux box.
>
> I unzipped jruby.jar and this is what I see:
> psundb...@lnwtr074:/cygdrive/c/jruby-1.5.0.dev/lib $ ls 
> org/objectweb/asm/Opcodes.class
> -rw-r--r--+ 1 psundberg 6443 2009-06-11 09:33 org/objectweb/asm/Opcodes.class
> psundb...@lnwtr074:/cygdrive/c/jruby-1.5.0.dev/lib $ ls 
> jruby/objectweb/asm/Opcodes.class
> ls: cannot access jruby/objectweb/asm/Opcodes.class: No such file or directory
>
> I found this in build.xml:
> Line 412:
> <rule pattern="org.objectweb.asm.**" result="jruby.objectweb.a...@1"/>
> Same on line 516 and 613.
>
> Those lines seems somewhat related to me.
>
> I tried two things:
>
> I commented out those 3 lines and built again. A quick jruby -v shows version 
> info and doesn't throw exception.
>
> Also, I tried downgrading ant to version 1.7.0 and rebuilt. The 1.8.0RC1 is 
> very new and an RC so struck me it may be something related to the build. 
> Doing that I also end up with a dist file where jruby -v works. I checked it 
> and now I see:
> psundb...@lnpsprod1:~/t/jruby-1.5.0.dev/lib/t $ ls 
> jruby/objectweb/asm/Opcodes.class
> -rw-rw---- 1 psundberg 6445 Jun 11  2009 jruby/objectweb/asm/Opcodes.class
>
> So I think there's an issue with ant causing the problem. I'm building with 
> 1.7.0 going forward.
>
> Is the "official" snapshots built with 1.8.0RC1 now? Then it'd all make sense 
> to me.
>
> -----Original Message-----
> From: Vladimir Sizikov [mailto:[email protected]]
> Sent: 14 January 2010 09:00
> To: [email protected]
> Subject: Re: [jruby-dev] building jruby from master (first time)
>
> Hi Patrik,
>
> I just tried to follow your steps, and no problems, it works just fine
> here. Could you please double-check that jruby.jar from the extracted
> dist archive has the appropriate class
> (jruby.jar/jruby/objectweb/asm/Opcodes.class).
>
> Also, please make sure you don't have any JRUBY_HOME env variable set,
> just in case...
>
> Thanks,
>  --Vladimir
>
> P.S. Trying out the "official" snapshots, as Charles suggested is also
> an option to try.
>
> On Thu, Jan 14, 2010 at 1:07 AM, Sundberg, Patrik
> <[email protected]> wrote:
>> Hi,
>>
>>
>>
>> I'm building jruby from master for the first time (used github mirror,
>> commit 2555b05e0441a785d164f023360b5df9513b9426) and I'm running into a
>> little snafu I was hoping to get help with. The build all goes well and I do
>> ant dist to get a .tar.gz that I can use to install on another machine. As a
>> test on the same machine as I built it I just unzipped the .tar.gz in dist
>> to another directory and do:
>>
>>
>>
>> psundb...@lnpsprod1:~/dev/jruby (git:master)$ bin/jruby -v
>>
>> jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2010-01-13 2555b05) (Java
>> HotSpot(TM) 64-Bit Server VM 1.6.0_17) [amd64-java]
>>
>> psundb...@lnpsprod1:~/dev/jruby (git:master)$ cd
>> ../../user-root/jruby-1.5.0.dev/
>>
>> psundb...@lnpsprod1:~/user-root/jruby-1.5.0.dev $ bin/jruby -v
>>
>> jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2010-01-13 2555b05) (Java
>> HotSpot(TM) 64-Bit Server VM 1.6.0_17) [amd64-java]
>>
>> CallbackFactory.java:267:in `createFactory': java.lang.NoClassDefFoundError:
>> jruby/objectweb/asm/Opcodes
>>
>>         from CallbackFactory.java:256:in `createFactory'
>>
>>         from Ruby.java:2591:in `callbackFactory'
>>
>>         from RubySystemCallError.java:173:in `createSystemCallErrorClass'
>>
>>         from Ruby.java:1253:in `initExceptions'
>>
>>         from Ruby.java:1031:in `bootstrap'
>>
>>         from Ruby.java:1008:in `init'
>>
>>         from Ruby.java:172:in `newInstance'
>>
>>         from Main.java:206:in `run'
>>
>>         from Main.java:117:in `run'
>>
>>         from Main.java:97:in `main'
>>
>>
>>
>> Is this a pilot error?
>>
>>
>>
>> Thanks
>>
>> P
>>
>>
>>
>>
>>
>> ________________________________
>>
>> The information contained in this communication is confidential and intended
>> only for the individual(s) named above. If you are not a named addressee,
>> please notify the sender immediately and delete this email from your system.
>> The views expressed in this email are the views of the author and do not
>> necessarily represent the views of Millennium Capital Partners LLP (MCP LLP)
>> or any of its affiliates. Outgoing and incoming electronic communications of
>> MCP LLP and its affiliates, including telephone communications, may be
>> electronically archived and subject to review and/or disclosure to someone
>> other than the recipient. MCP LLP is authorised and regulated by the
>> Financial Services Authority.
>>
>> ________________________________
>>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
> ######################################################################
> The information contained in this communication is confidential and
> intended only for the individual(s) named above. If you are not a named
> addressee, please notify the sender immediately and delete this email
> from your system. The views expressed in this email are the views of
> the author and do not necessarily represent the views of Millennium
> Capital Partners LLP (MCP LLP) or any of its affiliates. Outgoing
> and incoming electronic communications of MCP LLP and its affiliates,
> including telephone communications, may be electronically archived and
> subject to review and/or disclosure to someone other than the recipient.
> MCP LLP is authorised and regulated by the Financial Services Authority.
> ######################################################################
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to