Building Jake pauses at CPArray+KVO

5 views
Skip to first unread message

stephen white

unread,
Nov 8, 2009, 12:57:03 PM11/8/09
to Cappuccino & Objective-J
Trying to compile Jake from scratch on OS X 10.5.8 results in: Always
hangs here, and never gets any further:

(in /Users/steve/Developer/Cappuccino/cappuccino/Foundation)
Compiling [ObjJ] CPArray+KVO.j...

As another question, I notice that the compile messages seem to have
IE7 and IE8 specific versions. Is compatibility between browsers
really so bad? I assume yes. :)

Thanks,
Steve.

--
st...@adam.com.au


Randy Luecke

unread,
Nov 8, 2009, 1:04:49 PM11/8/09
to Cappuccino & Objective-J
I got that too,

You should run all these removes
http://suitmymind.com/blog/2009/11/04/cappuccino-building-the-jake-branch/

That caused it to finally work again.

My problem now is that even when I gen new framework directories I
get
*** Could not recognize executable code format.
in the console. I don't believe it's related but I'd love to see what
happens when you remove all the symbolic links and such outlined in
the link above.

Robert Malko

unread,
Nov 8, 2009, 1:11:19 PM11/8/09
to Cappuccino & Objective-J
I actually started there and removed all those symbolic links first
and have the same problem.

On Nov 8, 1:04 pm, Randy Luecke <rclconce...@gmail.com> wrote:
> I got that too,
>
> You should run all these removeshttp://suitmymind.com/blog/2009/11/04/cappuccino-building-the-jake-br...

Randy Luecke

unread,
Nov 8, 2009, 1:20:22 PM11/8/09
to Cappuccino & Objective-J
There is a Build directory inside of your Cappuccino directory too, I
removed that as well… (after several unsuccessful builds) then deleted
everything the $CAPP_BUILD dir, the sym links, etc… I mean it seems
like we're all having the same problems, and even once it builds I
can't actually do anything with it.

Perhaps once Tom gets back from Berlin we'll make some better
progress…

stephen white

unread,
Nov 9, 2009, 3:22:39 AM11/9/09
to objec...@googlegroups.com
On 09/11/2009, at 4:50 AM, Randy Luecke wrote:
> There is a Build directory inside of your Cappuccino directory too, I
> removed that as well… (after several unsuccessful builds) then deleted
> everything the $CAPP_BUILD dir, the sym links, etc… I mean it seems


A workaround for now seems to be compiling without the jsc engine. You
can do most of it with jsc, get past the sticking point without, then
turn jsc back on.

--
st...@adam.com.au


Robert Malko

unread,
Nov 9, 2009, 11:05:06 PM11/9/09
to Cappuccino & Objective-J
That did not work for me. Still stuckola.

stephen white

unread,
Nov 10, 2009, 2:24:51 AM11/10/09
to objec...@googlegroups.com
On 10/11/2009, at 2:35 PM, Robert Malko wrote:
> That did not work for me. Still stuckola.


Yep, back to stuck for me too:

(in /Users/steve/Developer/Cappuccino/cappuccino/Foundation)
Compiling [ObjJ] CPArray+KVO.j...

<pauses forever>

--
st...@adam.com.au


Robert Malko

unread,
Nov 10, 2009, 7:46:30 AM11/10/09
to Cappuccino & Objective-J
I tried uninstalling the narwhal dir and ran the process again, and
then while doing the jake install I'm now getting a new error I've
never seen multiple times:

Creating static file... /Users/malkomalko/Projects/Capp/build/Debug/
Foundation/ObjJ.environment/Foundation.sj
InternalError: Can't find method java.io.BufferedWriter.write
(string,object). (/usr/local/narwhal/engines/rhino/lib/io-
engine.js#164)
org.mozilla.javascript.EvaluatorException: Can't find method
java.io.BufferedWriter.write(string,object). (/usr/local/narwhal/
engines/rhino/lib/io-engine.js#164)

Appears to have happened after the latest push.

stephen white

unread,
Nov 10, 2009, 9:11:53 AM11/10/09
to objec...@googlegroups.com
On 10/11/2009, at 11:16 PM, Robert Malko wrote:
> I tried uninstalling the narwhal dir and ran the process again, and

You'll need to run bootstrap.sh again.

> InternalError: Can't find method java.io.BufferedWriter.write
> (string,object). (/usr/local/narwhal/engines/rhino/lib/io-


If you're on 10.5, sudo -E doesn't work either, so try this:

sudo bash -c "source ~/.bash_profile; ./bootstrap.sh"
sudo bash -c "source ~/.bash_profile; jake install"

That will take you back to being stuck at CPArray+KVO. I have noticed
that it seems to get through compiling that file (earlier in the
process), so it's the building part of it that is a problem.

I'm trying to come up to speed on narwhal to be able to figure this
problem out. It's a great platform, almost makes me want to program in
native Javascript! Almost. :)

--
st...@adam.com.au


Francisco Tolmasky

unread,
Nov 11, 2009, 5:16:40 AM11/11/09
to Cappuccino & Objective-J
This was due to a Java version issue. Problem should be fixed now.

Thomas Balthazar

unread,
Nov 11, 2009, 6:09:41 AM11/11/09
to objec...@googlegroups.com
It worked fine for me.

Has anyone an idea about the sudo -E problem on Mac OS X 10.5? See here :
http://suitmymind.com/blog/2009/11/04/cappuccino-building-the-jake-branch/#comment-21943461

I don't 10.5 anymore for testing.

stephen white

unread,
Nov 11, 2009, 6:39:04 AM11/11/09
to objec...@googlegroups.com
On 11/11/2009, at 9:39 PM, Thomas Balthazar wrote:
> Has anyone an idea about the sudo -E problem on Mac OS X 10.5? See
> here :
> http://suitmymind.com/blog/2009/11/04/cappuccino-building-the-jake-branch/#comment-21943461


I answered earlier that if you're on 10.5, sudo -E doesn't work
either, so try this:

sudo bash -c "source ~/.bash_profile; ./bootstrap.sh"
sudo bash -c "source ~/.bash_profile; jake install"

--
st...@adam.com.au


Robert Malko

unread,
Nov 11, 2009, 7:44:40 AM11/11/09
to Cappuccino & Objective-J
I just tried following Thomas instructions again and I'm getting same
error messages.

InternalError: Can't find method java.io.BufferedWriter.write
(string,object). (/usr/local/narwhal/engines/rhino/lib/io-
engine.js#164)
org.mozilla.javascript.EvaluatorException: Can't find method
java.io.BufferedWriter.write(string,object). (/usr/local/narwhal/
engines/rhino/lib/io-engine.js#164)

Is popping up after every pass and it's getting stuck at Compiling
[ObjJ] CPArray+KVO.j...

I'm on 10.5.8, new macbook pro, all system updates.

On Nov 11, 6:39 am, stephen white <st...@adam.com.au> wrote:
> On 11/11/2009, at 9:39 PM, Thomas Balthazar wrote:
>
> > Has anyone an idea about the sudo -E problem on Mac OS X 10.5? See  
> > here :
> >http://suitmymind.com/blog/2009/11/04/cappuccino-building-the-jake-br...

Robert Malko

unread,
Nov 11, 2009, 8:33:42 AM11/11/09
to Cappuccino & Objective-J
Found my problem. I had to go into Java Preferences and drag 1.6 to
the top of the list. It appears that it wasn't building properly with
1.5.

Thomas Balthazar

unread,
Nov 11, 2009, 9:54:56 AM11/11/09
to objec...@googlegroups.com
Hi Stephen,

I missed your answer, thanks for the tip.

Thomas.

Ross Boucher

unread,
Nov 11, 2009, 10:47:47 AM11/11/09
to objec...@googlegroups.com
If we have a 1.6 dependency, that is new, and troubling. We'll look
into all this today.

Brad Hutchins

unread,
Nov 11, 2009, 10:57:33 AM11/11/09
to objec...@googlegroups.com
Ouch. Don't forget that java 1.6 was only 64 bit compiled (I
believe). Yet if you are using on of the first gen mac book pro's,
your system is using Intel core Duo's... Not cor 2 duo's . So they
are 32 bit only and can only use Java 1.5

Sent from my iPhone

Robert Malko

unread,
Nov 11, 2009, 11:19:50 AM11/11/09
to Cappuccino & Objective-J
I tried rebuilding again on 1.5 and it failed the first time, tried a
system restart and cleaned out again and it worked. So no worries on
1.6 fear, but not sure what happened with my system :).

On Nov 11, 10:57 am, Brad Hutchins <oshyb...@gmail.com> wrote:
> Ouch. Don't forget that java 1.6 was only 64 bit compiled (I  
> believe).  Yet if you are using on of the first gen mac book pro's,  
> your system is using Intel core Duo's... Not cor 2 duo's .  So they  
> are 32 bit only and can only use Java 1.5
>
> Sent from my iPhone
>

Brad Hutchins

unread,
Nov 11, 2009, 11:49:29 AM11/11/09
to objec...@googlegroups.com
Oh hey that reminds me, I remember someone sent out rules for the new Jake build (what and where to cleanup before installing the new version).  I checked my saved emails but could not find the steps.  Anyone have them?

B

Robert Malko

unread,
Nov 11, 2009, 12:02:38 PM11/11/09
to Cappuccino & Objective-J
http://suitmymind.com/blog/2009/11/04/cappuccino-building-the-jake-branch/

On Nov 11, 11:49 am, Brad Hutchins <oshyb...@gmail.com> wrote:
> Oh hey that reminds me, I remember someone sent out rules for the new Jake
> build (what and where to cleanup before installing the new version).  I
> checked my saved emails but could not find the steps.  Anyone have them?
>
> B
>

Tom Robinson

unread,
Nov 11, 2009, 5:57:01 PM11/11/09
to objec...@googlegroups.com
If you're talking about the "hang at CPArray+KVO" problem, the problem
was Francisco had built a custom version of shrinksafe using Java 1.6.
This commit should have fixed it:

http://github.com/280north/cappuccino/commit/77c74412dc4685ddde879bfeb3c6e802cc14be4f

We'll look into this separate java.io.BufferedWriter.write error. Are
you saying it works with 1.6 but not 1.5? Using jake with Rhino
(default) or JavaScriptCore (NARWHAL_ENGINE=jsc)

-tom

Randy Luecke

unread,
Nov 11, 2009, 6:33:04 PM11/11/09
to Cappuccino & Objective-J
I should not that after that commit Tom, I started having my hang at
CPArray+KVO" problem again! (and the ava.io.BufferedWriter.write error
EVEN WHEN I'M USING JSC)

On Nov 11, 5:57 pm, Tom Robinson <tlrobin...@gmail.com> wrote:
> If you're talking about the "hang at CPArray+KVO" problem, the problem  
> was Francisco had built a custom version of shrinksafe using Java 1.6.  
> This commit should have fixed it:
>
> http://github.com/280north/cappuccino/commit/77c74412dc4685ddde879bfe...
Reply all
Reply to author
Forward
0 new messages