Skip to content

Node.js 12 linux-arm toolchain build failure: Failed to install Node.js 12 #68

@benfrancis

Description

@benfrancis

Build failure in CI https://github.com/WebThingsIO/addon-builder/actions/runs/14314366445/job/40119233333

#6 172.5 Downloading https://nodejs.org/dist/v12.22.12/node-v12.22.12.tar.xz...
#6 173.5 #=#=#                                                                         

                                                                           0.3%
#######                                                                   10.1%
###########                                                               16.6%
##############                                                            20.7%
#####################                                                     30.4%
###############################                                           43.5%
########################################                                  56.5%
##################################################                        70.1%
############################################################              83.9%
######################################################################    97.6%
######################################################################## 100.0%
#6 175.1 Computing checksum with sha256sum
#6 175.5 Checksums matched!
#6 183.4 $>./configure --prefix=/root/.nvm/versions/node/v12.22.12 --without-snapshot<
#6 183.5 ./configure: 4: exec: python: not found
#6 183.5 nvm: install v12.22.12 failed!
#6 185.0 Failed to install Node.js 12
#6 185.0 => Close and reopen your terminal to start using nvm or run the following to use it now:
#6 185.0 
#6 185.0 export NVM_DIR="$HOME/.nvm"
#6 185.0 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
#6 185.0 [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
#6 185.4 /usr/bin/bash: line 1: npm: command not found
#6 ERROR: process "/bin/sh -c apt update &&     apt dist-upgrade -y &&     apt install -y         autoconf         automake         build-essential         cmake         curl         git         libboost-program-options-dev         libboost-system-dev         libboost-test-dev         libboost-thread-dev         libbz2-dev         libeigen3-dev         liblzma-dev         libudev-dev         pkg-config         python3         sudo         zlib1g-dev &&     apt clean &&     rm -rf /var/lib/apt/lists/* &&     curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash &&     bash -c \"export NVM_DIR=\\${HOME}/.nvm &&         source \\${NVM_DIR}/nvm.sh &&         npm config -g set cache /tmp/.npm &&         nvm cache clear\"" did not complete successfully: exit code: 127
------
 > [2/2] RUN apt update &&     apt dist-upgrade -y &&     apt install -y         autoconf         automake         build-essential         cmake         curl         git         libboost-program-options-dev         libboost-system-dev         libboost-test-dev         libboost-thread-dev         libbz2-dev         libeigen3-dev         liblzma-dev         libudev-dev         pkg-config         python3         sudo         zlib1g-dev &&     apt clean &&     rm -rf /var/lib/apt/lists/* &&     curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash &&     bash -c "export NVM_DIR=${HOME}/.nvm &&         source ${NVM_DIR}/nvm.sh &&         npm config -g set cache /tmp/.npm &&         nvm cache clear":
183.4 $>./configure --prefix=/root/.nvm/versions/node/v12.22.12 --without-snapshot<
183.5 ./configure: 4: exec: python: not found
183.5 nvm: install v12.22.12 failed!
185.0 Failed to install Node.js 12
185.0 => Close and reopen your terminal to start using nvm or run the following to use it now:
185.0 
185.0 export NVM_DIR="$HOME/.nvm"
185.0 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
185.0 [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
185.4 /usr/bin/bash: line 1: npm: command not found

I tried building this toolchain image locally and the download of the Node.js binary got a 404 so it tried to compile from source and failed:

296.7 => Installing Node.js version 12
304.1 Downloading and installing node v12.22.12...
307.4 Downloading https://nodejs.org/dist/v12.22.12/node-v12.22.12-linux-armv6l.tar.xz...
curl: (22) The requested URL returned error: 404                                    
309.3 
309.4 Binary download from https://nodejs.org/dist/v12.22.12/node-v12.22.12-linux-armv6l.tar.xz failed, trying source.
309.5 grep: /root/.nvm/.cache/bin/node-v12.22.12-linux-armv6l/node-v12.22.12-linux-armv6l.tar.xz: No such file or directory
309.5 Provided file to checksum does not exist.
309.6 Binary download failed, trying source.
309.8 Detected that you have 4 CPU core(s)
309.8 Running with 3 threads to speed up the build
310.1 Additional options while compiling: --without-snapshot
313.3 Downloading https://nodejs.org/dist/v12.22.12/node-v12.22.12.tar.xz...
######################################################################## 100.0%     
316.9 Computing checksum with sha256sum
317.4 Checksums matched!
329.5 $>./configure --prefix=/root/.nvm/versions/node/v12.22.12 --without-snapshot<
329.8 ./configure: 4: exec: python: not found
329.8 nvm: install v12.22.12 failed!
332.4 Failed to install Node.js 12
332.4 => Close and reopen your terminal to start using nvm or run the following to use it now:
332.4 
332.4 export NVM_DIR="$HOME/.nvm"
332.4 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
332.4 [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
333.1 bash: line 1: npm: command not found
------
ERROR: failed to solve: executor failed running [/bin/sh -c apt update &&     apt dist-upgrade -y &&     apt install -y         autoconf         automake         build-essential         cmake         curl         git         libboost-program-options-dev         libboost-system-dev         libboost-test-dev         libboost-thread-dev         libbz2-dev         libeigen3-dev         liblzma-dev         libudev-dev         pkg-config         python3         sudo         zlib1g-dev &&     apt clean &&     rm -rf /var/lib/apt/lists/* &&     curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash &&     bash -c "export NVM_DIR=\${HOME}/.nvm &&         source \${NVM_DIR}/nvm.sh &&         npm config -g set cache /tmp/.npm &&         nvm cache clear"]: exit code: 127

Note: The Node.js 12 toolchain build is succeeding on linux-64
Note: Probably unrelated but there was also an issue with the node10 arm64 toolchain build segfaulting, but that resolved itself on a re-run

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions