v7 icon indicating copy to clipboard operation
v7 copied to clipboard

Cross compile V7 and failed to run on mips-32bit

Open ghost opened this issue 9 years ago • 9 comments

./v7: v7.c: 9223: calc_llen: Assertion `n <= (int) sizeof(len)' failed. Aborted

ghost avatar Mar 12 '16 01:03 ghost

I'm experiencing this problem as well. Can a fix be implemented easily?

goniz avatar Jun 08 '16 20:06 goniz

big endian?

mkmik avatar Jun 08 '16 21:06 mkmik

Yes, big endian.

On Thu, Jun 9, 2016, 00:52 Marko Mikulicic [email protected] wrote:

big endian?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cesanta/v7/issues/547#issuecomment-224740930, or mute the thread https://github.com/notifications/unsubscribe/AA7no7Zn2bXs3WFLUI21R5G_Bn3qvVzGks5qJzmpgaJpZM4HvLja .

goniz avatar Jun 09 '16 03:06 goniz

Is this a 32bit vs 64bit issue? or a big endian vs little endian issue?

goniz avatar Jun 09 '16 18:06 goniz

v7 runs perfectly fine on both 64bit and 32bit. This is a big-endian issue.

dimonomid avatar Jun 09 '16 19:06 dimonomid

running ./v7_mips -e 'print(1);' after commit 91118131613f78037df1c71126e388d1a01ed443 give the following output:

"cannot find exception TypeError Exception creation throws an exception TypeError: cannot read property 'prototype' of undefined Assertion failed: v7_is_object(v) (v7.c: get_object_struct: 17840)"

goniz avatar Jun 10 '16 12:06 goniz

Yes, we're aware of the issues on big-endian platforms; honestly we never addressed them yet. But yes, this thing is important, and we plan to fix it in July 2016 (can't do that earlier due to our local deadlines). We'll report here once we have any progress on that.

dimonomid avatar Jun 10 '16 13:06 dimonomid

Thank you for the quick response, July sounds great! I will be following your progress :+1:

goniz avatar Jun 10 '16 15:06 goniz

Looking forward for the fix :)

goniz avatar Jul 02 '16 13:07 goniz