Comment #3 on issue 1446 by HairyOne42: V8 build errors, and Date() faulty
http://code.google.com/p/v8/issues/detail?id=1446
DNS320, Fonzplug, NodeJS, Funplug, (DNS323, my original target) also
appears to apply to sheeva plug!!
(as a matter of interest 323 takes about 7.5 hours to compile, whilst 320
takes 1hr, 3 minutes!!)
(also compile on 1G8 Intel Linux (Debian) takes about 15 minutes)
========================
NOTE: on fonz plug - you need the following installed:
binutils
kernel-headers
uclibc
gcc
make
gettext
patch
bison
flex
autoconf
automake
=======================
then you can:
exported TMPDIR=/ffp/tmp (need this to put tmp files on HD not
memory!)
export CC='gcc -march=armv5te -mfloat-abi=soft -fno-tree-sink -O0'
export CCFLAGS='-march=armv5te -mfloat-abi=soft -fno-tree-sink -O0'
export CXX='g++ -march=armv5te -mfloat-abi=soft -fno-tree-sink -O0'
export GCC='-march=armv5te -mfloat-abi=soft -fno-tree-sink -O0'
./configure --prefix=/ffp --without-snapshot
......
make
.............
make install
----------------------------
Notes:
----------------------------
I have had experience with NodeJS 0.4.9 - so I have kept using it - read on
as to why!!
actually compiles without error!!
BUT!
when run - Illegal instruction - pops up
------
this appears to be because V8 is EXPECTED to be compiled on a host machine
that is NOT an arm!!
see below for references I've found: (It has taken me 6 months to find all
these)
Someone, somewhere has decided that running on ARM is an embedded
environment, therefore you won't ever compile on it!!
Can someone with authority fix this!!!!!!!!
The fact that I can get a clean compile, says it can work, but at least V8
doesn't want us too????
original instructions:
https://github.com/joyent/node/wiki/Installation
What else I have found:
http://code.google.com/p/v8/wiki/CrossCompilingForARM
http://code.google.com/p/v8/issues/detail?id=1632&q=vfp%20off&colspec=ID%20Type%20Status%20Priority%20Owner%20Summary%20HW%20OS%20Area%20Stars
https://github.com/joyent/node/issues/1566
http://fastr.github.com/articles/Node.js-on-OpenEmbedded.html
http://freebsd.1045724.n5.nabble.com/problems-with-cvsup-on-FreeBSD-9-snapshot-201101-td4491053.html
http://code.google.com/p/v8/issues/detail?id=1446
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dai0133c/index.html
http://infocenter.arm.com/help/topic/com.arm.doc.qrc0007e/QRC0007_VFP.pdf
and from this article, the minimum installs of fonz stuff that needs to be
pre-installed:
http://www.shadowandy.net/2008/08/adding-compiling-capabilities-to-your-dns-323.htm
DNS323 - wiki site (new one??!!)
http://dns323.kood.org/dns-320
compiler options:
http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
debugging options:
http://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html
Interest:
http://itrs.tw/wiki/Code_Sourcery_G%2B%2B_Lite
-------
why 0.4.9, and not 0.6.6?
6.6 may be crapping out in same place but error says EABI error, compiler
with Fonz doesn't understand EABI.
But I think error is same - in 4.9 the error says 'illegal instruction',
I think the V8 guys (or node guys) have relabelled the error descriptor to
EABI, I don't know enough to trace problem.
There are heaps of other switches available for the comilers - I have given
up trying them all (other people seem to have found the same problem, they
are MUCH
more knowledgable than I am, so I am going to assume that they have tried
all the available switches that could make a difference).
As a matter of interest the V8 compile only uses the CXXFLAGS switch to
compile with, whilst the rest of NodeJS seems to use the others I have
labelled!!
-----
Also note that in order to get snapshot running it points to /tmp - no
matter what I do, -
I ended up moving /tmp to /tmp1, and ln -s /tmp /ffp/tmp
ie
mv /tmp /tmp1
ln -s /tmp /ffp/tmp
------
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev