Discussion:
[gentoo-user] NodeJS compiling problem
(too old to reply)
Peter Humphrey
2023-03-05 15:30:01 UTC
Permalink
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.
Arve Barsnes
2023-03-05 16:20:01 UTC
Permalink
Post by Peter Humphrey
Hello list,
Am I the only one unable to install net-libs/nodejs-18.14.2? The log file has
* 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
* /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
Peter Humphrey
2023-03-05 17:00:01 UTC
Permalink
Post by Arve Barsnes
Post by Peter Humphrey
Hello list,
Am I the only one unable to install net-libs/nodejs-18.14.2? The log file
has>
* 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
* /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.
Peter Humphrey
2023-03-06 11:00:02 UTC
Permalink
Post by Peter Humphrey
Hello list,
Am I the only one unable to install net-libs/nodejs-18.14.2? The log file
It was a typo in /etc/portage/env.

Apologies for the noise.
--
Regards,
Peter.
Loading...