-
-
Notifications
You must be signed in to change notification settings - Fork 234
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
[CRIT] Source [pkg-config] not downloaded or not locked, you should download it first ! #288
Comments
Now Linux is purely statically compiled, and it cannot support methods such as ffi/dl and other dynamic linking methods for other libraries. If you are using macOS micro, you can use ffi and dl. By the way, Linux can actually support standalone PHP binary that are not fully statically linked and can use ffi/dl, but currently the main branch does not provide an option (because of glibc).
The
I just noticed this problem too. It seems that the freedesktop.org website is down. I have copied a previous source code archive to dl.static-php.dev, I'm working on #64 right now and will merge it soon, which contains the address to modify the pkgconfig download. If you need to compile now, you can use |
I don't think I understood this correctly. If I can't correctly use FFI, should it be "yes" here? |
I was able to build and create the standalone file, but I got into the FFI error you mentioned:
Is there a way around it? 😳 |
You didn't mention what type of operating system you are using (Linux or macOS), so I explained the different features of different systems. To put it simply, currently only static-php under macOS can use ffi/dl, and Linux cannot. |
I'm sorry. It's Linux.
So this should say "no" on the ffi line for Linux column, right? |
For linux, no. |
"no" as in it should not say "no"? Even though you just mentioned it doesn't work? 🤔 |
With the current main branch and project structure, we cannot directly build a It is possible to use ffi on Linux, but it will not be considered at this time. |
That's my point: The doc should say that FFI for Linux isn't supported, right? |
To be precise, it doesn't work, but it can be supported. Because ffi itself can be compiled inline into PHP, it means that it is supported, but it is another matter that it cannot be used. This has something to do with the limitations of the Linux kernel and has nothing to do with PHP. But you're right, I shouldn't describe linux ffi as yes without any comments inside the documentation. |
The documentation will be updated. static-php/static-php-cli-docs#7 |
When I try to run
./spc build ffi,mbstring,sodium --build-micro -I "ffi.enable=true"
I get the following error:There are no instructions in the documentation on how/where I should download the source. I tryied cloning the repository into
source
folder, tried adding the binary tobuildroot/bin
, but nothing worked.I tried to use the GitHub Actions built micro, but I get the following error when trying to execute:
I assume it's because
ffi.enable
needs to betrue
instead ofpreload
, but I'm unnable to set it without building it myself, and I'm unnable to build it, unfortunately.The text was updated successfully, but these errors were encountered: