You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scrip did not locate the binary archive available in the unofficial section and tried to compile from sources, but failed in openssl since the riscv architecture was not properly identified.
ubuntu@ubuntu:~$ nvm install nodeDownloading and installing node v20.5.1...Downloading https://nodejs.org/dist/v20.5.1/node-v20.5.1-linux-riscv64.tar.xz...curl: (22) The requested URL returned error: 404 Binary download from https://nodejs.org/dist/v20.5.1/node-v20.5.1-linux-riscv64.tar.xz failed, trying source.grep: /home/ubuntu/.nvm/.cache/bin/node-v20.5.1-linux-riscv64/node-v20.5.1-linux-riscv64.tar.xz: No such file or directoryProvided file to checksum does not exist.Binary download failed, trying source.Detected that you have 4 CPU core(s)Running with 3 threads to speed up the buildDownloading https://nodejs.org/dist/v20.5.1/node-v20.5.1.tar.xz...######################################################################### 100.0%Computing checksum with sha256sumChecksums matched!$>./configure --prefix=/home/ubuntu/.nvm/versions/node/v20.5.1 <Node.js configure: Found Python 3.11.2...INFO: configure completed successfullymake -C out BUILDTYPE=Release V=0 touch /home/ubuntu/.nvm/.cache/src/node-v20.5.1/files/out/Release/obj.target/deps/googletest/gtest_prod.stamp...
cc -o /home/ubuntu/.nvm/.cache/src/node-v20.5.1/files/out/Release/obj.target/openssl/deps/openssl/openssl/ssl/bio_ssl.o ../deps/openssl/openssl/ssl/bio_ssl.c '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-DNODE_OPENSSL_CONF_NAME=nodejs_conf' '-DNODE_OPENSSL_HAS_QUIC' '-DICU_NO_USER_DATA_OVERRIDE' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DOPENSSL_NO_HW' '-DOPENSSL_API_COMPAT=0x10100001L' '-DSTATIC_LEGACY' '-DNDEBUG' '-DOPENSSL_USE_NODELETE' '-DL_ENDIAN' '-DOPENSSL_BUILDING_OPENSSL' '-DAES_ASM' '-DBSAES_ASM' '-DCMLL_ASM' '-DECP_NISTZ256_ASM' '-DGHASH_ASM' '-DKECCAK1600_ASM' '-DMD5_ASM' '-DOPENSSL_BN_ASM_GF2m' '-DOPENSSL_BN_ASM_MONT' '-DOPENSSL_BN_ASM_MONT5' '-DOPENSSL_CPUID_OBJ' '-DOPENSSL_IA32_SSE2' '-DPADLOCK_ASM' '-DPOLY1305_ASM' '-DRC4_ASM' '-DSHA1_ASM' '-DSHA256_ASM' '-DSHA512_ASM' '-DVPAES_ASM' '-DWHIRLPOOL_ASM' '-DX25519_ASM' '-DOPENSSL_PIC' '-DMODULESDIR="/home/ubuntu/.nvm/.cache/src/node-v20.5.1/files/out/$(BUILDTYPE)/obj.target/deps/openssl/lib/openssl-modules"' '-DOPENSSLDIR="/etc/ssl"' '-DENGINESDIR="/dev/null"' '-DTERMIOS' -I../deps/openssl/openssl -I../deps/openssl/openssl/include -I../deps/openssl/openssl/crypto -I../deps/openssl/openssl/crypto/include -I../deps/openssl/openssl/crypto/modes -I../deps/openssl/openssl/crypto/ec/curve448 -I../deps/openssl/openssl/crypto/ec/curve448/arch_32 -I../deps/openssl/openssl/providers/common/include -I../deps/openssl/openssl/providers/implementations/include -I../deps/openssl/config -I../deps/openssl/config/archs/linux-x86_64/asm -I../deps/openssl/config/archs/linux-x86_64/asm/include -I../deps/openssl/config/archs/linux-x86_64/asm/crypto -I../deps/openssl/config/archs/linux-x86_64/asm/crypto/include/internal -I../deps/openssl/config/archs/linux-x86_64/asm/providers/common/include -pthread -Wall -Wextra -Wno-unused-parameter -Wa,--noexecstack -Wall -O3 -pthread -m64 -Wall -O3 -Wno-missing-field-initializers -Wno-old-style-declaration -O3 -fno-omit-frame-pointer -MMD -MF /home/ubuntu/.nvm/.cache/src/node-v20.5.1/files/out/Release/.deps//home/ubuntu/.nvm/.cache/src/node-v20.5.1/files/out/Release/obj.target/openssl/deps/openssl/openssl/ssl/bio_ssl.o.d.raw -c
cc: error: unrecognized command-line option ‘-m64’make[1]: *** [deps/openssl/openssl.target.mk:1171: /home/ubuntu/.nvm/.cache/src/node-v20.5.1/files/out/Release/obj.target/openssl/deps/openssl/openssl/ssl/bio_ssl.o] Error 1make[1]: *** Waiting for unfinished jobs....make: *** [Makefile:134: node] Error 2nvm: install v20.5.1 failed!
What did you expect to happen?
The install to succeed.
Is there anything in any of your profile files that modifies the PATH?
If you are having installation issues, or getting "N/A", what does curl -I --compressed -v https://nodejs.org/dist/ print out?
I understand that this is not a direct fault of nvm, but the build scripts of node and dependencies need adjustments for risc-v.
However, the build step can be avoided, since the pre-built binary is already available in the unofficial section.
My workaround was to explicitly set NVM_NODEJS_ORG_MIRROR:
ubuntu@ubuntu:~$ export NVM_NODEJS_ORG_MIRROR=https://unofficial-builds.nodejs.org/download/release
ubuntu@ubuntu:~$ nvm install node
Downloading and installing node v20.5.1...
Downloading https://unofficial-builds.nodejs.org/download/release/v20.5.1/node-v20.5.1-linux-riscv64.tar.xz...
######################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v20.5.1 (npm v9.8.0)
Creating default alias: default -> node (-> v20.5.1 *)
ubuntu@ubuntu:~$ nvm install-latest-npm
Attempting to upgrade to the latest working version of npm...
* Installing latest `npm`; if this does not work on your node version, please report a bug!
changed 24 packages in 56s
28 packages are looking for funding
run `npm fund` for details
* npm upgraded to: v9.8.1
ubuntu@ubuntu:~$ node --version
v20.5.1
ubuntu@ubuntu:~$ npm --version
9.8.1
ubuntu@ubuntu:~$ npm i -g xpm
added 1 package in 1m
55 packages are looking for funding
run `npm fund` for details
ubuntu@ubuntu:~$ xpm --version
0.16.3
ubuntu@ubuntu:~$
For testing, dedicated hardware is not mandatory, I ran my build under QEMU, configured as instructed in the Ubuntu page.
The text was updated successfully, but these errors were encountered:
Operating system and version:
nvm debug
output:nvm ls
output:How did you install
nvm
?curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash
What steps did you perform?
Ran the script.
What happened?
The scrip did not locate the binary archive available in the unofficial section and tried to compile from sources, but failed in openssl since the riscv architecture was not properly identified.
What did you expect to happen?
The install to succeed.
Is there anything in any of your profile files that modifies the
PATH
?If you are having installation issues, or getting "N/A", what does
curl -I --compressed -v https://nodejs.org/dist/
print out?Comments
I understand that this is not a direct fault of nvm, but the build scripts of node and dependencies need adjustments for risc-v.
However, the build step can be avoided, since the pre-built binary is already available in the unofficial section.
My workaround was to explicitly set
NVM_NODEJS_ORG_MIRROR
:For testing, dedicated hardware is not mandatory, I ran my build under QEMU, configured as instructed in the Ubuntu page.
The text was updated successfully, but these errors were encountered: