Skip to content

Build failure mb_utf16be_to_wchar #13472

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

Closed
Jan1205 opened this issue Feb 22, 2024 · 5 comments
Closed

Build failure mb_utf16be_to_wchar #13472

Jan1205 opened this issue Feb 22, 2024 · 5 comments

Comments

@Jan1205
Copy link

Jan1205 commented Feb 22, 2024

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
Copy link
Contributor

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

@Girgias
Copy link
Member

Girgias commented Feb 22, 2024

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
Copy link
Member

This is the same error as #12774

@Jan1205
Copy link
Author

Jan1205 commented Feb 23, 2024

@nielsdos Thank you for your hint!

@nielsdos
Copy link
Member

Closing as duplicate of #12774, it's a compiler bug anyway that the outdated distro ships with, and RHEL7 and CentOS is out of support now.

@nielsdos nielsdos closed this as not planned Won't fix, can't repro, duplicate, stale Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants