代码之家  ›  专栏  ›  技术社区  ›  mherzl

试图在nixos中安装gnome时编译“core/window.c”时出错

  •  0
  • mherzl  · 技术社区  · 6 年前

    尝试安装时遇到错误 gnome 在我的尼克松机器上。

    以下是我所做的:

    1. 安装NixOS。我跟着警察走 installation instructions NixOS manual download page . 安装成功,我可以登录到安装了它的机器上的根shell。

    2. /etc/nixos/configuration.nix 包括上“Install Gnome”下面列出的四行 NixOS's GNOME page nixos-rebuild switch 是我遇到这个问题的地方。

    ,我得到一个错误,似乎是一个问题试图编译 core/window.c ;对于该文件,错误消息为“error:comparison between signed and unsigned integer expressions”。错误粘贴在下面。

    关于如何处理这个问题,让gnome接口在这台机器上工作,有什么想法吗?

    Scanning dependencies of target templates_h
    [ 29%] Generating ../../../share/templates/templates.h
    [ 29%] Built target templates_h
    [ 29%] Generating inkscape-version.cpp
    revision is 5da689c313, 2019-01-14
      CC       core/frame.lo
      CC       core/meta-gesture-tracker.lo
      CC       core/meta-workspace-manager.lo
      CC       core/keybindings.lo
      CC       core/main.lo
      CC       core/place.lo
      CC       core/prefs.lo
      CC       core/startup-notification.lo
      CC       core/restart.lo
      CC       core/stack.lo
      CC       core/stack-tracker.lo
      CC       core/util.lo
      CC       core/window.lo
    core/window.c: In function 'find_monitor_by_winsys_id':
    core/window.c:3816:38: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
           if (logical_monitor->winsys_id == winsys_id)
                                          ^~
    core/window.c: In function 'meta_window_move_resize_internal':
    core/window.c:4062:32: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
           if (old_output_winsys_id != window->monitor->winsys_id &&
                                    ^~
    cc1: all warnings being treated as errors
    make[4]: *** [Makefile:2844: core/window.lo] Error 1
    make[4]: Leaving directory '/build/mutter-3.30.2/src'
    make[3]: *** [Makefile:3016: all-recursive] Error 1
    make[3]: Leaving directory '/build/mutter-3.30.2/src'
    make[2]: *** [Makefile:1856: all] Error 2
    make[2]: Leaving directory '/build/mutter-3.30.2/src'
    make[1]: *** [Makefile:492: all-recursive] Error 1
    make[1]: Leaving directory '/build/mutter-3.30.2'
    make: *** [Makefile:422: all] Error 2
    builder for '/nix/store/z91sx3gy787p6zfhji0j5i6kw7gpi1h7-mutter-3.30.2.drv' failed with exit code 2
    cannot build derivation '/nix/store/wp4g905s768nxpcxjrb84laaph255dl6-gnome-control-center-3.30.3.drv': 1 dependencies couldn't be built
    cannot build derivation '/nix/store/clwxa761xd19d8qcxclnl6rigcmyb3l5-gnome-shell-3.30.2.drv': 1 dependencies couldn't be built
    cannot build derivation '/nix/store/y3zgqkhg2p8pm71qhwiimalq5yxvhlg7-gnome-tweaks-3.30.2.drv': 1 dependencies couldn't be built
    building '/nix/store/0wnhy9a7ifbp5vl96xanccjkir5fax3y-nixos-version.drv'...
    cannot build derivation '/nix/store/vl8wrz15ixy1bzxqhmbcnxphi6x13h0p-gnome-session-3.30.1.drv': 1 dependencies couldn't be built
    cannot build derivation '/nix/store/2jmszmay6qlq69bgcpcl0czk8cjzihas-gnome-terminal-3.30.2.drv': 1 dependencies couldn't be built
    cannot build derivation '/nix/store/fzb9c8846g0my00g6nyijxd4ypjaxbj6-set-environment.drv': 1 dependencies couldn't be built
    building '/nix/store/d9ibna87vyfmvizrshwf1bilmmgsvhdn-strongswan-5.7.1.drv'...
    cannot build derivation '/nix/store/l4a6vz4xi4w04m51yhzg2dirg5dw7130-system-path.drv': 1 dependencies couldn't be built
    building '/nix/store/d93srndgpxzlgpb6xfl9nv0zz2hlyjn8-systemd-user.pam.drv'...
    cannot build derivation '/nix/store/9z4qacafhb98ijwxm6a2ckldmbazyxqs-nixos-system-nixos-19.03.172765.55df3fe5f3f.drv': 1 dependencies couldn't be built
    error: build of '/nix/store/9z4qacafhb98ijwxm6a2ckldmbazyxqs-nixos-system-nixos-19.03.172765.55df3fe5f3f.drv' failed
    
    0 回复  |  直到 6 年前
    推荐文章