You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
############## end of uWSGI configuration #############
total build time: 5 seconds
*** uWSGI is ready, launch it with ./uwsgi ***
/nix/store/vfdz6kar96xlzqljh7l6lprm4la84diz-php-7.1.2/bin/php-config: line 20: out: command not found
/nix/store/vfdz6kar96xlzqljh7l6lprm4la84diz-php-7.1.2/bin/php-config: line 20: out: command not found
/nix/store/vfdz6kar96xlzqljh7l6lprm4la84diz-php-7.1.2/bin/php-config: line 20: out: command not found
/nix/store/vfdz6kar96xlzqljh7l6lprm4la84diz-php-7.1.2/bin/php-config: line 20: out: command not found
In file included from plugins/php/php_plugin.c:1:0:
plugins/php/common.h:1:17: fatal error: php.h: No such file or directory
compilation terminated.
4 27.7M 4 1271k 0 0 199k 0 0:02:22 0:00:06 0:02:16 244k053k 0 0 165k 0 0:03:46 0:00:06 0:03:40 204kIn file included from plugins/php/session.c:1:0:
plugins/php/common.h:1:17: fatal error: php.h: No such file or directory
compilation terminated.
using profile: buildconf/nixos.ini
detected include path: ['/nix/store/x0q9h4d38ydggbn340ypb89ljxkqvnq3-gcc-5.4.0/lib/gcc/x86_64-unknown-linux-gnu/5.4.0/include', '/nix/store/x0q9h4d38ydggbn340ypb89ljxkqvnq3-gcc-5.4.0/include', '/nix/store/x0q9h4d38ydggbn340ypb89ljxkqvnq3-gcc-5.4.0/lib/gcc/x86_64-unknown-linux-gnu/5.4.0/include-fixed', '/nix/store/hrgvzzs1j58cr0ngb7awjxad1lp2zrqh-glibc-2.25-dev/include']
*** uWSGI building and linking plugin plugins/php ***
[gcc] /nix/store/23ncapii692ws5c9ppqzghxgcywcnnz9-uwsgi-2.0.14/lib/uwsgi/php_plugin.so
*** unable to build php plugin ***
builder for ‘/nix/store/syqyzf7zxzjb1rinp49xzzxn3zqgz2fp-uwsgi-2.0.14.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/lakb9c5d5vp09ma2c8cg7p4gmlwggq4h-unit-uwsgi.service.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/pylfxalqn31ayq165fadzbqq4qhd5chw-system-units.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/1frx9vamz5gayxd45wa2n1a9zip3f8dq-etc.drv’: 1 dependencies couldn't be built
killing process 18114
killing process 18113
killing process 18112
killing process 18111
killing process 18110
cannot build derivation ‘/nix/store/can71fc3mnz85ddbd3948gsa1frw29ir-nixos-system-leevi-17.09pre104410.65593e6.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/can71fc3mnz85ddbd3948gsa1frw29ir-nixos-system-leevi-17.09pre104410.65593e6.drv’ failed
Steps to reproduce
Here's the relevant snippet from my configuration:
services.uwsgi = {
enable = true;
plugins = [ "php" ];
instance = {
type = "normal";
socket = "/run/uwsgi/nextcloud.sock";
# Run with at least 1 process but increase up to 4 when needed
cheaper = 1;
processes = 4;
php-docroot = "${pkgs.nextcloud}";
};
};
If I remove plugins = [ "php" ];, then it builds successfully. Note: this uWSGI configuration is just a stub, I'm working on it. But I'd expect the nixos-rebuild process not to fail.
Issue description
Enabling PHP plugin for uWSGI causes
nixos-rebuild
to fail.The error message:
pcre = False
xml = libxml2
locking = pthread_mutex
timer = timerfd
debug = False
kernel = Linux
ifaddrs = True
zlib = False
capabilities = False
malloc = libc
yaml = False
filemonitor = inotify
json = jansson
ssl = False
event = epoll
routing = False
ucontext = True
execinfo = False
plugin_dir = /nix/store/23ncapii692ws5c9ppqzghxgcywcnnz9-uwsgi-2.0.14/lib/uwsgi
############## end of uWSGI configuration #############
total build time: 5 seconds
*** uWSGI is ready, launch it with ./uwsgi ***
/nix/store/vfdz6kar96xlzqljh7l6lprm4la84diz-php-7.1.2/bin/php-config: line 20: out: command not found
/nix/store/vfdz6kar96xlzqljh7l6lprm4la84diz-php-7.1.2/bin/php-config: line 20: out: command not found
/nix/store/vfdz6kar96xlzqljh7l6lprm4la84diz-php-7.1.2/bin/php-config: line 20: out: command not found
/nix/store/vfdz6kar96xlzqljh7l6lprm4la84diz-php-7.1.2/bin/php-config: line 20: out: command not found
In file included from plugins/php/php_plugin.c:1:0:
plugins/php/common.h:1:17: fatal error: php.h: No such file or directory
compilation terminated.
4 27.7M 4 1271k 0 0 199k 0 0:02:22 0:00:06 0:02:16 244k053k 0 0 165k 0 0:03:46 0:00:06 0:03:40 204kIn file included from plugins/php/session.c:1:0:
plugins/php/common.h:1:17: fatal error: php.h: No such file or directory
compilation terminated.
using profile: buildconf/nixos.ini
detected include path: ['/nix/store/x0q9h4d38ydggbn340ypb89ljxkqvnq3-gcc-5.4.0/lib/gcc/x86_64-unknown-linux-gnu/5.4.0/include', '/nix/store/x0q9h4d38ydggbn340ypb89ljxkqvnq3-gcc-5.4.0/include', '/nix/store/x0q9h4d38ydggbn340ypb89ljxkqvnq3-gcc-5.4.0/lib/gcc/x86_64-unknown-linux-gnu/5.4.0/include-fixed', '/nix/store/hrgvzzs1j58cr0ngb7awjxad1lp2zrqh-glibc-2.25-dev/include']
*** uWSGI building and linking plugin plugins/php ***
[gcc] /nix/store/23ncapii692ws5c9ppqzghxgcywcnnz9-uwsgi-2.0.14/lib/uwsgi/php_plugin.so
*** unable to build php plugin ***
builder for ‘/nix/store/syqyzf7zxzjb1rinp49xzzxn3zqgz2fp-uwsgi-2.0.14.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/lakb9c5d5vp09ma2c8cg7p4gmlwggq4h-unit-uwsgi.service.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/pylfxalqn31ayq165fadzbqq4qhd5chw-system-units.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/1frx9vamz5gayxd45wa2n1a9zip3f8dq-etc.drv’: 1 dependencies couldn't be built
killing process 18114
killing process 18113
killing process 18112
killing process 18111
killing process 18110
cannot build derivation ‘/nix/store/can71fc3mnz85ddbd3948gsa1frw29ir-nixos-system-leevi-17.09pre104410.65593e6.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/can71fc3mnz85ddbd3948gsa1frw29ir-nixos-system-leevi-17.09pre104410.65593e6.drv’ failed
Steps to reproduce
Here's the relevant snippet from my configuration:
If I remove
plugins = [ "php" ];
, then it builds successfully. Note: this uWSGI configuration is just a stub, I'm working on it. But I'd expect thenixos-rebuild
process not to fail.Technical details
nixos-version
, Ubuntu/Fedora:lsb_release -a
, ...)nix-env --version
)nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion
)The text was updated successfully, but these errors were encountered: