-
Notifications
You must be signed in to change notification settings - Fork 7.9k
php-8.1.27 on Solaris-SPARC 5.11 make fails for 64-bit. #13725
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
Comments
Thanks for the report. Do you have eventually an existing pcre2 package (or an existing build) so you can use configure's option |
PHP 8.1 is no longer in active support. PHP 8.2 comes with libpcre2 10.43, which apparently dropped its "never completed" support for SPARC. I assume compiling |
I re-arranged my configure command as follow: to clearly specify the external pcre2-8 package I prepared
Then the make failed with the following issue:
|
for what I gather here and there, it seems to depend to what is passed to the |
No, not that one. |
I have added the --without-pcre-jit, but I get the same "ld: fatal: relocation error: R_SPARC_M44:" I have attache dthe config.log configure.out and Makefile config.log
|
It is not obvious I admit, but the |
I had to make the pcre package with --host=sparc This gave me a successful PHP gmake.
However, when I run "gmake test" I get a 98.6% test failure. Some of the errors in the output file is below:
the modules location is below, I also attached the tests output. :/tmp/compile/php-8.1.27/modules$ ls -lt Regards |
I see. As mentioned in the other issue, would giving a shot to gcc work for you ? |
I don't have gcc available. I am getting the 98.6% failures when running "gmake test" Most of the errors are similar to this:
pcre_globals is another “OBJT GLOB” in opcache.so which is present in sapi/cli/php (same as the function pointer zend_inheritance_cache_get which also was causing similar problems): d14:/tmp/compile/php-8.1.27$ nm modules/opcache.so | grep pcre_globals And there are a couple dozen more. Is this a linking issue I am missing during my configure/make? |
Problem is ; php is guaranteed to work with the gcc, clang for the main unixes then visual studio for Windows through our CI. Now, php also supports solaris/illumos distributions as a lesser tier platform (no CI but some of us run those to fix issues and port new features whenever it makes sense and is possible). But ... it is still with gcc/clang and from a reasonable timeline (ie from Solaris 10/11). |
Description
I have openssl-3.2.0 & zlib-1.2.11 were compiled for 64-bit.
The configure command used is:
The make failed with the following error:
It seems that the size issue (above) could be due to 32 or 64 bit.
Also, I see in the make output showing we are using sljitNativeSPARC_32
"/tmp/compile/php-8.1.27/ext/pcre/pcre2lib/sljit/sljitNativeSPARC_32.c", line 250: warning: integer overflow detected: op "<<"
I can't see SPARC_64 while SPARC_32 is there.
Any thoughts appreciated.
PHP Version
PHP 8.1.27
Operating System
SunOS 5.11-SPARC
The text was updated successfully, but these errors were encountered: