-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Bug in "Date" object #1131
Comments
FYI, I had to add
to |
Does this still happen with 0.4.10? It's a V8 bug that I'm 95% sure has been fixed. |
./configure still needs a manual patch and I'm unable to build 0.4.10:
|
@jampy could you submit a pull request with the patch for Thanks |
bnoordhuis asked: "Does this still happen with 0.4.10?". Yes: Linux penelope 2.6.32-5-kirkwood #1 Tue Jun 14 23:05:32 UTC 2011 armv5tel
That's a locally compiled version of nodejs built following the hint given at: |
@ed-davies: v0.4.10 ships with V8 3.1.8. That's ancient history by now. Upgrade to v0.6.2, it bundles V8 3.6.6.8. |
Indeed. But somebody coming across this thread might find it useful information that v0.4.10 doesn't fix the problem. Compiling a new version is enough of a pain that people are not likely to do it unless they have a specific reason. v0.6.2 doesn't compile to something sensible for me, for example: Patched SConfigure as per previous versions:
$ ./configure Compile errors to do with snapshot.cc or so. Google google. $ make clean Complies again, apparently clean, but: $ ./node Google, google. Apparently I'm not alone but I didn't see a coherent answer. |
I bet you a sixpack that you need to compile with The number 1 reason for |
Sorry, no sixpack yet. /proc/cpuinfo indeed has no "fpu" string. Doesn't have a "flags:" line at all, in fact:
Just to check, a bit more context around my change to SConstruct:
Might issue #2131 be a better place to discuss this? |
Sure. Keep in mind that you need to compile all of Node (not just V8) with |
Just got node compiled on armv5tel myself... I also have to add -fno-tree-sink to CCFLAGS NB: the requirements for the float abi stuff is required for older ARM versions. The newer ARMs (armv7-a etc.) have vpu support. See http://code.google.com/p/v8/wiki/CrossCompilingForARM for more info. Also see #883 |
I did a binary chop on Node versions using the equivalent of:
Versions up to and including 0.5.0 exhibit the Date bug. Version 0.5.1 and beyond give "Illegal instruction". Sadly, there seems to be no happy medium where Date works and compilation is possible with what I know. |
Possible workaround, put:
early in the code and the problem seems to disappear, at least for a while. |
With Node 0.4.8 cross-compiled for ARM I get the following output:
...meaning that the first Date object prints a valid timestamp and all consecutive calls of the same command print a silly string.
I tried numerous times and it always shows the same effect. Same thing when using .toString().
Converting to milliseconds works, however:
Kernel: 2.6.26.7
The text was updated successfully, but these errors were encountered: