Error installing in ubuntu/arm/odroid u3

43 views
Skip to first unread message

Jorge

unread,
Mar 19, 2014, 11:59:24 AM3/19/14
to sil...@googlegroups.com
$ uname -a
Linux odroid 3.8.13.16 #1 SMP PREEMPT Tue Feb 11 10:47:21 BRST 2014 armv7l armv7l armv7l GNU/Linux


It seems to be trying to build v8 for IA32...

Can you help me, please?

Thank you,
-- 
( Jorge )();

Michael Schwartz

unread,
Mar 19, 2014, 12:39:15 PM3/19/14
to sil...@googlegroups.com
I have never tried to build SilkJS for an ARM target CPU.  The makefile is selecting ia32 target for lack of identifying x64 target.

You can try to hack the makefiles to target ARM and see if it builds.  

This is the file to modify:

I think you only have to add a couple of lines.  Lines 28-34 select the v8 library to be used.  You would start by adding a line for your ARM target.  I don't have an ARM system to test this out on, sorry.

You may also have to set ARCH on line 1 to the appropriate ARM value.

Regards
--
You received this message because you are subscribed to the Google Groups "SilkJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to silkjs+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Jorge Chamorro

unread,
Mar 20, 2014, 8:11:30 AM3/20/14
to sil...@googlegroups.com
On 19/03/2014, at 17:39, Michael Schwartz wrote:

> I have never tried to build SilkJS for an ARM target CPU. The makefile is selecting ia32 target for lack of identifying x64 target.
>
> You can try to hack the makefiles to target ARM and see if it builds.
>
> This is the file to modify:
> https://github.com/mschwartz/SilkJS/blob/master/src/Makefile
>
> I think you only have to add a couple of lines. Lines 28-34 select the v8 library to be used. You would start by adding a line for your ARM target. I don't have an ARM system to test this out on, sorry.
>
> You may also have to set ARCH on line 1 to the appropriate ARM value.
>
> Regards


Thank you!

So I've done this changes:

<https://github.com/xk/SilkJS/commit/aec0453cc340adbb634560fb4b346a3bb0e100d4>

and now I get this errors:

<http://pastebin.com/28E0SKJb>

because -I think- I'm running into this issue:

<https://code.google.com/p/v8/issues/detail?id=2149>

It seems a "-Wno-unused-local-typedefs" compiler flag serves to work-around the issue, but honestly, I have no idea where to put it :-)

Any ideas?

Regards,
--
( Jorge )();

Mike Schwartz

unread,
Mar 20, 2014, 9:22:59 AM3/20/14
to sil...@googlegroups.com
In the original src/Makefile on line 44 is a line that reads:

CFLAGS = -fexceptions -fomit-frame-pointer -fdata-sections -ffunction-sections -fno-strict-aliasing -fvisibility=hidden -Wall -W -Wno-ignored-qualifiers -Wno-unused-function -Wno-unused-parameter -Wnon-virtual-dtor -m$(ARCH) -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -fno-strict-aliasing -DNEW_MEMCACHED

Put -Wno-unused-local-typedefs after  -Wno-ignored-qualifiers


-- 
Mike Schwartz

Jorge Chamorro

unread,
Mar 20, 2014, 10:35:55 AM3/20/14
to sil...@googlegroups.com
On 20/03/2014, at 14:22, Mike Schwartz wrote:

> In the original src/Makefile on line 44 is a line that reads:
>
> CFLAGS = -fexceptions -fomit-frame-pointer -fdata-sections -ffunction-sections -fno-strict-aliasing -fvisibility=hidden -Wall -W -Wno-ignored-qualifiers -Wno-unused-function -Wno-unused-parameter -Wnon-virtual-dtor -m$(ARCH) -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -fno-strict-aliasing -DNEW_MEMCACHED
>
> Put -Wno-unused-local-typedefs after -Wno-ignored-qualifiers

Nope, that doesn't do the trick :-(

<http://pastebin.com/hD8zrCPG>

ssh?

--
( Jorge )();
Reply all
Reply to author
Forward
0 new messages