• [gentoo-user] net-libs/nodejs

    From karl@aspodata.se@21:1/5 to All on Thu Jul 7 00:30:01 2022
    Unfortunately it seems I cannon emerge nodejs due
    to this error:

    /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../ x86_64-pc-linux-gnu/bin/ld:
    failed to set dynamic section sizes: memory exhausted

    I tried to stop every process except gettys and the login,
    still the same, no MAKEOPTS (i.e. no paralell builds) and EMERGE_DEFAULT_OPTS="--jobs 1 ...

    The emerge line is:

    [ebuild U ] net-libs/nodejs-18.3.0 [14.19.0]
    USE="debug icu npm snapshot ssl system-icu system-ssl
    -doc* -inspector -lto -pax-kernel -systemtap -test"
    CPU_FLAGS_X86="sse2"

    Would dropping some use flags help ?
    I'm generally not interested in nodejs as such,
    it's just that firefox depends on it.

    ///

    When emergings with --skipfirst (i.e. skip nodejs),
    I get:
    emerge: It seems we have nothing to resume...

    Checking dependancies:
    # emerge -vc net-libs/nodejs

    Calculating dependencies .... done!
    net-libs/nodejs-14.19.0 pulled in by:
    www-client/firefox-91.9.0 requires >=net-libs/nodejs-10.23.1

    So, why don't emerge build the other 100'ish packages ?
    Last time I did emerge nodejs, must I run emerge @world
    and let that fail first ?

    Regards,
    /Karl Hammar

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tastytea@21:1/5 to karl@aspodata.se on Thu Jul 7 01:00:01 2022
    On 2022-07-07 00:19+0200 karl@aspodata.se wrote:

    Unfortunately it seems I cannon emerge nodejs due
    to this error:

    /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../ x86_64-pc-linux-gnu/bin/ld:
    failed to set dynamic section sizes: memory exhausted

    I tried to stop every process except gettys and the login,
    still the same, no MAKEOPTS (i.e. no paralell builds) and EMERGE_DEFAULT_OPTS="--jobs 1 ...

    The emerge line is:

    [ebuild U ] net-libs/nodejs-18.3.0 [14.19.0]
    USE="debug icu npm snapshot ssl system-icu system-ssl
    -doc* -inspector -lto -pax-kernel -systemtap -test"
    CPU_FLAGS_X86="sse2"

    Would dropping some use flags help ?
    I'm generally not interested in nodejs as such,
    it's just that firefox depends on it.

    I'm not familiar with nodejs in particular, but dropping the debug
    USE-flag will probably reduce the amount of memory it needs somewhat.
    You could also add more swap, or look into zswap¹ or zram².

    When emergings with --skipfirst (i.e. skip nodejs),
    I get:
    emerge: It seems we have nothing to resume...

    Checking dependancies:
    # emerge -vc net-libs/nodejs

    Calculating dependencies .... done!
    net-libs/nodejs-14.19.0 pulled in by:
    www-client/firefox-91.9.0 requires >=net-libs/nodejs-10.23.1

    So, why don't emerge build the other 100'ish packages ?
    Last time I did emerge nodejs, must I run emerge @world
    and let that fail first ?

    Yes, --resume will always try to resume the last command that failed,
    as far as i know.

    Regards,
    /Karl Hammar

    Regards, tastytea

    ¹ <https://wiki.gentoo.org/wiki/Zswap>
    ² <https://wiki.gentoo.org/wiki/Zram>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From karl@aspodata.se@21:1/5 to All on Thu Jul 7 01:40:01 2022
    tastytea:
    On 2022-07-07 00:19+0200 karl@aspodata.se wrote:
    ...
    When emergings with --skipfirst (i.e. skip nodejs),
    I get:
    emerge: It seems we have nothing to resume...

    Checking dependancies:
    # emerge -vc net-libs/nodejs

    Calculating dependencies .... done!
    net-libs/nodejs-14.19.0 pulled in by:
    www-client/firefox-91.9.0 requires >=net-libs/nodejs-10.23.1

    So, why don't emerge build the other 100'ish packages ?
    Last time I did emerge nodejs, must I run emerge @world
    and let that fail first ?

    Yes, --resume will always try to resume the last command that failed,
    as far as i know.

    Just tried that, emerge world and then killing g++ once the build for
    nodejs started and "nodejs" failed, but emerge didn't continue with
    the next one (using --keep-going), so why is nodejs blocking everything
    else ???

    So I removed firefox from world, now the rest is building. I'll solve
    the firefox/nodejs thing later.

    Regards,
    /Karl Hammar

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jack@21:1/5 to karl@aspodata.se on Thu Jul 7 01:50:01 2022
    On 2022.07.06 19:34, karl@aspodata.se wrote:
    tastytea:
    On 2022-07-07 00:19+0200 karl@aspodata.se wrote:
    ...
    When emergings with --skipfirst (i.e. skip nodejs),
    I get:
    emerge: It seems we have nothing to resume...

    Checking dependancies:
    # emerge -vc net-libs/nodejs

    Calculating dependencies .... done!
    net-libs/nodejs-14.19.0 pulled in by:
    www-client/firefox-91.9.0 requires >=net-libs/nodejs-10.23.1

    So, why don't emerge build the other 100'ish packages ?
    Last time I did emerge nodejs, must I run emerge @world
    and let that fail first ?

    Yes, --resume will always try to resume the last command that
    failed,
    as far as i know.

    Just tried that, emerge world and then killing g++ once the build for
    nodejs started and "nodejs" failed, but emerge didn't continue with
    the next one (using --keep-going), so why is nodejs blocking
    everything
    else ???

    So I removed firefox from world, now the rest is building. I'll solve
    the firefox/nodejs thing later.

    Regards,
    /Karl Hammar

    I think you might also want to use --skip-first, which should then also
    skip firefox due to the missing dependency. You could also use
    --exclude firefox, to save editing your world file.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Neil Bothwick@21:1/5 to tastytea on Thu Jul 7 09:20:01 2022
    On Thu, 7 Jul 2022 00:51:18 +0200, tastytea wrote:

    When emergings with --skipfirst (i.e. skip nodejs),
    I get:
    emerge: It seems we have nothing to resume...

    Checking dependancies:
    # emerge -vc net-libs/nodejs

    Calculating dependencies .... done!
    net-libs/nodejs-14.19.0 pulled in by:
    www-client/firefox-91.9.0 requires >=net-libs/nodejs-10.23.1

    So, why don't emerge build the other 100'ish packages ?
    Last time I did emerge nodejs, must I run emerge @world
    and let that fail first ?

    Yes, --resume will always try to resume the last command that failed,
    as far as i know.

    --keep-going would do what you want, portage tries to emerge whatever
    else it can from the list after a failure. But that still means waiting
    for nodejs to fail, so I would ass "--exclude nodejs" to your emerge
    world command to get everything else sorted, then come back to deal with
    nodejs later.


    --
    Neil Bothwick

    *Libra*: /(Sept 23--Oct 23)/ An unfortunate typo on your application
    results in your being accepted into the Legion Of Superherpes.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmLGh7UACgkQ92eFu0QS MJghmQ//VvpD+cyXfnLBuEYBjVgmIR+tWW6dX/gOX7c1o87696hxBAEkQtxR+EDB vU6qf5QoFD6ryAJ7HbESbGfcRH6ZxxxjB3+IHfgvBF8tdY6Vau92jJgUz/UlMnSW B7zO12Oj2/hFzmGTu4hR6YsjQQdLAEknUsEHeiaNJKWdsE7jpuZL11qCWbEMLdoz pELF9dTemnd4r2FF5OAMcQ9LPfCKSgj2uaF2vP6Nhx809yDJP43InSbVi5KRZ3lL YESs+H50b1tNulkw/2UbhjNQue6cnWXS0MFVFyd+tyRuQxhqWsRWJs+qIvcLDqWj Bm8A5+tL44ObPZOp7QbabSe7DtbI5bd2rc/XF1X6C6v8fis3KOxKP1JRHmxwV7wi VjA5OLDS6H4694ZeQVdPNYTy+bgJl4Op6ECLeXj/74tG5/0G23SkD93pl/7uoP8L a8gDISiwmItgyqPvOGZ7oyXO6Jt3pyJrsWEa8+rtutTR63GMRZaR2qKb9Z+LTUs8 Y1O7xOfoCzeDwi6+XIHf2J1dBaWn6APifShfeNrC5uxEkEEE0jicxECA3EmQTE33 O8iT6JONDv3OjeJvZt2ZrdR+emnz4TbZfe8axSuAZAnLoD2uh/K9+IrhekQHwma+ AiqsFYbavBTwmVYWiajn7k+pE5LtWb0zYka+Qt2q+xCZZ5J8afE=
    =bkb6
    -----END PGP SIGNATURE-----

    --- SoupGate-Wi
  • From Peter Humphrey@21:1/5 to karl@aspodata.se on Thu Jul 7 10:50:01 2022
    On Wednesday, 6 July 2022 23:19:54 BST karl@aspodata.se wrote:
    Unfortunately it seems I cannon emerge nodejs due
    to this error:

    /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../ x86_64-pc-linux-gnu/bin/ld:
    failed to set dynamic section sizes: memory exhausted

    I tried to stop every process except gettys and the login,
    still the same, no MAKEOPTS (i.e. no paralell builds) and EMERGE_DEFAULT_OPTS="--jobs 1 ...

    How much swap have you? Can you increase it? Yes, swapping is slow, but at least it does the job.

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From karl@aspodata.se@21:1/5 to All on Tue Jul 19 00:40:01 2022
    tastytea:
    On 2022-07-07 00:19+0200 karl@aspodata.se wrote:
    ...
    /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../ x86_64-pc-linux-gnu/bin/ld:
    failed to set dynamic section sizes: memory exhausted
    ...
    I'm not familiar with nodejs in particular, but dropping the debug
    USE-flag will probably reduce the amount of memory it needs somewhat.
    You could also add more swap, or look into zswap¹ or zram².

    Dropping debug and adding swap solved it, thanks.

    Regards,
    /Karl Hammar

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)