Skip to content

Commit b4acdfb

Browse files
authored
While setting up tests for the Node.js 25 release, I encountered the following error when node is executed: (#366)
``` libatomic.so.1: cannot open shared object file ``` This release contains an upgrade of V8 to 14.1 and, in the comment [here](https://github.com/nodejs/node/blob/main/tools/v8_gypfiles/v8.gyp#L1342-L1349) in the Node.js v8 tools code mentions: ``` # Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library # to implement atomic memory access. ``` I manually validated that adding `libatomic1` to the base-images package list restores functionality for the `node` binary.
1 parent 3b38239 commit b4acdfb

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

heroku-22/setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ packages=(
5555
libaom3
5656
libargon2-1
5757
libass9
58+
libatomic1 # Used by Node.js >= 25
5859
libc-ares2 # Used by PgBouncer in heroku-buildpack-pgbouncer.
5960
libc-client2007e
6061
libc6-dev

heroku-24/installed-packages-amd64.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ libarchive13t64
6565
libargon2-1
6666
libass9
6767
libassuan0
68+
libatomic1
6869
libattr1
6970
libaudit-common
7071
libaudit1

heroku-24/installed-packages-arm64.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ libarchive13t64
6565
libargon2-1
6666
libass9
6767
libassuan0
68+
libatomic1
6869
libattr1
6970
libaudit-common
7071
libaudit1

heroku-24/setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ packages=(
5858
less
5959
libargon2-1 # Used by the PHP runtime.
6060
libass9 # Used by FFmpeg in heroku-buildpack-activestorage-preview.
61+
libatomic1 # Used by Node.js >= 25
6162
libc-client2007e # Used by the PHP IMAP extension.
6263
libcares2 # Used by PgBouncer in heroku-buildpack-pgbouncer.
6364
libdav1d7 # Used by FFmpeg in heroku-buildpack-activestorage-preview.

0 commit comments

Comments
 (0)