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

Compilation error: 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 #183

Open
aep-sunlife opened this issue Dec 12, 2024 · 2 comments

Comments

@aep-sunlife
Copy link

aep-sunlife commented Dec 12, 2024

Provide environment information

When I try to install PHP, then I get a compilation error.

PHP 8.3.11
RHEL 8

To Reproduce

$ asdf install php 8.3.11
/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
make: *** [Makefile:323: sapi/fpm/php-fpm] Error 1

Describe the Bug

Some kind of PIE related compilation error occurs when installing PHP.

As an aside, several packages were needed but not documented in the PHP instructions:

  • Unclear which versions of re2c are supported
  • Python > 3.7 (for latest re2c)
  • libxml2-dev(el)
  • libcurl-dev(el)
  • gd-dev(el)
  • libicu-dev(el)
  • oniguruma-dev(el)
  • libpq-dev(el)
  • libzip-dev(el)

Expected Behaviour

asdf install php 8.3.11 should succeed.

@aep-sunlife
Copy link
Author

Update:

Potentially an issue with running out of memory during compilation, on what is a rather busy server.

https://forums.raspberrypi.com/viewtopic.php?t=12466

@aep-sunlife
Copy link
Author

Update:

With 10 GB of spare RAM, still getting PIE related compilation errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant