Skip to content

Cannot build lineageos on x86 #320

@OsiPog

Description

@OsiPog

While trying to build the example config for my phone (OnePlus 6T, fajita) I am getting the following errors:

error: Cannot build '/nix/store/g9wc5sfv8dz92dlkra800xhn83zl32vd-fakeuser.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/mn3zggjh04jmif9nhmc9c2r3y9qsc5z4-fakeuser
       Last 25 log lines:
       > Host machine cpu family: x86_64
       > Host machine cpu: x86_64
       > Build targets in project: 1
       >
       > fakeuser undefined
       >
       >   User defined options
       >     auto_features: enabled
       >     bindir       : /nix/store/mn3zggjh04jmif9nhmc9c2r3y9qsc5z4-fakeuser/bin
       >     buildtype    : plain
       >     includedir   : /nix/store/mn3zggjh04jmif9nhmc9c2r3y9qsc5z4-fakeuser/include
       >     infodir      : /nix/store/mn3zggjh04jmif9nhmc9c2r3y9qsc5z4-fakeuser/share/info
       >     libdir       : /nix/store/mn3zggjh04jmif9nhmc9c2r3y9qsc5z4-fakeuser/lib
       >     libexecdir   : /nix/store/mn3zggjh04jmif9nhmc9c2r3y9qsc5z4-fakeuser/libexec
       >     localedir    : /nix/store/mn3zggjh04jmif9nhmc9c2r3y9qsc5z4-fakeuser/share/locale
       >     mandir       : /nix/store/mn3zggjh04jmif9nhmc9c2r3y9qsc5z4-fakeuser/share/man
       >     prefix       : /nix/store/mn3zggjh04jmif9nhmc9c2r3y9qsc5z4-fakeuser
       >     sbindir      : /nix/store/mn3zggjh04jmif9nhmc9c2r3y9qsc5z4-fakeuser/sbin
       >     wrap_mode    : nodownload
       >
       > Found ninja-1.12.1 at /nix/store/0gk4i8rv9vppwwbig525k1fkhkph6vwx-ninja-1.12.1/bin/ninja
       > mesonConfigurePhase: enabled\ parallel\ building
       > Running phase: buildPhase
       > build flags: -j12
       > ninja: fatal: posix_spawn: No such file or directory
       For full logs, run:
         nix log /nix/store/g9wc5sfv8dz92dlkra800xhn83zl32vd-fakeuser.drv

Here is my configuration:

robotnixSystem {
    flavor = "lineageos";

    # Supported devices are listed under https://wiki.lineageos.org/devices/
    device = "fajita";

    # LineageOS branch.
    # You can check the supported branches for your device under
    # https://wiki.lineageos.org/devices/<device codename>
    # Leave out to choose the official default branch for the device.
    flavorVersion = "22.2";

    apps = {
      fdroid.enable = true;
      seedvault.enable = true;
    };
    microg.enable = true;

    # Enables ccache for the build process. Remember to add /var/cache/ccache as
    # an additional sandbox path to your Nix config.
    ccache.enable = true;
  };

You can try it yourself too:

nix build github:osipog/nix-config#robotnixConfigurations.fajita.img

Any Idea what I am doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions