From: Trevor Woerner <twoerner@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH v4 1/1] nodejs: cleanup and update
Date: Tue, 22 Dec 2015 23:14:35 -0500 [thread overview]
Message-ID: <567A1FAB.4030600@gmail.com> (raw)
In-Reply-To: <CAJ86T=XzNuWnP8sanhre_WYi0KFLK9w=4Kj4B+Pk=9Ae8pe_Qg@mail.gmail.com>
Hi Andre,
On 12/22/15 13:06, Andre McCurdy wrote:
>> Remove old nodejs4_0.4.12 and update nodejs_0.12.7 to the latest stable
>> nodejs_4.2.3.
>>
>> Nodejs is picky about which architectures it supports. The supported arch
>> mapping required some updating to bring it up to date with the current nodejs
>> code. Add COMPATIBLE_MACHINE entries so it only builds for the supported
>> architectures.
>>
>> ARM cores that don't support at least VFP2 have been dropped:
>>
>> https://groups.google.com/forum/#!topic/v8-users/aSOFbaAQvMk
>>
>> "Due the increasing cost of the keeping the "no-VFPv2" port of V8 working
>> on ARM, we are planning on making 3.17 the last V8 release that that
>> supports ARM chips without VFPv2. Starting with the 3.18 release, the
>> minimal V8 requirements will increase to ARMv6 + VFPv2. In order to
>> simplify maintenance, we will also remove the "pre-VFP2" ARM code from the
>> V8 code base."
>>
>> Additionally, gcc no longer supports a VFPv2 option:
>>
>> https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html#index-mfpu-1460
> There's no documented -mfpu=vfpv2 option in older releases either, so
> trying to use it may just be a bug in the v8 build system?
>
> https://gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/ARM-Options.html#ARM-Options
> https://gcc.gnu.org/onlinedocs/gcc-4.5.0/gcc/ARM-Options.html#ARM-Options
> https://gcc.gnu.org/onlinedocs/gcc-4.6.0/gcc/ARM-Options.html#ARM-Options
Interesting. I hadn't thought to look at the older docs to try to find
out "when it was removed". It's rather strange, then, that the V8 build
included this at all! How/when could it have ever worked? (rhetorical)
> The correct option for vfpv2 is -mfpu=vfp and it's certainly still
> supported by current gcc versions (it's used by meta-raspberrypi).
A day or so ago I created a patch to switch this flag in the nodejs
build from "-mfpu=vfpv2" to "-mfpu=vfp" and the build for qemuarm did
succeed. When I tried running the resulting program in the VM, however,
it threw an "illegal instruction" and failed. Since ARMv5 is no longer
officially supported, I didn't bother introducing that patch and simply
continued to remove support for this architecture.
Interestingly, although the ppc architecture is supported, and it builds
fine, running node in qemuppc also threw an illegal instruction and
failed. I kept support for ppc, however, since officially it's supported
and any run-time errors are, perhaps, an upstream issue?
Maybe I should also disable ppc builds so anyone using the recipe for
that purpose doesn't get their hopes up? Strictly from a build point of
view, ppc "succeeds".
I never was able to test the ppc64 build (which is also successful)
since I couldn't figure out the magic incantation to get
qemu-system-ppc64 to boot to a cmdline.
Best regards,
Trevor
prev parent reply other threads:[~2015-12-23 4:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-22 15:45 [meta-oe][PATCH v4 0/1] nodejs cleanup and update Trevor Woerner
2015-12-22 15:45 ` [meta-oe][PATCH v4 1/1] nodejs: " Trevor Woerner
2015-12-22 18:06 ` Andre McCurdy
2015-12-23 4:14 ` Trevor Woerner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=567A1FAB.4030600@gmail.com \
--to=twoerner@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.