Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(next-swc): linux glibc compatible issue #34481

Merged
merged 2 commits into from Feb 18, 2022

Conversation

Brooooooklyn
Copy link
Member

@Brooooooklyn Brooooooklyn commented Feb 17, 2022

Fix GLIBC compatible issues:

Should also fix:

Refactored jobs tested in https://github.com/Brooooooklyn/next.js/runs/5233199833?check_suite_focus=true

objdump in next@12.0.10

Symbols node_modules/@next/swc-linux-x64-gnu/next-swc.linux-x64-gnu.node: file format elf64-x86-64

DYNAMIC SYMBOL TABLE:
0000000000000000 D UND 0000000000000000 napi_resolve_deferred
0000000000000000 DF UND 0000000000000000 GLIBC_2.3.4 __xpg_strerror_r
0000000000000000 D UND 0000000000000000 napi_typeof
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_setspecific
0000000000000000 DF UND 0000000000000000 GLIBC_2.3.2 pthread_cond_destroy
0000000000000000 DF UND 0000000000000000 GLIBC_2.4 __stack_chk_fail
0000000000000000 DF UND 0000000000000000 GCC_3.0 _Unwind_GetRegionStart
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 memset
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 fputs
0000000000000000 DF UND 0000000000000000 GCC_3.3 _Unwind_FindEnclosingFunction
0000000000000000 DF UND 0000000000000000 GCC_3.0 _Unwind_GetTextRelBase
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 setgroups
0000000000000000 DO UND 0000000000000000 GLIBC_2.2.5 stdout
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 madvise
0000000000000000 DF UND 0000000000000000 GLIBC_2.3 realpath
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 posix_spawn_file_actions_adddup2
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pow
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 sigaltstack
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_self
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 trunc
0000000000000000 DF UND 0000000000000000 GLIBC_2.3.4 __strncat_chk
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_attr_setstacksize
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 sigemptyset
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_detach
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 __fxstat64
0000000000000000 DF UND 0000000000000000 GLIBC_2.3.2 pthread_cond_broadcast
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 strtol
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 __cxa_atexit
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 round
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 sigaddset
0000000000000000 DF UND 0000000000000000 GCC_3.0 _Unwind_RaiseException
0000000000000000 DF UND 0000000000000000 GLIBC_2.15 posix_spawnp
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 memcmp
0000000000000000 D UND 0000000000000000 napi_queue_async_work
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_rwlock_wrlock
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 floor
0000000000000000 DF UND 0000000000000000 GLIBC_2.3.4 __vsnprintf_chk
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_key_create
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 close
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_mutexattr_destroy
0000000000000000 D UND 0000000000000000 napi_throw_error
0000000000000000 DF UND 0000000000000000 GLIBC_2.3 __ctype_toupper_loc
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 poll
0000000000000000 D UND 0000000000000000 napi_reject_deferred
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 signal
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 getcwd
0000000000000000 w D UND 0000000000000000 gmon_start
0000000000000000 D UND 0000000000000000 napi_get_value_string_utf8
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 posix_spawnattr_setsigmask
0000000000000000 D UND 0000000000000000 napi_create_promise
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 dup2
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_attr_getguardsize
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 __xstat64
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_attr_getstack
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 strerror
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 getenv
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 read
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 memrchr
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_rwlock_rdlock
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 fmod
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 fork
0000000000000000 DF UND 0000000000000000 GCC_3.3 _Unwind_Backtrace
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 posix_spawn_file_actions_destroy
0000000000000000 D UND 0000000000000000 napi_get_value_bool
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 setuid
0000000000000000 DF UND 0000000000000000 GLIBC_2.9 pipe2
0000000000000000 DF UND 0000000000000000 GLIBC_2.3.4 __snprintf_chk
0000000000000000 DF UND 0000000000000000 GCC_3.0 _Unwind_SetIP
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 dlsym
0000000000000000 D UND 0000000000000000 napi_create_error
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_mutex_destroy
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 access
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 ioctl
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 strncpy
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 localtime_r
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 memmove
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 syscall
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 readlink
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 fma
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 getuid
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 sin
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_mutex_init
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 strlen
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 posix_spawnattr_setflags
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 posix_spawn_file_actions_init
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 strstr
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_key_delete
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_getattr_np
0000000000000000 D UND 0000000000000000 napi_get_buffer_info
0000000000000000 DO UND 0000000000000000 GLIBC_2.2.5 stderr
0000000000000000 DF UND 0000000000000000 GCC_3.0 _Unwind_Resume
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 posix_spawnattr_destroy
0000000000000000 DF UND 0000000000000000 GLIBC_2.3.2 pthread_cond_signal
0000000000000000 w DF UND 0000000000000000 GLIBC_2.18 __cxa_thread_atexit_impl
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_mutex_trylock
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 writev
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 clock_gettime
0000000000000000 D UND 0000000000000000 napi_delete_async_work
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_getspecific
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_condattr_destroy
0000000000000000 DF UND 0000000000000000 GCC_3.0 _Unwind_DeleteException
0000000000000000 D UND 0000000000000000 napi_create_function
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 prctl
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 waitpid
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 lseek64
0000000000000000 D UND 0000000000000000 napi_set_named_property
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 cos
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 posix_spawnattr_init
0000000000000000 DF UND 0000000000000000 GCC_3.0 _Unwind_GetIP
0000000000000000 w D UND 0000000000000000 _ITM_registerTMCloneTable
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 execvp
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 ceil
0000000000000000 DO UND 0000000000000000 GLIBC_2.2.5 environ
0000000000000000 D UND 0000000000000000 napi_get_cb_info
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_mutexattr_init
0000000000000000 D UND 0000000000000000 napi_coerce_to_object
0000000000000000 D UND 0000000000000000 napi_throw
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 mprotect
0000000000000000 DF UND 0000000000000000 GLIBC_2.14 memcpy
0000000000000000 w D UND 0000000000000000 _ITM_deregisterTMCloneTable
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_attr_init
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 fcntl
0000000000000000 DF UND 0000000000000000 GCC_4.2.0 _Unwind_GetIPInfo
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 free
0000000000000000 w DF UND 0000000000000000 GLIBC_2.2.5 __cxa_finalize
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_mutex_unlock
0000000000000000 DF UND 0000000000000000 GCC_3.0 _Unwind_GetDataRelBase
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_mutex_lock
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 dl_iterate_phdr
0000000000000000 DF UND 0000000000000000 GLIBC_2.3.4 sched_getaffinity
0000000000000000 DF UND 0000000000000000 GCC_3.0 _Unwind_SetGR
0000000000000000 DF UND 0000000000000000 GLIBC_2.3.2 pthread_cond_init
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 memchr
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 open
0000000000000000 DF UND 0000000000000000 GLIBC_2.3 __tls_get_addr
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 log10
0000000000000000 DF UND 0000000000000000 GLIBC_2.3.2 pthread_cond_wait
0000000000000000 D UND 0000000000000000 napi_create_async_work
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 sysconf
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 munmap
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 log2
0000000000000000 DF UND 0000000000000000 GLIBC_2.3.3 pthread_condattr_setclock
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_attr_destroy
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 bcmp
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_create
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 posix_spawnattr_setsigdefault
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 abort
0000000000000000 D UND 0000000000000000 napi_create_string_utf8
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_condattr_init
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_sigmask
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_mutexattr_settype
0000000000000000 DO UND 0000000000000000 GLIBC_2.2.5 __environ
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 mmap
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 __errno_location
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 _exit
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 write
0000000000000000 DF UND 0000000000000000 GCC_3.3 _Unwind_GetCFA
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 getrusage
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_rwlock_unlock
0000000000000000 DF UND 0000000000000000 GCC_3.0 _Unwind_GetLanguageSpecificData
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 sched_yield
0000000000000000 D UND 0000000000000000 napi_create_object
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 setgid
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 chdir
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 open64
000000000039bbd0 g DF .text 000000000000032a Base napi_register_module_v1
0000000001ddd750 g DF .text 00000000000002e5 Base rust_eh_personality

There is 0000000000000000 w DF *UND* 0000000000000000 GLIBC_2.18 __cxa_thread_atexit_impl introduced by rust-lang/rust#36826

objdump in current branch

Symbols next-swc.linux-x64-gnu.node: file format elf64-x86-64

DYNAMIC SYMBOL TABLE:
0000000000000000 w D UND 0000000000000000 Base gmon_start
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 memcpy
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 trunc
0000000000000000 DF UND 0000000000000000 GLIBC_2.3 __tls_get_addr
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 bcmp
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 memmove
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 memset
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_mutex_lock
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_mutex_trylock
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 memcmp
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_mutex_unlock
0000000000000000 D UND 0000000000000000 Base napi_create_function
0000000000000000 D UND 0000000000000000 Base napi_set_named_property
0000000000000000 D UND 0000000000000000 Base napi_create_string_utf8
0000000000000000 D UND 0000000000000000 Base napi_coerce_to_object
0000000000000000 D UND 0000000000000000 Base napi_get_cb_info
0000000000000000 D UND 0000000000000000 Base napi_create_error
0000000000000000 D UND 0000000000000000 Base napi_throw
0000000000000000 D UND 0000000000000000 Base napi_throw_error
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 fma
0000000000000000 D UND 0000000000000000 Base napi_create_object
0000000000000000 D UND 0000000000000000 Base napi_create_promise
0000000000000000 D UND 0000000000000000 Base napi_create_async_work
0000000000000000 D UND 0000000000000000 Base napi_queue_async_work
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 strlen
0000000000000000 D UND 0000000000000000 Base napi_get_value_string_utf8
0000000000000000 D UND 0000000000000000 Base napi_get_value_bool
0000000000000000 D UND 0000000000000000 Base napi_typeof
0000000000000000 D UND 0000000000000000 Base napi_get_buffer_info
0000000000000000 D UND 0000000000000000 Base napi_reject_deferred
0000000000000000 D UND 0000000000000000 Base napi_resolve_deferred
0000000000000000 D UND 0000000000000000 Base napi_delete_async_work
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 close
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pow
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 round
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 localtime_r
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 log10
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 cos
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 sin
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 fmod
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 ceil
0000000000000000 DF UND 0000000000000000 GLIBC_2.3.2 pthread_cond_wait
0000000000000000 DF UND 0000000000000000 GLIBC_2.3.4 sched_getaffinity
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 sysconf
0000000000000000 DF UND 0000000000000000 GLIBC_2.3.4 __xpg_strerror_r
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 syscall
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 __errno_location
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 read
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 open64
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 poll
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 log2
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 munmap
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 mmap
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 dl_iterate_phdr
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 clock_gettime
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 getrusage
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 snprintf
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 access
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 vsnprintf
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 madvise
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 strerror
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 mprotect
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_setspecific
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 memchr
0000000000000000 DF UND 0000000000000000 GLIBC_2.3 realpath
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 getenv
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_key_create
0000000000000000 DO UND 0000000000000000 GLIBC_2.2.5 stderr
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 fputs
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 strncat
0000000000000000 DO UND 0000000000000000 GLIBC_2.2.5 environ
0000000000000000 DF UND 0000000000000000 GLIBC_2.3 __ctype_toupper_loc
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 strncpy
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 strstr
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 strtol
0000000000000000 DO UND 0000000000000000 GLIBC_2.2.5 stdout
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 posix_spawnattr_destroy
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 posix_spawn_file_actions_destroy
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_mutexattr_destroy
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_rwlock_unlock
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_mutex_destroy
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 sched_yield
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 getcwd
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_rwlock_rdlock
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_rwlock_wrlock
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 getuid
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 write
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 fcntl
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 lseek64
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 writev
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 memrchr
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 ioctl
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 waitpid
0000000000000000 DF UND 0000000000000000 GLIBC_2.3.2 pthread_cond_broadcast
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_condattr_init
0000000000000000 DF UND 0000000000000000 GLIBC_2.3.3 pthread_condattr_setclock
0000000000000000 DF UND 0000000000000000 GLIBC_2.3.2 pthread_cond_init
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_condattr_destroy
0000000000000000 DF UND 0000000000000000 GLIBC_2.3.2 pthread_cond_signal
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 sigaltstack
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 abort
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 signal
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_self
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_getattr_np
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_attr_getstack
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_attr_destroy
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 malloc
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 free
0000000000000000 DF UND 0000000000000000 GLIBC_2.3.2 pthread_cond_destroy
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_mutexattr_init
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_mutexattr_settype
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_mutex_init
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_getspecific
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_key_delete
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 dlsym
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 readlink
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 chdir
0000000000000000 DF UND 0000000000000000 GLIBC_2.9 pipe2
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_attr_init
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_attr_setstacksize
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_create
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 prctl
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_detach
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_attr_getguardsize
0000000000000000 w D UND 0000000000000000 Base __cxa_thread_atexit_impl
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 posix_spawnattr_init
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 posix_spawn_file_actions_init
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 posix_spawn_file_actions_adddup2
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 sigemptyset
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 posix_spawnattr_setsigmask
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 sigaddset
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 posix_spawnattr_setsigdefault
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 posix_spawnattr_setflags
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 fork
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 posix_spawnp
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 _exit
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 dup2
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 setgroups
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 setgid
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 setuid
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 pthread_sigmask
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 execvp
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 fprintf
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 fflush
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 dladdr
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 fwrite
0000000000000000 DF UND 0000000000000000 GLIBC_2.2.5 __cxa_atexit
0000000002830dc0 g DF .text 00000000000002e5 Base rust_eh_personality
0000000000e10380 g DF .text 000000000000032a Base napi_register_module_v1

