yarn FTBFS with node 20

Bug #2068769 reported by Athos Ribeiro
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
node-yarnpkg (Debian)
New
Unknown
node-yarnpkg (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

The package initially FTBFS due to issues with "-Bsymbolic-functions".

Adding the following to d/rules is enough to get past this error for now:

diff --git a/debian/rules b/debian/rules
index d95588f..3259611 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1

+export DEB_LDFLAGS_MAINT_STRIP=-Wl,-Bsymbolic-functions
+
 %:
        dh $@

However, removing the flag from the build got us into a different FTBFS issue also affecting Debian (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067283).

This happens because the off_t type is being configured to be 72-bit long by cmake. After some investigation, we found out that the build of an embedded library injects a hook into cmake to call "node" (JS) with the "--experimental-wasm-threads" option (this is a Debian patch).

This option has been removed from node 20 and node now exits with a code 9 error. This error code ends up being propageted during the embeded library cmake checks, which ends up being set as the size of off_t (9 bytes), leading to a build failure later on.

Related branches

tags: added: update-excuse
Changed in node-yarnpkg (Ubuntu):
status: New → Triaged
Changed in node-yarnpkg (Debian):
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.