NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.19k stars 14.2k forks source link

linuxPackages_latest.anbox fails to build (kallsyms_lookup_name) #91367

Open bqv opened 4 years ago

bqv commented 4 years ago

Describe the bug

builder for '/nix/store/2p2dfib5hhv3na6h063lv8aj0c56g8v2-anbox-modules-2019-11-15-5.7.4.drv' failed with exit code 1; last 10 log lines:
    CC [M]  /build/source/ashmem/ashmem.o
    LD [M]  /build/source/ashmem/ashmem_linux.o
    MODPOST 1 modules
  ERROR: modpost: "kallsyms_lookup_name" [/build/source/ashmem/ashmem_linux.ko] undefined!
  make[3]: *** [/nix/store/2j2iisz4aj9wik6iii3d6sbrkx0i9d8x-linux-5.7.4-dev/lib/modules/5.7.4/source/scripts/Makefile.modpost:94: __modpost] Error 1
  make[2]: *** [/nix/store/2j2iisz4aj9wik6iii3d6sbrkx0i9d8x-linux-5.7.4-dev/lib/modules/5.7.4/source/Makefile:1642: modules] Error 2
  make[1]: *** [/nix/store/2j2iisz4aj9wik6iii3d6sbrkx0i9d8x-linux-5.7.4-dev/lib/modules/5.7.4/source/Makefile:180: sub-make] Error 2
  make[1]: Leaving directory '/nix/store/2j2iisz4aj9wik6iii3d6sbrkx0i9d8x-linux-5.7.4-dev/lib/modules/5.7.4/build'
  make: *** [Makefile:12: all] Error 2

To Reproduce Steps to reproduce the behavior:

  1. Use anbox-modules
  2. Build
  3. Observe failure

Expected behavior Build success

Screenshots N/A

Additional context Relevant issue and workaround: https://github.com/anbox/anbox-modules/issues/49#issuecomment-643728906 It may suffice to enable the following config options:

CONFIG_ASHMEM=y
CONFIG_ANDROID=y
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ANDROID_BINDERFS=y
CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"

Notify maintainers @bendlas (last relevant modify)

Metadata

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: linuxPackages_latest.anbox
# a list of nixos modules affected by the problem
module:
Atemu commented 4 years ago

Are there any downsides to enabling these?

If not, we could just enable them in the regular kernel by default. The modules have been upstreamed.

bqv commented 4 years ago

Not that I'm aware of. That would have been my suggestion

Atemu commented 3 years ago

Fixed by https://github.com/NixOS/nixpkgs/pull/102341.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

Pandapip1 commented 8 months ago

That pull request was closed unmerged. Any updates?

bendlas commented 8 months ago

Anbox has officially been archived and points people to waydroid. I've been using waydroid in weston successfully. Maybe it's time to remove Anbox from nixos?