No more GLIBC_2.18 symbols.

Confirm it works on centos:7 docker image.

@Brooooooklyn Brooooooklyn changed the title build: linux glibc compatible issue build(next-swc): linux glibc compatible issue Feb 17, 2022
@ijjk

This comment has been hidden.

styfle
styfle previously approved these changes Feb 17, 2022
Copy link
Member

@styfle styfle left a comment

Thanks! 🐧

@Brooooooklyn Brooooooklyn force-pushed the glibc-2.17 branch 2 times, most recently from e3afd51 to 44cb422 Feb 18, 2022
@ijjk
Copy link
Member

@ijjk ijjk commented Feb 18, 2022

Failing test suites

Commit: 44cb422

yarn testheadless test/integration/create-next-app/index.test.js

  • create next app > empty directory
Expand output

● create next app › empty directory

expect(received).toBeTruthy()

Received: false

  50 |         expect(
  51 |           fs.existsSync(path.join(cwd, projectName, 'pages/index.js'))
> 52 |         ).toBeTruthy()
     |           ^
  53 |         expect(
  54 |           fs.existsSync(path.join(cwd, projectName, '.eslintrc.json'))
  55 |         ).toBeTruthy()

  at integration/create-next-app/index.test.js:52:11
  at usingTempDir (integration/create-next-app/index.test.js:18:5)
  at Object.<anonymous> (integration/create-next-app/index.test.js:42:7)

Read more about building and testing Next.js in contributing.md.

yarn testheadless test/integration/ondemand/test/index.test.js

  • On Demand Entries > should navigate to pages with dynamic imports
Expand output

● On Demand Entries › should navigate to pages with dynamic imports

TIMED OUT: /Hello/

/nav/dynamic

  474 |
  475 |   if (hardError) {
> 476 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content)
      |           ^
  477 |   }
  478 |   return false
  479 | }

  at Object.check (lib/next-test-utils.js:476:11)
  at Object.<anonymous> (integration/ondemand/test/index.test.js:128:7)

Read more about building and testing Next.js in contributing.md.

@ijjk

This comment has been hidden.

@ijjk

This comment has been hidden.

ijjk
ijjk approved these changes Feb 18, 2022
Copy link
Member

@ijjk ijjk left a comment

Thanks! 🙌

@ijjk

This comment has been hidden.

@ijjk
Copy link
Member

@ijjk ijjk commented Feb 18, 2022

Stats from current PR

Default Build (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary Brooooooklyn/next.js glibc-2.17 Change
buildDuration 15.8s 15.7s -89ms
buildDurationCached 6.1s 6s -106ms
nodeModulesSize 359 MB 359 MB ⚠️ +25 B
Page Load Tests Overall decrease ⚠️
vercel/next.js canary Brooooooklyn/next.js glibc-2.17 Change
/ failed reqs 0 0
/ total time (seconds) 3.019 3.022 0
/ avg req/sec 828.05 827.36 ⚠️ -0.69
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.332 1.336 0
/error-in-render avg req/sec 1876.55 1871.96 ⚠️ -4.59
Client Bundles (main, webpack, commons)
vercel/next.js canary Brooooooklyn/next.js glibc-2.17 Change
450.HASH.js gzip 179 B 179 B
framework-HASH.js gzip 42 kB 42 kB
main-HASH.js gzip 27.9 kB 27.9 kB
webpack-HASH.js gzip 1.44 kB 1.44 kB
Overall change 71.5 kB 71.5 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Brooooooklyn/next.js glibc-2.17 Change
polyfills-HASH.js gzip 31 kB 31 kB
Overall change 31 kB 31 kB
Client Pages
vercel/next.js canary Brooooooklyn/next.js glibc-2.17 Change
_app-HASH.js gzip 1.36 kB 1.36 kB
_error-HASH.js gzip 194 B 194 B
amp-HASH.js gzip 312 B 312 B
css-HASH.js gzip 326 B 326 B
dynamic-HASH.js gzip 2.57 kB 2.57 kB
head-HASH.js gzip 350 B 350 B
hooks-HASH.js gzip 919 B 919 B
image-HASH.js gzip 5.05 kB 5.05 kB
index-HASH.js gzip 263 B 263 B
link-HASH.js gzip 2.26 kB 2.26 kB
routerDirect..HASH.js gzip 321 B 321 B
script-HASH.js gzip 383 B 383 B
withRouter-HASH.js gzip 318 B 318 B
85e02e95b279..7e3.css gzip 107 B 107 B
Overall change 14.7 kB 14.7 kB
Client Build Manifests
vercel/next.js canary Brooooooklyn/next.js glibc-2.17 Change
_buildManifest.js gzip 460 B 460 B
Overall change 460 B 460 B
Rendered Page Sizes
vercel/next.js canary Brooooooklyn/next.js glibc-2.17 Change
index.php gzip 532 B 532 B
link.html gzip 545 B 545 B
withRouter.html gzip 526 B 526 B
Overall change 1.6 kB 1.6 kB

Default Build with SWC (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary Brooooooklyn/next.js glibc-2.17 Change
buildDuration 19.2s 19.1s -134ms
buildDurationCached 6.1s 6.2s ⚠️ +68ms
nodeModulesSize 359 MB 359 MB ⚠️ +25 B
Page Load Tests Overall decrease ⚠️
vercel/next.js canary Brooooooklyn/next.js glibc-2.17 Change
/ failed reqs 0 0
/ total time (seconds) 3.031 3.016 -0.02
/ avg req/sec 824.68 828.83 +4.15
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.326 1.33 0
/error-in-render avg req/sec 1885.14 1879.61 ⚠️ -5.53
Client Bundles (main, webpack, commons)
vercel/next.js canary Brooooooklyn/next.js glibc-2.17 Change
450.HASH.js gzip 179 B 179 B
framework-HASH.js gzip 42.1 kB 42.1 kB
main-HASH.js gzip 27.9 kB 27.9 kB
webpack-HASH.js gzip 1.44 kB 1.44 kB
Overall change 71.7 kB 71.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Brooooooklyn/next.js glibc-2.17 Change
polyfills-HASH.js gzip 31 kB 31 kB
Overall change 31 kB 31 kB
Client Pages
vercel/next.js canary Brooooooklyn/next.js glibc-2.17 Change
_app-HASH.js gzip 1.35 kB 1.35 kB
_error-HASH.js gzip 180 B 180 B
amp-HASH.js gzip 305 B 305 B
css-HASH.js gzip 321 B 321 B
dynamic-HASH.js gzip 2.56 kB 2.56 kB
head-HASH.js gzip 342 B 342 B
hooks-HASH.js gzip 911 B 911 B
image-HASH.js gzip 5.08 kB 5.08 kB
index-HASH.js gzip 256 B 256 B
link-HASH.js gzip 2.28 kB 2.28 kB
routerDirect..HASH.js gzip 314 B 314 B
script-HASH.js gzip 375 B 375 B
withRouter-HASH.js gzip 309 B 309 B
85e02e95b279..7e3.css gzip 107 B 107 B
Overall change 14.7 kB 14.7 kB
Client Build Manifests
vercel/next.js canary Brooooooklyn/next.js glibc-2.17 Change
_buildManifest.js gzip 459 B 459 B
Overall change 459 B 459 B
Rendered Page Sizes
vercel/next.js canary Brooooooklyn/next.js glibc-2.17 Change
index.php gzip 533 B 533 B
link.html gzip 547 B 547 B
withRouter.html gzip 527 B 527 B
Overall change 1.61 kB 1.61 kB
Commit: 304eb8c

@kodiakhq kodiakhq bot merged commit 924b71c into vercel:canary Feb 18, 2022
32 of 35 checks passed
@Brooooooklyn Brooooooklyn deleted the glibc-2.17 branch Feb 22, 2022
kodiakhq bot pushed a commit that referenced this issue Feb 24, 2022
Fix #33530

`Android arm` is supported in #34481, but `@napi-rs/triples` was forgotten to upgrade in the previous pull request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants