Skip to content

Unable to build libde265 on ARM64 macOS #1116

@mpociot

Description

@mpociot

Hey!

I am trying to build PHP 8.5 (also fails on 8.4) but get an error with libde265 in my GitHub action workflow.

Operating System: macOS 14.8.5 (also fails on 15.x)
GitHub Image: macos-14-arm64
GitHub Image Version: 20260413.0223.1
Extension list:

intl,pdo_sqlite,sqlite3,curl,openssl,tokenizer,bcmath,bz2,calendar,dba,ftp,iconv,mysqli,mbstring,mbregex,xml,simplexml,ctype,dom,pdo,filter,session,zlib,fileinfo,pdo_mysql,posix,sockets,shmop,sodium,sysvmsg,sysvsem,sysvshm,gd,zip,gmp,redis,xmlwriter,phar,exif,xmlreader,readline,pcntl,soap,imagick,ffi,password-argon2,pgsql,pdo_pgsql,imap,ldap,xsl,igbinary,zstd,gettext,mongodb,sqlsrv,pdo_sqlsrv,opcache

Error from log: https://gist.github.com/mpociot/aacdaaa81cd6e73760007527a09aafff

Reproduced with the latest nightly and stable build of static-php-cli.

I was able to fix this (with the help of AI) by modifying macos/library/libde265.php and add:

'-DHAVE_ARM=OFF'

But I'm not sure if this is really the right way to prevent this from happening.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions