Trying to compile on Ubuntu 9.10

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Trying to compile on Ubuntu 9.10

danoyoung
Hello all,

I'm trying to install the latest download of riak and am getting the
following error msg after : make all rel

.....
.....
.....
Compiling c_src/spidermonkey_drv.c
./rebar compile generate
==> protobuffs (compile)
==> mochiweb (compile)
==> webmachine (compile)
==> luke (compile)
==> riak (compile)
==> erlang_js (compile)
Running c_src/build_driver_deps.sh
~/riak/apps/erlang_js/c_src ~/riak/apps/erlang_js
make[1]: Entering directory `/root/riak/apps/erlang_js/c_src'
mkdir: cannot create directory `deps/js': File exists
make[1]: *** [deps/js] Error 1
make[1]: Leaving directory `/root/riak/apps/erlang_js/c_src'
ERROR: c_src/build_driver_deps.sh failed with error: 2
make: *** [rel] Error 1
root@dyoung-ubuntu:~/riak#


I also tried just make rel and got:

....
....
....
s.o Linux_All_OPT.OBJ/libjs.a  -lm -L../../nspr_release/dist/lib -lnspr4 \
            editline/Linux_All_OPT.OBJ/libedit.a
make[3]: `Linux_All_OPT.OBJ/jsautocfg.h' is up to date.
make[3]: `Linux_All_OPT.OBJ/jscpucfg' is up to date.
make[3]: `Linux_All_OPT.OBJ/jscpucfg.o' is up to date.
make[3]: Leaving directory `/root/riak/apps/erlang_js/c_src/deps/js/src'
make[2]: Leaving directory `/root/riak/apps/erlang_js/c_src/deps/js/src'
make[1]: Leaving directory `/root/riak/apps/erlang_js/c_src'
Compiling c_src/driver_comm.c
Compiling c_src/spidermonkey.c
c_src/spidermonkey.c: In function ‘sm_initialize’:
c_src/spidermonkey.c:126: warning: passing argument 4 of
‘JS_DefineFunction’ from incompatible pointer type
c_src/include/js/jsapi.h:1905: note: expected ‘JSNative’ but argument
is of type ‘JSBool (**)(struct JSContext *, struct JSObject *, uintN,
jsval *, jsval *)’
Compiling c_src/spidermonkey_drv.c
==> rel (generate)
root@dyoung-ubuntu:~/riak#


Any ideas?

Regards,

Dano

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Fwd: Trying to compile on Ubuntu 9.10

Richard Bucker
The first thing you need to do:

sudo apt-get install libc6-dev-i386


The second thing:

>
> AMD64 platforms seem to be a particular pain point for Spidermonkey and NSPR. For now, you'll need to edit the makefile  in erlang_js/c_src to get this to compile. Edit line 13 from this:
>
> @cd deps/nspr_release;../mozilla/nsprpub/configure --disable-debug --enable-optimize;make
>
> to this:
>
> @cd deps/nspr_release;../mozilla/nsprpub/configure --disable-debug --enable-optimize --enable-64bit;make
>
> For whatever reason, NSPR doesn't seem to detect AMD64 as a 64-bit platform. Apologies again for the hacky build process. We are working on improving the build and should have a smoother process for next release.
>


+++
Richard Bucker
http://www.bucker.us
LinkedIn: http://www.linkedin.com/in/richardbucker
+++
Florida Freelance IT LLC
General/Custom Hardware & Software Solutions
http://www.fl2it.com
+++


---------- Forwarded message ----------
From: Dan Young <[hidden email]>
Date: Thu, Feb 11, 2010 at 11:35 PM
Subject: Trying to compile on Ubuntu 9.10
To: [hidden email]


Hello all,

I'm trying to install the latest download of riak and am getting the
following error msg after : make all rel

.....
.....
.....
Compiling c_src/spidermonkey_drv.c
./rebar compile generate
==> protobuffs (compile)
==> mochiweb (compile)
==> webmachine (compile)
==> luke (compile)
==> riak (compile)
==> erlang_js (compile)
Running c_src/build_driver_deps.sh
~/riak/apps/erlang_js/c_src ~/riak/apps/erlang_js
make[1]: Entering directory `/root/riak/apps/erlang_js/c_src'
mkdir: cannot create directory `deps/js': File exists
make[1]: *** [deps/js] Error 1
make[1]: Leaving directory `/root/riak/apps/erlang_js/c_src'
ERROR: c_src/build_driver_deps.sh failed with error: 2
make: *** [rel] Error 1
root@dyoung-ubuntu:~/riak#


I also tried just make rel and got:

....
....
....
s.o Linux_All_OPT.OBJ/libjs.a  -lm -L../../nspr_release/dist/lib -lnspr4 \
           editline/Linux_All_OPT.OBJ/libedit.a
