Skip to content

PHP 8.5beta2: build fails for ext/opcache/jit/tls/zend_jit_tls_x86_64.c on Solaris 11.4 #19657

@psumbera

Description

@psumbera

Description

Build fails on Solaris 11.4:

/bin/bash /builds/psumbera/userland-php-8.5/components/php/php85/build/amd64/libtool --silent --preserve-dup-deps --tag=CC --mode=compile /usr/gcc/14/bin/gcc -Iext/pdo_sqlite/ -I/builds/psumbera/userland-php-8
.5/components/php/php85/php-8.5.0/ext/pdo_sqlite/ -I/builds/psumbera/userland-php-8.5/components/php/php85/build/amd64/main -I/builds/psumbera/userland-php-8.5/components/php/php85/build/amd64 -I/builds/psumbe
ra/userland-php-8.5/components/php/php85/php-8.5.0/main -I/builds/psumbera/userland-php-8.5/components/php/php85/php-8.5.0 -I/builds/psumbera/userland-php-8.5/components/php/php85/build/amd64/ext/date/lib -I/b
uilds/psumbera/userland-php-8.5/components/php/php85/php-8.5.0/ext/date/lib -I/usr/include/libxml2 -I/usr/openssl/3/include -I/usr/include/pcre -I/usr/include/idn -I/usr/include/kerberosv5 -I/usr/include/encha
nt -I/usr/include/glib-2.0 -I/usr/lib/amd64/glib-2.0/include -I/usr/include/gd2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/webp -I/builds/psumbera/userland-php-8.5/components/php/php85/php
-8.5.0/ext/lexbor -I/builds/psumbera/userland-php-8.5/components/php/php85/php-8.5.0/ext/mbstring/libmbfl -I/builds/psumbera/userland-php-8.5/components/php/php85/build/amd64/ext/mbstring/libmbfl -I/builds/psu
mbera/userland-php-8.5/components/php/php85/php-8.5.0/ext/mbstring/libmbfl/mbfl -I/builds/psumbera/userland-php-8.5/components/php/php85/build/amd64/ext/mbstring/libmbfl/mbfl -I/builds/psumbera/userland-php-8.
5/components/php/php85/build/amd64/TSRM -I/builds/psumbera/userland-php-8.5/components/php/php85/build/amd64/Zend -I/builds/psumbera/userland-php-8.5/components/php/php85/php-8.5.0/Zend -I/builds/psumbera/user
land-php-8.5/components/php/php85/php-8.5.0/TSRM  -m64 -D_POSIX_PTHREAD_SEMANTICS -D_GNU_SOURCE -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -pthread  -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-o
p -Wduplicated-cond -Wno-clobbered -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -m64 -O3 -ffile-prefix-map=/builds/psumbera/userland-php-8.5/components/php/php85=. -gctf -std=gnu99 -DOPENSSL_NO_SSL2 -
DOPENSSL_NO_SSL3 -ffp-contract=off -fvisibility=hidden -pthread -DNDEBUG -DZTS -Wimplicit-fallthrough=1 -DZEND_SIGNALS    -c /builds/psumbera/userland-php-8.5/components/php/php85/php-8.5.0/ext/pdo_sqlite/pdo_
sqlite.c -o ext/pdo_sqlite/pdo_sqlite.lo  -MMD -MF ext/pdo_sqlite/pdo_sqlite.dep -MT ext/pdo_sqlite/pdo_sqlite.lo
/builds/psumbera/userland-php-8.5/components/php/php85/php-8.5.0/ext/opcache/jit/tls/zend_jit_tls_x86_64.c: In function 'zend_jit_tsrm_ls_cache_address':
/builds/psumbera/userland-php-8.5/components/php/php85/php-8.5.0/ext/opcache/jit/tls/zend_jit_tls_x86_64.c:218:17: error: unknown type name 'dtv_pointer_t'
  218 |                 dtv_pointer_t *dtv = *(dtv_pointer_t**)((uintptr_t)thread_pointer + DTV_OFFSET);
      |                 ^~~~~~~~~~~~~
/builds/psumbera/userland-php-8.5/components/php/php85/php-8.5.0/ext/opcache/jit/tls/zend_jit_tls_x86_64.c:218:40: error: 'dtv_pointer_t' undeclared (first use in this function)
  218 |                 dtv_pointer_t *dtv = *(dtv_pointer_t**)((uintptr_t)thread_pointer + DTV_OFFSET);
      |                                        ^~~~~~~~~~~~~
/builds/psumbera/userland-php-8.5/components/php/php85/php-8.5.0/ext/opcache/jit/tls/zend_jit_tls_x86_64.c:218:40: note: each undeclared identifier is reported only once for each function it appears in
/builds/psumbera/userland-php-8.5/components/php/php85/php-8.5.0/ext/opcache/jit/tls/zend_jit_tls_x86_64.c:218:55: error: expected expression before ')' token
  218 |                 dtv_pointer_t *dtv = *(dtv_pointer_t**)((uintptr_t)thread_pointer + DTV_OFFSET);
      |                                                       ^
/builds/psumbera/userland-php-8.5/components/php/php85/php-8.5.0/ext/opcache/jit/tls/zend_jit_tls_x86_64.c:219:48: error: expected expression before ')' token
  219 |                 return (void*)(((dtv_pointer_t*)((char*)dtv + module_index))->val + module_offset);
      |                                                ^

PHP Version

PHP 8.5.0beta2

Operating System

Solaris 11.4

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions