crazywhalecc / static-php-cli

Build standalone PHP binary on Linux, macOS, FreeBSD, Windows, with PHP project together, with popular extensions included.
https://static-php.dev
MIT License
1.34k stars 233 forks source link

bug: Linux x86_64 build failed #416

Closed crazywhalecc closed 7 months ago

crazywhalecc commented 7 months ago

https://github.com/crazywhalecc/static-php-cli/actions/runs/8795280372/job/24136081565

simonhamp commented 7 months ago

Looks like you're trying to run f_passthru() in both src/SPC/util/WindowsCmd.php and src/SPC/util/UnixShell.php

But I don't think that function exists; isn't it fpassthru?

simonhamp commented 7 months ago

Ah no, I see you've got a custom f_passthru function

crazywhalecc commented 7 months ago

@simonhamp Maybe it's caused by imagemagick dependencies (openmp). And yeah we have some wrapper functions for debugging and logging.

simonhamp commented 7 months ago

I was bumping into it when trying to do a Windows build, but it turned out that I needed to run the doctor first

I haven't checked Linux builds directly, it just happened to look similar

simonhamp commented 7 months ago

I guess if nothing has changed in SPC, it may be that GitHub have changed the configuration of the hosted action runner images?

crazywhalecc commented 7 months ago

@simonhamp By default I did not modify any compilation script changes, the only change was that I introduced environment variables. But the error message shows a problem with openmp. I encountered this problem a long time ago.

EDIT: I just discovered it is indeed a problem caused by the introduction of environment variables last time. 😵