• [gentoo-user] NodeJS compiling problem

    From Peter Humphrey@21:1/5 to All on Sun Mar 5 16:30:01 2023
    Hello list,

    Am I the only one unable to install net-libs/nodejs-18.14.2? The log file has some interesting entries:

    * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
    * Checking whether python3_11 is suitable ...
    * >=dev-lang/python-3.11.1-r1:3.11[threads(+)] ...
    [ ok ]
    * Using python3.11 to build (via PYTHON_COMPAT iteration)
    * Determining the location of the kernel source code
    * Found kernel source directory:
    * /usr/src/linux
    * Could not detect kernel version.

    But I've just built a new kernel under /usr/src/linux ( -> linux-6.2.2- gentoo), so I know it's there. Is the problem to do with python:3.11?

    $ eselect python list
    Available Python interpreters, in order of preference:
    [1] python3.10
    [2] python3.11 (fallback)

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Arve Barsnes@21:1/5 to Peter Humphrey on Sun Mar 5 17:20:01 2023
    On Sun, 5 Mar 2023 at 16:21, Peter Humphrey <peter@prh.myzen.co.uk> wrote:

    Hello list,

    Am I the only one unable to install net-libs/nodejs-18.14.2? The log file has some interesting entries:

    * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
    * Checking whether python3_11 is suitable ...
    * >=dev-lang/python-3.11.1-r1:3.11[threads(+)] ...
    [ ok ]
    * Using python3.11 to build (via PYTHON_COMPAT iteration)
    * Determining the location of the kernel source code
    * Found kernel source directory:
    * /usr/src/linux
    * Could not detect kernel version.

    I wouldn't think this is really the problem, as long as you get the
    "found kernel source directory" message. Being able to determine the
    version doesn't seem that important, depending on what the actual
    compile errors are.

    Regards,
    Arve

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Sun Mar 5 18:00:01 2023
    This is a multi-part message in MIME format.

    On Sunday, 5 March 2023 16:13:24 GMT Arve Barsnes wrote:
    On Sun, 5 Mar 2023 at 16:21, Peter Humphrey <peter@prh.myzen.co.uk> wrote:
    Hello list,

    Am I the only one unable to install net-libs/nodejs-18.14.2? The log file

    some interesting entries:
    * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
    * Checking whether python3_11 is suitable ...
    * >=dev-lang/python-3.11.1-r1:3.11[threads(+)] ...
    [ ok ]
    * Using python3.11 to build (via PYTHON_COMPAT iteration)
    * Determining the location of the kernel source code
    * Found kernel source directory:
    * /usr/src/linux
    * Could not detect kernel version.

    I wouldn't think this is really the problem, as long as you get the
    "found kernel source directory" message. Being able to determine the
    version doesn't seem that important, depending on what the actual
    compile errors are.

    Hm. I thought it might be leading to the later error "no rule to make target '3' ". See the attached log.

    An amd64 machine compiles this version of nodejs ok, but this machine is ~amd64. I tried yanking out python 3.11, but still got the error so I put it back in again, toute-suite.

    --
    Regards,
    Peter.

    * Package: net-libs/nodejs-18.14.2:0/18
    * Repository: gentoo
    * Maintainer: williamh@gentoo.org
    * USE: abi_x86_64 amd64 cpu_flags_x86_sse2 elibc_glibc icu kernel_linux npm snapshot ssl system-icu system-ssl userland_GNU
    * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
    * Checking whether python3_11 is suitable ...
    * >=dev-lang/python-3.11.1-r1:3.11[threads(+)] ...
    [ ok ]
    * Using python3.11 to build (via PYTHON_COMPAT iteration)
    * Determining the location of the kernel source code
    * Found kernel source directory:
    * /usr/src/linux
    * Could not detect kernel version.
    * Please ensure that /usr/src/linux points to a complete set of Linux sources.
    * Unable to calculate Linux Kernel version for build, attempting to use running version
    * Checking for suitable kernel configuration options ...
    [ ok ]
    Unpacking source...
    Unpacking node-v18.14.2.tar.xz to /var/tmp/notmpfs/portage/net-libs/nodejs-18.14.2/work
    Source unpacked in /var/tmp/notmpfs/portage/net-libs/nodejs-18.14.2/work >>> Preparing source in /var/tmp/notmpfs/portage/net-libs/nodejs-18.14.2/work/node-v18.14.2 ...
    * Applying nodejs-12.22.5-shared_c-ares_nameser_h.patch ...
    [ ok ]
    Source prepared.
    Configuring source in /var/tmp/notmpfs/portage/net-libs/nodejs-18.14.2/work/node-v18.14.2 ...
    /var/tmp/notmpfs/portage/net-libs/nodejs-18.14.2/work/node-v18.14.2/configure.py:8: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
    import pipes /var/tmp/notmpfs/portage/net-libs/nodejs-18.14.2/work/node-v18.14.2/configure.py:17: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    from distutils.version import StrictVersion
    INFO: configure completed successfully
    Source configured.
    Compiling source in /var/tmp/notmpfs/portage/net-libs/nodejs-18.14.2/work/node-v18.14.2 ...
    make 3 -C out
    make: Entering directory '/var/tmp/notmpfs/portage/net-libs/nodejs-18.14.2/work/node-v18.14.2/out'
    make: *** No rule to make target '3'. Stop.
    make: Leaving directory '/var/tmp/notmpfs/portage/net-libs/nodejs-18.14.2/work/node-v18.14.2/out'
    * ERROR: net-libs/nodejs-18.14.2::gentoo failed (compile phase):
    * emake failed
    *
    * If you need support, post the output of `emerge --info '=net-libs/nodejs-18.14.2::gentoo'`,
    * the complete build log and the output of `emerge -pqv '=net-libs/nodejs-18.14.2::gentoo'`.
    * The complete build log is located at '/var/log/portage/net-libs:nodejs-18.14.2:20230305-163955.log'.
    * For convenience, a symlink to the build log is located at '/var/tmp/notmpfs/portage/net-libs/nodejs-18.14.2/temp/build.log'.
    * The ebuild environment file is located at '/var/tmp/notmpfs/portage/net-libs/nodejs-18.14.2/temp/environment'.
    * Working directory: '/var/tmp/notmpfs/portage/net-libs/nodejs-18.14.2/work/node-v18.14.2'
    * S: '/var/tmp/notmpfs/portage/net-libs/nodejs-18.14.2/work/node-v18.14.2'

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Mon Mar 6 12:00:02 2023
    On Sunday, 5 March 2023 15:21:25 GMT Peter Humphrey wrote:
    Hello list,

    Am I the only one unable to install net-libs/nodejs-18.14.2? The log file
    has some interesting entries:

    It was a typo in /etc/portage/env.

    Apologies for the noise.

    --
    Regards,
    Peter.

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