make[3]: `Linux_All_OPT.OBJ/jsautocfg.h' is up to date.
make[3]: `Linux_All_OPT.OBJ/jscpucfg' is up to date.
make[3]: `Linux_All_OPT.OBJ/jscpucfg.o' is up to date.
make[3]: Leaving directory `/root/riak/apps/erlang_js/c_src/deps/js/src'
make[2]: Leaving directory `/root/riak/apps/erlang_js/c_src/deps/js/src'
make[1]: Leaving directory `/root/riak/apps/erlang_js/c_src'
Compiling c_src/driver_comm.c
Compiling c_src/spidermonkey.c
c_src/spidermonkey.c: In function ‘sm_initialize’:
c_src/spidermonkey.c:126: warning: passing argument 4 of
‘JS_DefineFunction’ from incompatible pointer type
c_src/include/js/jsapi.h:1905: note: expected ‘JSNative’ but argument
is of type ‘JSBool (**)(struct JSContext *, struct JSObject *, uintN,
jsval *, jsval *)’
Compiling c_src/spidermonkey_drv.c
==> rel (generate)
root@dyoung-ubuntu:~/riak#


Any ideas?

Regards,

Dano

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Trying to compile on Ubuntu 9.10

dreverri
I ran into this same issue. I could not get riak-0.8 to compile but I
was able to get tip to compile.



On Fri, Feb 12, 2010 at 3:03 AM, Richard Bucker <[hidden email]> wrote:

