Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] Nodejs failure for arm cortex-A8
Date: Sun, 17 Mar 2019 14:13:17 +0200	[thread overview]
Message-ID: <87ftrlzoki.fsf@tarshish> (raw)
In-Reply-To: <CAH2Z6CmpUa7AO5Bi_azqbdX9xiqXCWYcbA5xzu=MraD3-a-=ng@mail.gmail.com>

Hi Ben,

On Sun, Mar 17 2019, Boris-Ben Shapiro wrote:
> So now If I want to use the only NON-buildroot toolchain for this CPU:
> Sourcery CodeBench ARM 2014.05, I cannot...
> Is there a solution where I can use external toolchain Sourcery
> CodeBench ARM 2014.05 and still compile NodeJS

You need to deal with two separate issues here. (1) target toolchain,
and (2) host toolchain. That is because you must first build host-nodejs
to build nodejs for target. Buildroot takes care of that for you.

Both toolchains must be gcc 4.9 or newer. That is upstream nodejs
decision as of version 8. Buildroot can't do much about that. You might
have some luck with older nodejs versions.

The Sourcery ARM 2014.05 toolchain is based on gcc 4.8 to it can't build
nodejs 8. You can use other toolchain like the Linaro or Arm (Inc)
provided toolchains. You must set target ABI to EABIhf to select these
toolchains.

Same goes for host toolchain. Ubuntu 14.04 default toolchain is gcc
4.8. This toolchain can't build host-nodejs. So you must install a newer
host gcc version.

baruch

> On Fri, 15 Mar 2019 at 18:53, Peter Seiderer <ps.report@gmx.net> wrote:
>>
>> Hello Boris-Ben,
>>
>> On Fri, 15 Mar 2019 18:01:27 +0200, Boris-Ben Shapiro <erectcrested@gmail.com> wrote:
>>
>> > Just saw : https://github.com/nodejs/node/commit/d13a65ad68c429884434cdcd94c52b79a6d69717
>> >
>> > Thanks!
>> > I will try this after the weekend
>>
>> With this patch your will see the following comment in make menuconfig
>>
>>     "nodejs needs a toolchain w/ C++, dynamic library, NPTL, gcc >= 4.9, wchar"
>>
>> This will change nothing for your host and selected crosss-compile toolchain...
>>
>> >
>> > On Fri, 15 Mar 2019 at 17:59, Boris-Ben Shapiro <erectcrested@gmail.com> wrote:
>> > >
>> > > Hi Baruch.
>> > > I am a bit tied to Ubuntu 14.04. Can you guide me on how to update the
>> > > nodejs toolchain dependency? I use the CodeSourcery 2014 toolchain.
>> > > There is no other option for CS toolchain, only buildroot toolchain
>> > > which I don't want to use, as my project already tested with CS
>> > > toolchain.
>> > > Is it a difficult task to update nodejs toolchain version dependecy?
>>
>> It is not about the cross-compile toolchain, your failure while compiling host-nodejs
>> (using your host GCC /usr/bin/gcc to compile exectuables for your host/ubuntu),
>> to fix this you need to update your host gcc...
>>
>> Regards,
>> Peter
>>
>> > >
>> > > On Fri, 15 Mar 2019 at 17:57, Boris-Ben Shapiro <erectcrested@gmail.com> wrote:
>> > > >
>> > > > Hi Baruch.
>> > > > I am a bit tied to Ubuntu 14.04. Can you guide me on how to update the
>> > > > nodejs toolchain dependency? I use the CodeSourcery 2014 toolchain.
>> > > > There is no other option for CS toolchain, only buildroot toolchain
>> > > > which I don't want to use, as my project already tested with CS
>> > > > toolchain.
>> > > > Is it a difficult task to update nodejs toolchain version dependecy?
>> > > >
>> > > > On Fri, 15 Mar 2019 at 08:01, Baruch Siach <baruch@tkos.co.il> wrote:
>> > > > >
>> > > > > Hi Ben,
>> > > > >
>> > > > > On Thu, Mar 14 2019, Boris-Ben Shapiro wrote:
>> > > > > > I am trying to compile buildroot master branch on ubuntu 14.04 32-bit.
>> > > > > > The target compilation is for TI DM8148 processor (DaVinci series).
>> > > > > > This is the defconfig I used: http://code.bulix.org/wbenum-621398
>> > > > > > And this is full configuration: http://code.bulix.org/lqktww-621399
>> > > > > >
>> > > > > > I get a multiple failures while compiling nodejs package:
>> > > > > > http://code.bulix.org/8gdwec-621396
>> > > > > >
>> > > > > > Can anyone please help with this?
>> > > > >
>> > > > > Ubuntu 14.04 carries gcc 4.8, I guess. Current nodejs requires gcc 4.9.
>> > > > >
>> > > > >   https://github.com/nodejs/node/commit/d13a65ad68c429884434cdcd94c52b79a6d69717
>> > > > >
>> > > > > Try a newer host toolchain.
>> > > > >
>> > > > > I guess we need to update the nodejs toolchain version dependency.
>> > > > >
>> > > > > baruch
>> > > > >
>> > > > > --
>> > > > >      http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
>> > > > > =}------------------------------------------------ooO--U--Ooo------------{=
>> > > > >    - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
>> > _______________________________________________
>> > buildroot mailing list
>> > buildroot at busybox.net
>> > http://lists.busybox.net/mailman/listinfo/buildroot
>>


--
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

      reply	other threads:[~2019-03-17 12:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-14 21:52 [Buildroot] Nodejs failure for arm cortex-A8 Boris-Ben Shapiro
2019-03-15  6:01 ` Baruch Siach
2019-03-15 15:59   ` Boris-Ben Shapiro
     [not found]   ` <CAH2Z6CkdrwJ=wcAOwyU_juiEdakB1sOr+_g8aBjtm+_L7azxWg@mail.gmail.com>
2019-03-15 15:59     ` Boris-Ben Shapiro
2019-03-15 16:01       ` Boris-Ben Shapiro
2019-03-15 16:53         ` Peter Seiderer
2019-03-17 11:49           ` Boris-Ben Shapiro
2019-03-17 12:13             ` Baruch Siach [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=87ftrlzoki.fsf@tarshish \
    --to=baruch@tkos.co.il \
    --cc=buildroot@busybox.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox