Error on an Amazon Micro Instance

4 views
Skip to first unread message

cyx

unread,
Sep 9, 2011, 3:13:19 PM9/9/11
to bandicoot
Hi,

I tried compiling bandicoot edge on Ubuntu 11.04, AWS Micro instance.
Compilation worked great. Problem was, when I was trying to start up
bandicoot, I got this:


[T] 2011-09-09 19:02:04 UTC, started source=data/tag.b, state=data/
volume/tag, port=43992
net:24: number of primitive parameters exceeds the maximum (64)

Any ideas?

Regards,
cyx

Ostap Cherkashin

unread,
Sep 10, 2011, 12:15:49 PM9/10/11
to band...@googlegroups.com
It looks like on line 24 of data/tag.b there is a function declaration which takes more than 64 primitive parameters. You can increase this number in config.h (MAX_ATTRS), but don't forget to rerun the tests to see if everything works fine (./ctl pack && ./ctl test). As the source code is received over the network from transaction manager (it is the same approach for standalone and distributed mode), the error message says net:line.number:error.message, instead of the actual file name, which could be a bit confusing.

Hope this helps.

- Ostap

Michel Martens

unread,
Sep 10, 2011, 1:45:18 PM9/10/11
to band...@googlegroups.com
Hey there,

On Sat, Sep 10, 2011 at 6:15 PM, Ostap Cherkashin <os...@bandilab.org> wrote:
> It looks like on line 24 of data/tag.b there is a function declaration which takes more than 64 primitive parameters. You can increase this number in config.h (MAX_ATTRS), but don't forget to rerun the tests to see if everything works fine (./ctl pack && ./ctl test). As the source code is received over the network from transaction manager (it is the same approach for standalone and distributed mode), the error message says net:line.number:error.message, instead of the actual file name, which could be a bit confusing.

This is how I fixed it:

-fn related(_obj: string): Object {
- t1 := taggings select(obj == _obj);
+fn related(o: Object): Object {
+ t1 := taggings * o project(obj);
t2 := taggings - t1;

What I find weird is that it works in other machines, but not in that
particular one. The function received one primitive parameter, and now
I changed it to receive an object instead. My original reasoning was
that using a primitive parameter plus select would be better style.

Julius Chrobak

unread,
Sep 12, 2011, 2:49:45 AM9/12/11
to band...@googlegroups.com
hi,

are you using bandicoot built from a master branch? There is a bug which could cause this problem and it is fixed in another, in progress, branch called 'processor'. I'd appreciate if you could try to build bandicoot from the 'processor' branch and see whether the program with the primitive parameter works or not.

Michel Martens

unread,
Sep 14, 2011, 5:58:19 AM9/14/11
to band...@googlegroups.com
On Mon, Sep 12, 2011 at 8:49 AM, Julius Chrobak <ju...@bandilab.org> wrote:
hi,

are you using bandicoot built from a master branch? There is a bug which could cause this problem and it is fixed in another, in progress, branch called 'processor'. I'd appreciate if you could try to build bandicoot from the 'processor' branch and see whether the program with the primitive parameter works or not.

Yes, we are using bandicoot from master. I will try the other branch at some point, thanks!
Reply all
Reply to author
Forward
0 new messages