> The first thing you need to do:
> sudo apt-get install libc6-dev-i386
>
>
> The second thing:
>>
>> AMD64 platforms seem to be a particular pain point for Spidermonkey and
>> NSPR. For now, you'll need to edit the makefile  in erlang_js/c_src to get
>> this to compile. Edit line 13 from this:
>>
>> @cd deps/nspr_release;../mozilla/nsprpub/configure --disable-debug
>> --enable-optimize;make
>>
>> to this:
>>
>> @cd deps/nspr_release;../mozilla/nsprpub/configure --disable-debug
>> --enable-optimize --enable-64bit;make
>>
>> For whatever reason, NSPR doesn't seem to detect AMD64 as a 64-bit
>> platform. Apologies again for the hacky build process. We are working on
>> improving the build and should have a smoother process for next release.
>>
>
> +++
> Richard Bucker
> http://www.bucker.us
> LinkedIn: http://www.linkedin.com/in/richardbucker
> +++
> Florida Freelance IT LLC
> General/Custom Hardware & Software Solutions
> http://www.fl2it.com
> +++
>
>
> ---------- Forwarded message ----------
> From: Dan Young <[hidden email]>
> Date: Thu, Feb 11, 2010 at 11:35 PM
> Subject: Trying to compile on Ubuntu 9.10
> To: [hidden email]
>
>
> Hello all,
>
> I'm trying to install the latest download of riak and am getting the
> following error msg after : make all rel
>
> .....
> .....
> .....
> Compiling c_src/spidermonkey_drv.c
> ./rebar compile generate
> ==> protobuffs (compile)
> ==> mochiweb (compile)
> ==> webmachine (compile)
> ==> luke (compile)
> ==> riak (compile)
> ==> erlang_js (compile)
> Running c_src/build_driver_deps.sh
> ~/riak/apps/erlang_js/c_src ~/riak/apps/erlang_js
> make[1]: Entering directory `/root/riak/apps/erlang_js/c_src'
> mkdir: cannot create directory `deps/js': File exists
> make[1]: *** [deps/js] Error 1
> make[1]: Leaving directory `/root/riak/apps/erlang_js/c_src'
> ERROR: c_src/build_driver_deps.sh failed with error: 2
> make: *** [rel] Error 1
> root@dyoung-ubuntu:~/riak#
>
>
> I also tried just make rel and got:
>
> ....
> ....
> ....
> s.o Linux_All_OPT.OBJ/libjs.a  -lm -L../../nspr_release/dist/lib -lnspr4 \
>            editline/Linux_All_OPT.OBJ/libedit.a
> make[3]: `Linux_All_OPT.OBJ/jsautocfg.h' is up to date.
> make[3]: `Linux_All_OPT.OBJ/jscpucfg' is up to date.
> make[3]: `Linux_All_OPT.OBJ/jscpucfg.o' is up to date.
> make[3]: Leaving directory `/root/riak/apps/erlang_js/c_src/deps/js/src'
> make[2]: Leaving directory `/root/riak/apps/erlang_js/c_src/deps/js/src'
> make[1]: Leaving directory `/root/riak/apps/erlang_js/c_src'
> Compiling c_src/driver_comm.c
> Compiling c_src/spidermonkey.c
> c_src/spidermonkey.c: In function ‘sm_initialize’:
> c_src/spidermonkey.c:126: warning: passing argument 4 of
> ‘JS_DefineFunction’ from incompatible pointer type
> c_src/include/js/jsapi.h:1905: note: expected ‘JSNative’ but argument
> is of type ‘JSBool (**)(struct JSContext *, struct JSObject *, uintN,
> jsval *, jsval *)’
> Compiling c_src/spidermonkey_drv.c
> ==> rel (generate)
> root@dyoung-ubuntu:~/riak#
>
>
> Any ideas?
>
> Regards,
>
> Dano
>
> _______________________________________________
> riak-users mailing list
> [hidden email]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
> _______________________________________________
> riak-users mailing list
> [hidden email]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Trying to compile on Ubuntu 9.10

danoyoung
In reply to this post by Richard Bucker
Looks like I already have libc6-dev/libc6 installed. I don't believe
the AMD64 is applicable since I'm running on 32 Intel.  Also this line
isn't in my Makefile. Any other ideas anyone?

Regards,

Dan

On Fri, Feb 12, 2010 at 4:03 AM, Richard Bucker <[hidden email]> wrote:

> The first thing you need to do:
> sudo apt-get install libc6-dev-i386
>
>
> The second thing:
>>
>> AMD64 platforms seem to be a particular pain point for Spidermonkey and
>> NSPR. For now, you'll need to edit the makefile  in erlang_js/c_src to get
>> this to compile. Edit line 13 from this:
>>
>> @cd deps/nspr_release;../mozilla/nsprpub/configure --disable-debug
>> --enable-optimize;make
>>
>> to this:
>>
>> @cd deps/nspr_release;../mozilla/nsprpub/configure --disable-debug
>> --enable-optimize --enable-64bit;make
>>
>> For whatever reason, NSPR doesn't seem to detect AMD64 as a 64-bit
>> platform. Apologies again for the hacky build process. We are working on
>> improving the build and should have a smoother process for next release.
>>
>
> +++
> Richard Bucker
> http://www.bucker.us
> LinkedIn: http://www.linkedin.com/in/richardbucker
> +++
> Florida Freelance IT LLC
> General/Custom Hardware & Software Solutions
> http://www.fl2it.com
> +++
>
>
> ---------- Forwarded message ----------
> From: Dan Young <[hidden email]>
> Date: Thu, Feb 11, 2010 at 11:35 PM
> Subject: Trying to compile on Ubuntu 9.10
> To: [hidden email]
>
>
> Hello all,
>
> I'm trying to install the latest download of riak and am getting the
> following error msg after : make all rel
>
> .....
> .....
> .....
> Compiling c_src/spidermonkey_drv.c
> ./rebar compile generate
> ==> protobuffs (compile)
> ==> mochiweb (compile)
> ==> webmachine (compile)
> ==> luke (compile)
> ==> riak (compile)
> ==> erlang_js (compile)
> Running c_src/build_driver_deps.sh
> ~/riak/apps/erlang_js/c_src ~/riak/apps/erlang_js
> make[1]: Entering directory `/root/riak/apps/erlang_js/c_src'
> mkdir: cannot create directory `deps/js': File exists
> make[1]: *** [deps/js] Error 1
> make[1]: Leaving directory `/root/riak/apps/erlang_js/c_src'
> ERROR: c_src/build_driver_deps.sh failed with error: 2
> make: *** [rel] Error 1
> root@dyoung-ubuntu:~/riak#
>
>
> I also tried just make rel and got:
>
> ....
> ....
> ....
> s.o Linux_All_OPT.OBJ/libjs.a  -lm -L../../nspr_release/dist/lib -lnspr4 \
>            editline/Linux_All_OPT.OBJ/libedit.a
> make[3]: `Linux_All_OPT.OBJ/jsautocfg.h' is up to date.
> make[3]: `Linux_All_OPT.OBJ/jscpucfg' is up to date.
> make[3]: `Linux_All_OPT.OBJ/jscpucfg.o' is up to date.
> make[3]: Leaving directory `/root/riak/apps/erlang_js/c_src/deps/js/src'
> make[2]: Leaving directory `/root/riak/apps/erlang_js/c_src/deps/js/src'
> make[1]: Leaving directory `/root/riak/apps/erlang_js/c_src'
> Compiling c_src/driver_comm.c
> Compiling c_src/spidermonkey.c
> c_src/spidermonkey.c: In function ‘sm_initialize’:
> c_src/spidermonkey.c:126: warning: passing argument 4 of
> ‘JS_DefineFunction’ from incompatible pointer type
> c_src/include/js/jsapi.h:1905: note: expected ‘JSNative’ but argument
> is of type ‘JSBool (**)(struct JSContext *, struct JSObject *, uintN,
> jsval *, jsval *)’
> Compiling c_src/spidermonkey_drv.c
> ==> rel (generate)
> root@dyoung-ubuntu:~/riak#
>
>
> Any ideas?
>
> Regards,
>
> Dano
>
> _______________________________________________
> riak-users mailing list
> [hidden email]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
> _______________________________________________
> riak-users mailing list
> [hidden email]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Trying to compile on Ubuntu 9.10

