Skip to content

Stabilize legacy packages for GCC 15 / C23 compatibility#388

Merged
frangarcj merged 52 commits into
masterfrom
gcc-15
May 17, 2026
Merged

Stabilize legacy packages for GCC 15 / C23 compatibility#388
frangarcj merged 52 commits into
masterfrom
gcc-15

Conversation

@frangarcj
Copy link
Copy Markdown
Contributor

This PR addresses the build failures in 10 packages caused by the transition to GCC 15 and C23.

Changes:

  • Forced -std=gnu11 / -std=gnu++11: Restores old-style function prototype behavior to prevent errors with getopt, getenv, etc.
  • Compatibility Flags: Added -Wno-error=implicit-function-declaration and -Wno-error=int-conversion to all failing packages.
  • Pixman Assembler Fix:
    • Replaced | with + in macros (fix for new ARM GAS comment interpretation).
    • Fixed numeric labels with leading zeros (01f -> 1f) which are no longer supported.

Affected Packages:

  • taipool, opus, openal-soft, libconfig (CMake)
  • pixman, lame, libmpeg2, onigmo (Autotools)
  • bzip2, libftpvita (Makefile)

@isage isage mentioned this pull request Apr 26, 2026
@d3m3vilurr
Copy link
Copy Markdown
Contributor

d3m3vilurr commented May 15, 2026

python2 failed

/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/15.2.0/../../../../arm-vita-eabi/bin/ld: /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/15.2.0/../../../../arm-vita-eabi/lib/libcrypto.a(threads_pthread.o): in function `CRYPTO_THREAD_lock_new':
(.text+0x36): undefined reference to `pthread_rwlock_init'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/15.2.0/../../../../arm-vita-eabi/bin/ld: /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/15.2.0/../../../../arm-vita-eabi/lib/libcrypto.a(threads_pthread.o): in function `CRYPTO_THREAD_read_lock':
(.text+0x5e): undefined reference to `pthread_rwlock_rdlock'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/15.2.0/../../../../arm-vita-eabi/bin/ld: /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/15.2.0/../../../../arm-vita-eabi/lib/libcrypto.a(threads_pthread.o): in function `CRYPTO_THREAD_write_lock':
(.text+0x6e): undefined reference to `pthread_rwlock_wrlock'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/15.2.0/../../../../arm-vita-eabi/bin/ld: /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/15.2.0/../../../../arm-vita-eabi/lib/libcrypto.a(threads_pthread.o): in function `CRYPTO_THREAD_unlock':
(.text+0x7e): undefined reference to `pthread_rwlock_unlock'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/15.2.0/../../../../arm-vita-eabi/bin/ld: /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/15.2.0/../../../../arm-vita-eabi/lib/libcrypto.a(threads_pthread.o): in function `CRYPTO_THREAD_lock_free':
(.text+0x92): undefined reference to `pthread_rwlock_destroy'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/15.2.0/../../../../arm-vita-eabi/bin/ld: /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/15.2.0/../../../../arm-vita-eabi/lib/libcrypto.a(threads_pthread.o): in function `CRYPTO_THREAD_run_once':
(.text+0xae): undefined reference to `pthread_once'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/15.2.0/../../../../arm-vita-eabi/bin/ld: /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/15.2.0/../../../../arm-vita-eabi/lib/libcrypto.a(threads_pthread.o): in function `openssl_init_fork_handlers':
(.text+0x12e): undefined reference to `pthread_once'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/15.2.0/../../../../arm-vita-eabi/bin/ld: /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/15.2.0/../../../../arm-vita-eabi/lib/libcrypto.a(threads_pthread.o): in function `fork_once_func':
(.text+0x18): undefined reference to `pthread_atfork'
collect2: error: ld returned 1 exit status
make: *** [Makefile:507: python] Error 1
==> ERROR: A failure occurred in package().
    Aborting...
Error: Process completed with exit code 2.

frangarcj and others added 25 commits May 17, 2026 13:19
Co-authored-by: scribam <scribam@users.noreply.github.com>
@frangarcj frangarcj merged commit 8c6e384 into master May 17, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants