php / php-src

The PHP Interpreter
https://www.php.net
Other
37.97k stars 7.72k forks source link

Build failure mb_utf16be_to_wchar #13472

Open Jan1205 opened 7 months ago

Jan1205 commented 7 months ago

Description

/usr/bin/ld: dynamic STT_GNU_IFUNC symbol `mb_utf16be_to_wchar' with pointer equality in `ext/mbstring/libmbfl/filters/mbfilter_utf16.o' can not be used when making an executable; recompile with -fPIE and relink with -pie
collect2: error: ld returned 1 exit status
/usr/bin/ld: dynamic STT_GNU_IFUNC symbol `mb_utf16be_to_wchar' with pointer equality in `ext/mbstring/libmbfl/filters/mbfilter_utf16.o' can not be used when making an executable; recompile with -fPIE and relink with -pie
/usr/bin/ld: dynamic STT_GNU_IFUNC symbol `mb_utf16be_to_wchar' with pointer equality in `ext/mbstring/libmbfl/filters/mbfilter_utf16.o' can not be used when making an executable; recompile with -fPIE and relink with -pie
/usr/bin/ld: dynamic STT_GNU_IFUNC symbol `mb_utf16be_to_wchar' with pointer equality in `ext/mbstring/libmbfl/filters/mbfilter_utf16.o' can not be used when making an executable; recompile with -fPIE and relink with -pie

gcc version 4.9.2

PHP Version

PHP 8.3.3

Operating System

No response

youkidearitai commented 7 months ago

I don't know about PIE well, does the current linker require PIE? I'm curious that the GCC version is old.

Girgias commented 7 months ago

You are using a GCC version that was release in 2014, I am guessing that you are on RHEL 7 which is EOL on 2024-06-30 so I'm not sure if it is worth it for us to fix if this is caused by the old GCC version.

nielsdos commented 7 months ago

This is the same error as https://github.com/php/php-src/issues/12774

Jan1205 commented 7 months ago

@nielsdos Thank you for your hint!