Ryan Tilder
Pull from the tip.  There was a small mistake and the latest rebar updates didn't get included in the most recent merge.

--Ryan


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Trying to compile on Ubuntu 9.10

Ryan Tilder
Just do:   make clean rel

The rel Makefile target has the all target as a dependency and it seems that a few directories in the riak/apps/erlang_js getting handled quite properly.

--Ryan

On Fri, Feb 12, 2010 at 11:57 AM, Dan Young <[hidden email]> wrote:
hg clone http://hg.basho.com/riak/
cd riak
make all rel

Now I'm getting:



....
....
Compiling c_src/spidermonkey.c
c_src/spidermonkey.c: In function ‘sm_initialize’:
c_src/spidermonkey.c:126: warning: passing argument 4 of
‘JS_DefineFunction’ from incompatible pointer type
c_src/include/js/jsapi.h:1905: note: expected ‘JSNative’ but argument
is of type ‘JSBool (**)(struct JSContext *, struct JSObject *, uintN,
jsval *, jsval *)’
Compiling c_src/spidermonkey_drv.c
./rebar compile generate
==> protobuffs (compile)
==> mochiweb (compile)
==> webmachine (compile)
==> luke (compile)
==> riak (compile)
==> erlang_js (compile)
Running c_src/build_driver_deps.sh
~/riak/apps/erlang_js/c_src ~/riak/apps/erlang_js
make[1]: Entering directory `/root/riak/apps/erlang_js/c_src'
mkdir: cannot create directory `deps/js': File exists
make[1]: *** [deps/js] Error 1
make[1]: Leaving directory `/root/riak/apps/erlang_js/c_src'
ERROR: c_src/build_driver_deps.sh failed with error: 2
==> rel (generate)
{error_logger,{{2010,2,12},{12,53,57}},crash_report,[[{initial_call,{reltool_server,init,['Argument__1']}},{pid,<0.519.0>},{registered_name,[]},{error_info,{exit,{{badmatch,{'EXIT',{noproc,{gen_server,call,[file_server_2,{read_file_info,"/usr/local/lib/erlang/lib/cosNotification-1.1.12/ebin/CosNotifyComm_StructuredPullSupplier.beam"},infinity]}}}},[{reltool_server,xref_mod,1},{reltool_server,init_mod,4},{lists,map,2},{lists,map,2},{reltool_server,refresh_app,3},{reltool_server,refresh_apps,5},{reltool_server,merge_config,4},{reltool_server,refresh,3}]},[{reltool_server,init,1},{proc_lib,init_p_do_apply,3}]}},{ancestors,[<0.2.0>]},{messages,[{call,<0.2.0>,#Ref<0.0.0.16997>,{get_app,kernel}}]},{links,[<0.2.0>,<0.1062.0>]},{dictionary,[]},{trap_exit,false},{status,running},{heap_size,6765},{stack_size,24},{reductions,204564}],[{neighbour,[{pid,<0.1062.0>},{registered_name,[]},{initial_call,{xref,init,['Argument__1']}},{current_function,{gen_server,loop,6}},{ancestors,[<0.519.0>,<0.2.0>]},{messages,[]},{links,[<0.519.0>]},{dictionary,[]},{trap_exit,false},{status,waiting},{heap_size,987},{stack_size,9},{reductions,1085}]},{neighbour,[{pid,<0.2.0>},{registered_name,[]},{initial_call,{erlang,apply,2}},{current_function,{reltool_utils,call,2}},{ancestors,[]},{messages,[]},{links,[<0.0.0>,<0.519.0>]},{dictionary,[]},{trap_exit,false},{status,waiting},{heap_size,6765},{stack_size,56},{reductions,234905}]}]]}
make: *** [rel] Error 1
root@dyoung-ubuntu:~/riak#


On Fri, Feb 12, 2010 at 12:37 PM, Ryan Tilder <[hidden email]> wrote:
> Pull from the tip.  There was a small mistake and the latest rebar updates
> didn't get included in the most recent merge.
> --Ryan
>


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Trying to compile on Ubuntu 9.10

danoyoung
That worked, thank you.

I did get this @ the end, but it seemed to compile.

Compiling c_src/spidermonkey.c
c_src/spidermonkey.c: In function ‘sm_initialize’:
c_src/spidermonkey.c:126: warning: passing argument 4 of
‘JS_DefineFunction’ from incompatible pointer type
c_src/include/js/jsapi.h:1905: note: expected ‘JSNative’ but argument
is of type ‘JSBool (**)(struct JSContext *, struct JSObject *, uintN,
jsval *, jsval *)’
Compiling c_src/spidermonkey_drv.c
==> rel (generate)


On Fri, Feb 12, 2010 at 1:01 PM, Ryan Tilder <[hidden email]> wrote:

> Just do:   make clean rel
> The rel Makefile target has the all target as a dependency and it seems that
> a few directories in the riak/apps/erlang_js getting handled quite properly.
> --Ryan
>
> On Fri, Feb 12, 2010 at 11:57 AM, Dan Young <[hidden email]> wrote:
>>
>> hg clone http://hg.basho.com/riak/
>> cd riak
>> make all rel
>>
>> Now I'm getting:
>>
>>
>>
>> ....
>> ....
>> Compiling c_src/spidermonkey.c
>> c_src/spidermonkey.c: In function ‘sm_initialize’:
>> c_src/spidermonkey.c:126: warning: passing argument 4 of
>> ‘JS_DefineFunction’ from incompatible pointer type
>> c_src/include/js/jsapi.h:1905: note: expected ‘JSNative’ but argument
>> is of type ‘JSBool (**)(struct JSContext *, struct JSObject *, uintN,
>> jsval *, jsval *)’
>> Compiling c_src/spidermonkey_drv.c
>> ./rebar compile generate
>> ==> protobuffs (compile)
>> ==> mochiweb (compile)
>> ==> webmachine (compile)
>> ==> luke (compile)
>> ==> riak (compile)
>> ==> erlang_js (compile)
>> Running c_src/build_driver_deps.sh
>> ~/riak/apps/erlang_js/c_src ~/riak/apps/erlang_js
>> make[1]: Entering directory `/root/riak/apps/erlang_js/c_src'
>> mkdir: cannot create directory `deps/js': File exists
>> make[1]: *** [deps/js] Error 1
>> make[1]: Leaving directory `/root/riak/apps/erlang_js/c_src'
>> ERROR: c_src/build_driver_deps.sh failed with error: 2
>> ==> rel (generate)
>>
>> {error_logger,{{2010,2,12},{12,53,57}},crash_report,[[{initial_call,{reltool_server,init,['Argument__1']}},{pid,<0.519.0>},{registered_name,[]},{error_info,{exit,{{badmatch,{'EXIT',{noproc,{gen_server,call,[file_server_2,{read_file_info,"/usr/local/lib/erlang/lib/cosNotification-1.1.12/ebin/CosNotifyComm_StructuredPullSupplier.beam"},infinity]}}}},[{reltool_server,xref_mod,1},{reltool_server,init_mod,4},{lists,map,2},{lists,map,2},{reltool_server,refresh_app,3},{reltool_server,refresh_apps,5},{reltool_server,merge_config,4},{reltool_server,refresh,3}]},[{reltool_server,init,1},{proc_lib,init_p_do_apply,3}]}},{ancestors,[<0.2.0>]},{messages,[{call,<0.2.0>,#Ref<0.0.0.16997>,{get_app,kernel}}]},{links,[<0.2.0>,<0.1062.0>]},{dictionary,[]},{trap_exit,false},{status,running},{heap_size,6765},{stack_size,24},{reductions,204564}],[{neighbour,[{pid,<0.1062.0>},{registered_name,[]},{initial_call,{xref,init,['Argument__1']}},{current_function,{gen_server,loop,6}},{ancestors,[<0.519.0>,<0.2.0>]},{messages,[]},{links,[<0.519.0>]},{dictionary,[]},{trap_exit,false},{status,waiting},{heap_size,987},{stack_size,9},{reductions,1085}]},{neighbour,[{pid,<0.2.0>},{registered_name,[]},{initial_call,{erlang,apply,2}},{current_function,{reltool_utils,call,2}},{ancestors,[]},{messages,[]},{links,[<0.0.0>,<0.519.0>]},{dictionary,[]},{trap_exit,false},{status,waiting},{heap_size,6765},{stack_size,56},{reductions,234905}]}]]}
>> make: *** [rel] Error 1
>> root@dyoung-ubuntu:~/riak#
>>
>>
>> On Fri, Feb 12, 2010 at 12:37 PM, Ryan Tilder <[hidden email]> wrote:
>> > Pull from the tip.  There was a small mistake and the latest rebar
>> > updates
>> > didn't get included in the most recent merge.
>> > --Ryan
>> >
>
>

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Trying to compile on Ubuntu 9.10

Kevin Smith-5
That's an issue with Spidermonkey's API, I think. I'm working on erlang_js pretty heavily right now. I'll take a look and see about fixing that.

--Kevin
On Feb 12, 2010, at 3:06 PM, Dan Young wrote:

> That worked, thank you.
>
> I did get this @ the end, but it seemed to compile.
>
> Compiling c_src/spidermonkey.c
> c_src/spidermonkey.c: In function ‘sm_initialize’:
> c_src/spidermonkey.c:126: warning: passing argument 4 of
> ‘JS_DefineFunction’ from incompatible pointer type
> c_src/include/js/jsapi.h:1905: note: expected ‘JSNative’ but argument
> is of type ‘JSBool (**)(struct JSContext *, struct JSObject *, uintN,
> jsval *, jsval *)’
> Compiling c_src/spidermonkey_drv.c
> ==> rel (generate)
>
>
> On Fri, Feb 12, 2010 at 1:01 PM, Ryan Tilder <[hidden email]> wrote:
>> Just do:   make clean rel
>> The rel Makefile target has the all target as a dependency and it seems that
>> a few directories in the riak/apps/erlang_js getting handled quite properly.
>> --Ryan
>>
>> On Fri, Feb 12, 2010 at 11:57 AM, Dan Young <[hidden email]> wrote:
>>>
>>> hg clone http://hg.basho.com/riak/
>>> cd riak
>>> make all rel
>>>
>>> Now I'm getting:
>>>
>>>
>>>
>>> ....
>>> ....
>>> Compiling c_src/spidermonkey.c
>>> c_src/spidermonkey.c: In function ‘sm_initialize’:
>>> c_src/spidermonkey.c:126: warning: passing argument 4 of
>>> ‘JS_DefineFunction’ from incompatible pointer type
>>> c_src/include/js/jsapi.h:1905: note: expected ‘JSNative’ but argument
>>> is of type ‘JSBool (**)(struct JSContext *, struct JSObject *, uintN,
>>> jsval *, jsval *)’
>>> Compiling c_src/spidermonkey_drv.c
>>> ./rebar compile generate
>>> ==> protobuffs (compile)
>>> ==> mochiweb (compile)
>>> ==> webmachine (compile)
>>> ==> luke (compile)
>>> ==> riak (compile)
>>> ==> erlang_js (compile)
>>> Running c_src/build_driver_deps.sh
>>> ~/riak/apps/erlang_js/c_src ~/riak/apps/erlang_js
>>> make[1]: Entering directory `/root/riak/apps/erlang_js/c_src'
>>> mkdir: cannot create directory `deps/js': File exists
>>> make[1]: *** [deps/js] Error 1
>>> make[1]: Leaving directory `/root/riak/apps/erlang_js/c_src'
>>> ERROR: c_src/build_driver_deps.sh failed with error: 2
>>> ==> rel (generate)
>>>
>>> {error_logger,{{2010,2,12},{12,53,57}},crash_report,[[{initial_call,{reltool_server,init,['Argument__1']}},{pid,<0.519.0>},{registered_name,[]},{error_info,{exit,{{badmatch,{'EXIT',{noproc,{gen_server,call,[file_server_2,{read_file_info,"/usr/local/lib/erlang/lib/cosNotification-1.1.12/ebin/CosNotifyComm_StructuredPullSupplier.beam"},infinity]}}}},[{reltool_server,xref_mod,1},{reltool_server,init_mod,4},{lists,map,2},{lists,map,2},{reltool_server,refresh_app,3},{reltool_server,refresh_apps,5},{reltool_server,merge_config,4},{reltool_server,refresh,3}]},[{reltool_server,init,1},{proc_lib,init_p_do_apply,3}]}},{ancestors,[<0.2.0>]},{messages,[{call,<0.2.0>,#Ref<0.0.0.16997>,{get_app,kernel}}]},{links,[<0.2.0>,<0.1062.0>]},{dictionary,[]},{trap_exit,false},{status,running},{heap_size,6765},{stack_size,24},{reductions,204564}],[{neighbour,[{pid,<0.1062.0>},{registered_name,[]},{initial_call,{xref,init,['Argument__1']}},{current_function,{gen_server,loop,6}},{ancestors,[<0.519.0>,<0.2.0>]},{messages,[]},{links,[<0.519.0>]},{dictionary,[]},{trap_exit,false},{status,waiting},{heap_size,987},{stack_size,9},{reductions,1085}]},{neighbour,[{pid,<0.2.0>},{registered_name,[]},{initial_call,{erlang,apply,2}},{current_function,{reltool_utils,call,2}},{ancestors,[]},{messages,[]},{links,[<0.0.0>,<0.519.0>]},{dictionary,[]},{trap_exit,false},{status,waiting},{heap_size,6765},{stack_size,56},{reductions,234905}]}]]}
>>> make: *** [rel] Error 1
>>> root@dyoung-ubuntu:~/riak#
>>>
>>>
>>> On Fri, Feb 12, 2010 at 12:37 PM, Ryan Tilder <[hidden email]> wrote:
>>>> Pull from the tip.  There was a small mistake and the latest rebar
>>>> updates
>>>> didn't get included in the most recent merge.
>>>> --Ryan
>>>>
>>
>>
>
> _______________________________________________
> riak-users mailing list
> [hidden email]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Trying to compile on Ubuntu 9.10

Sean Cribbs
In reply to this post by danoyoung
Kevin warned me about that a while ago - it's just an unguarded pointer
typecast warning and doesn't prevent anything from working.

Sean

On 2/12/10 3:06 PM, Dan Young wrote:

> That worked, thank you.
>
> I did get this @ the end, but it seemed to compile.
>
> Compiling c_src/spidermonkey.c
> c_src/spidermonkey.c: In function ‘sm_initialize’:
> c_src/spidermonkey.c:126: warning: passing argument 4 of
> ‘JS_DefineFunction’ from incompatible pointer type
> c_src/include/js/jsapi.h:1905: note: expected ‘JSNative’ but argument
> is of type ‘JSBool (**)(struct JSContext *, struct JSObject *, uintN,
> jsval *, jsval *)’
> Compiling c_src/spidermonkey_drv.c
> ==>  rel (generate)
>
>
> On Fri, Feb 12, 2010 at 1:01 PM, Ryan Tilder<[hidden email]>  wrote:
>    
>> Just do:   make clean rel
>> The rel Makefile target has the all target as a dependency and it seems that
>> a few directories in the riak/apps/erlang_js getting handled quite properly.
>> --Ryan
>>
>> On Fri, Feb 12, 2010 at 11:57 AM, Dan Young<[hidden email]>  wrote:
>>      
>>> hg clone http://hg.basho.com/riak/
>>> cd riak
>>> make all rel
>>>
>>> Now I'm getting:
>>>
>>>
>>>
>>> ....
>>> ....
>>> Compiling c_src/spidermonkey.c
>>> c_src/spidermonkey.c: In function ‘sm_initialize’:
>>> c_src/spidermonkey.c:126: warning: passing argument 4 of
>>> ‘JS_DefineFunction’ from incompatible pointer type
>>> c_src/include/js/jsapi.h:1905: note: expected ‘JSNative’ but argument
>>> is of type ‘JSBool (**)(struct JSContext *, struct JSObject *, uintN,
>>> jsval *, jsval *)’
>>> Compiling c_src/spidermonkey_drv.c
>>> ./rebar compile generate
>>> ==>  protobuffs (compile)
>>> ==>  mochiweb (compile)
>>> ==>  webmachine (compile)
>>> ==>  luke (compile)
>>> ==>  riak (compile)
>>> ==>  erlang_js (compile)
>>> Running c_src/build_driver_deps.sh
>>> ~/riak/apps/erlang_js/c_src ~/riak/apps/erlang_js
>>> make[1]: Entering directory `/root/riak/apps/erlang_js/c_src'
>>> mkdir: cannot create directory `deps/js': File exists
>>> make[1]: *** [deps/js] Error 1
>>> make[1]: Leaving directory `/root/riak/apps/erlang_js/c_src'
>>> ERROR: c_src/build_driver_deps.sh failed with error: 2
>>> ==>  rel (generate)
>>>
>>> {error_logger,{{2010,2,12},{12,53,57}},crash_report,[[{initial_call,{reltool_server,init,['Argument__1']}},{pid,<0.519.0>},{registered_name,[]},{error_info,{exit,{{badmatch,{'EXIT',{noproc,{gen_server,call,[file_server_2,{read_file_info,"/usr/local/lib/erlang/lib/cosNotification-1.1.12/ebin/CosNotifyComm_StructuredPullSupplier.beam"},infinity]}}}},[{reltool_server,xref_mod,1},{reltool_server,init_mod,4},{lists,map,2},{lists,map,2},{reltool_server,refresh_app,3},{reltool_server,refresh_apps,5},{reltool_server,merge_config,4},{reltool_server,refresh,3}]},[{reltool_server,init,1},{proc_lib,init_p_do_apply,3}]}},{ancestors,[<0.2.0>]},{messages,[{call,<0.2.0>,#Ref<0.0.0.16997>,{get_app,kernel}}]},{links,[<0.2.0>,<0.1062.0>]},{dictionary,[]},{trap_exit,false},{status,running},{heap_size,6765},{stack_size,24},{reductions,204564}],[{neighbour,[{pid,<0.1062.0>},{registered_name,[]},{initial_call,{xref,init,['Argument__1']}},{current_function,{gen_server,loop,6}},{ancestors,[<0.519.0>,<0.2.0>]},{messages,[]},{links,[<0.519.0>]},{dictionary,[]},{trap_exit,false},{status,waiting},{heap_size,987},{stack_size,9},{reductions,1085}]},{neighbour,[{pid,<0.2.0>},{registered_name,[]},{initial_call,{erlang,apply,2}},{current_function,{reltool_utils,call,2}},{ancestors,[]},{messages,[]},{links,[<0.0.0>,<0.519.0>]},{dictionary,[]},{trap_exit,false},{status,waiting},{heap_size,6765},{stack_size,56},{reductions,234905}]}]]}
>>> make: *** [rel] Error 1
>>> root@dyoung-ubuntu:~/riak#
>>>
>>>
>>> On Fri, Feb 12, 2010 at 12:37 PM, Ryan Tilder<[hidden email]>  wrote:
>>>        
>>>> Pull from the tip.  There was a small mistake and the latest rebar
>>>> updates
>>>> didn't get included in the most recent merge.
>>>> --Ryan
>>>>
>>>>          
>>
>>      
> _______________________________________________
> riak-users mailing list
> [hidden email]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>    



_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Trying to compile on Ubuntu 9.10

Vick Khera
In reply to this post by Kevin Smith-5
On Fri, Feb 12, 2010 at 3:29 PM, Kevin Smith <[hidden email]> wrote:
> That's an issue with Spidermonkey's API, I think. I'm working on erlang_js pretty heavily right now. I'll take a look and see about fixing that.

FWIW this is where I get stuck on my FreeBSD/amd64 build.  I hacked up
erlang_js to use the pre-built packages of libjs and libnspr4 on the
system, but the libjs is version 1.7 not 1.8rc as distributed in riak.
 I'm building using tip as well (I just ran update to ensure I had the
latest of everything).

I'd like to request that if not building the "rel" version, that riak
use the system pre-installed versions of these libraries.  Or make
that an option.

>
> --Kevin
> On Feb 12, 2010, at 3:06 PM, Dan Young wrote:
>
>> That worked, thank you.
>>
>> I did get this @ the end, but it seemed to compile.
>>
>> Compiling c_src/spidermonkey.c
>> c_src/spidermonkey.c: In function ‘sm_initialize’:
>> c_src/spidermonkey.c:126: warning: passing argument 4 of
>> ‘JS_DefineFunction’ from incompatible pointer type
>> c_src/include/js/jsapi.h:1905: note: expected ‘JSNative’ but argument
>> is of type ‘JSBool (**)(struct JSContext *, struct JSObject *, uintN,
>> jsval *, jsval *)’
>> Compiling c_src/spidermonkey_drv.c
>> ==> rel (generate)
>>

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: Trying to compile on Ubuntu 9.10

Kevin Smith-5
The warning shouldn't be fatal to the build if you're using the Spidermonkey code packaged with erlang_js. According to the Mozilla folks, 1.8 is significantly faster than 1.7 which is the main reason we chose 1.8RC1. Our plan are to move to 1.8 final just as soon as it is released. All of this focus on 1.8 is really to prepare us to use the Tracemonkey JIT as soon as it is stabilized and released.

I do apologize for the difficulty of the build. It's certainly not optimal but we are striving to make it better in the next release. We checked in significant build fixes yesterday which seems to address most of the big problems. I've also just pushed several changes which incorporate some of your earlier suggestions to make the build more FreeBSD-friendly. Could you re-pull and try running a build on a fresh tree and let me know how that works for you?

--Kevin
On Feb 12, 2010, at 5:22 PM, Vick Khera wrote:

> On Fri, Feb 12, 2010 at 3:29 PM, Kevin Smith <[hidden email]> wrote:
>> That's an issue with Spidermonkey's API, I think. I'm working on erlang_js pretty heavily right now. I'll take a look and see about fixing that.
>
> FWIW this is where I get stuck on my FreeBSD/amd64 build.  I hacked up
> erlang_js to use the pre-built packages of libjs and libnspr4 on the
> system, but the libjs is version 1.7 not 1.8rc as distributed in riak.
> I'm building using tip as well (I just ran update to ensure I had the
> latest of everything).
>
> I'd like to request that if not building the "rel" version, that riak
> use the system pre-installed versions of these libraries.  Or make
> that an option.
>
>>
>> --Kevin
>> On Feb 12, 2010, at 3:06 PM, Dan Young wrote:
>>
>>> That worked, thank you.
>>>
>>> I did get this @ the end, but it seemed to compile.
>>>
>>> Compiling c_src/spidermonkey.c
>>> c_src/spidermonkey.c: In function ‘sm_initialize’:
>>> c_src/spidermonkey.c:126: warning: passing argument 4 of
>>> ‘JS_DefineFunction’ from incompatible pointer type
>>> c_src/include/js/jsapi.h:1905: note: expected ‘JSNative’ but argument
>>> is of type ‘JSBool (**)(struct JSContext *, struct JSObject *, uintN,
>>> jsval *, jsval *)’
>>> Compiling c_src/spidermonkey_drv.c
>>> ==> rel (generate)
>>>
>
> _______________________________________________
> riak-users mailing list
> [hidden email]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com