[php-src] Issue #13725: php-8.1.27 on Solaris-SPARC 5.11 make fails for 64-bit.

From: Date: Fri, 15 Mar 2024 17:54:40 +0000
Subject: [php-src] Issue #13725: php-8.1.27 on Solaris-SPARC 5.11 make fails for 64-bit.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246591@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/13725 Author: hicham65 ### Description I have openssl-3.2.0 & zlib-1.2.11 were compiled for 64-bit. The configure command used is: ``` CC="cc -m64" \ ONIG_CFLAGS=-I$onig_tmp_installation_dir/include \ ONIG_LIBS="-L$onig_tmp_installation_dir/lib -lonig" \ ZLIB_CFLAGS=-I$zlib_install_dir/include \ ZLIB_LIBS="-L$zlib_install_dir/lib -lz" \ ./configure \ --with-apxs2=$apache_install_dir/bin/apxs \ --prefix=$php_install_dir \ --enable-ftp --enable-sockets \ --enable-sysvmsg --enable-sysvshm --enable-sysvsem \ --enable-sigchild --enable-mbstring --enable-bcmath \ --with-oci8 --with-zlib \ --without-openssl --without-libxml \ --without-sqlite3 --without-pdo-sqlite --without-mysqli \ --disable-xml --disable-simplexml \ --disable-xmlreader --disable-xmlwriter \ --disable-phar --disable-dom > configure.out 2>&1 ``` The make failed with the following error: ``` "/tmp/compile/php-8.1.27/ext/pcre/pcre2lib/pcre2_jit_compile.c", line 9470: duplicate case in switch: 0 cc: acomp failed for /tmp/compile/php-8.1.27/ext/pcre/pcre2lib/pcre2_jit_compile.c gmake: *** [Makefile:631: ext/pcre/pcre2lib/pcre2_jit_compile.lo] Error 1 ``` ``` Line 9470: SLJIT_COMPILE_ASSERT(sizeof (PCRE2_SIZE) <= sizeof (sljit_sw), pcre2_size_must_be_lower_than_sljit_sw_size); ``` 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. ``` :/tmp/compile/php-8.1.27/ext/pcre/pcre2lib/sljit$ ls -lt *64* -rw-r--r-- 1 hhadjali dba 62744 Dec 19 14:35 sljitNativeARM_64.c -rw-r--r-- 1 hhadjali dba 25321 Dec 19 14:35 sljitNativeMIPS_64.c -rw-r--r-- 1 hhadjali dba 17621 Dec 19 14:35 sljitNativePPC_64.c -rw-r--r-- 1 hhadjali dba 26119 Dec 19 14:35 sljitNativeX86_64.c :/tmp/compile/php-8.1.27/ext/pcre/pcre2lib/sljit$ :/tmp/compile/php-8.1.27/ext/pcre/pcre2lib/sljit$ :/tmp/compile/php-8.1.27/ext/pcre/pcre2lib/sljit$ :/tmp/compile/php-8.1.27/ext/pcre/pcre2lib/sljit$ ls -lt *32* -rw-r--r-- 1 hhadjali dba 83884 Dec 19 14:35 sljitNativeARM_32.c -rw-r--r-- 1 hhadjali dba 74605 Dec 19 14:35 sljitNativeARM_T2_32.c -rw-r--r-- 1 hhadjali dba 24389 Dec 19 14:35 sljitNativeMIPS_32.c -rw-r--r-- 1 hhadjali dba 10540 Dec 19 14:35 sljitNativePPC_32.c -rw-r--r-- 1 hhadjali dba 11172 Dec 19 14:35 sljitNativeSPARC_32.c -rw-r--r-- 1 hhadjali dba 27723 Dec 19 14:35 sljitNativeX86_32.c :/tmp/compile/php-8.1.27/ext/pcre/pcre2lib/sljit$ ``` Any thoughts appreciated. ### PHP Version PHP 8.1.27 ### Operating System SunOS 5.11-SPARC

« previous php.bugs (#246591) next »