-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed as not planned
Labels
Description
Describe the bug
As described here: #3652 , and supposedly fixed, swc as pulled in by next.js is still installing both glibc and musl binaries when on x86 linux.
I am building this project: https://borgwarehouse.com/ with the following commands:
$ npm clean-install --omit=dev --cpu=x64 --os=linux --libc=glibc
$ npm audit fix
$ npm run build
$ npm prune --omit=dev
and end up with:
$ ncdu node_modules/@next
[snip]
142.0 MiB [########################] /swc-linux-x64-gnu
141.9 MiB [####################### ] /swc-linux-x64-musl
[snip]
on:
$ uname -a
Linux hppd600 6.15.4-arch2-1 #1 SMP PREEMPT_DYNAMIC Fri, 27 Jun 2025 16:35:07 +0000 x86_64 GNU/Linux
with:
$ gcc -dM -E - <<< "#include <features.h>" | grep -E '(GLIBC|MUSL)'
#define __GLIBC_USE(F) __GLIBC_USE_ ## F
#define __GLIBC_PREREQ(maj,min) ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))
#define __GLIBC__ 2
#define __GLIBC_USE_ISOC2Y 0
#define __GLIBC_USE_DEPRECATED_GETS 0
#define __GLIBC_USE_C23_STRTOL 1
#define __GLIBC_USE_DEPRECATED_SCANF 0
#define __GLIBC_USE_ISOC23 1
#define __GLIBC_MINOR__ 41
Not absolutely sure if this is swc's bug or next.js's...
Input code
Config
Link to the code that reproduces this issue
https://github.com/Ravinou/borgwarehouse
SWC Info output
No response
Expected behavior
Only one of -gnu or -musl installed.
Actual behavior
Both -gnu and -musl binaries are installed.
Version
15.3.4
Additional context
No response