Compile of Anbox fails because kernel function kallsyms_lookup_name() is unexported
#1
Trying to compile and install Anbox on Pinebook Pro (ARM) running Manjaro Arch Linux,

Kernel Version:  5.7.0-1-MANJARO-ARM

Upon attempting to compile the kernel modules ashmem and binder, get the error message:


kallsyms_lookup_name undefined

This is a function in a file:  kallsyms.c , which ships with manjaro linux on the Pinebook pro, according to

https://gitlab.manjaro.org/tsys/linux-pi...kallsyms.c

Possible reason for the error is that the function kallsyms_lookup_name() is now unexported, according to:

https://gitlab.manjaro.org/tsys/linux-pi...ff61103281

Any ideas how to fix this or work around this?  Were it not for this problem, I feel that I am pretty close to getting Anbox compiled with dependencies and up and running on the Pinebook Pro.  I would love to be able to do that.  It would enable me to run Zoom on my laptop, which I do a lot of these days.

Thanks,
Tsvi
#2
Re-export them, rebuild the kernel from your modified sources? The diffs are easy enough to reverse.

Or install an older kernel.

The kernel developers are right about it, for what it's worth.
#3
Syonik, how do get an older kernel to install?
How do I install this older kernel?
Thanks!
#4
@Tsvi Bar-David , have you tried to clone the Pinebook Pro kernel package from Manjaro's Gitlab? From there on you just need to checkout an older commit and fire up makepkg to generate the older kernel as a package to install.

Device: Pinebook Pro 128GB No:246 / MainOS: Manjaro ARM
Godot and Flutter - creating something can be fun with the right tools!
#5
This has been brought up in the Anbox github issues, and there is a solution that isn't reverting your kernel version. ashmem and binder are now part of mainline kernel, and can be enabled to allow for installation: https://github.com/anbox/anbox-modules/i...-643728906 Just recompile your kernel and enable the flags. Someone was kind enough to update the Arch wiki page with the now necessary steps: https://wiki.archlinux.org/index.php/Anbox

Apparently, you'll want to remove any previous installation attempts first.
#6
Tophneal, thanks for you help!
I took your advice, enabled the anbox flags, and recompiled the arch linux kernel, and it looked like it got pretty far along, until it aborted with the following error message about the (mis)location of objtool. Here is the last couple of lines emitted from makepkg:

INSTALL sound/usb/snd-usb-audio.ko
INSTALL sound/usb/snd-usbmidi-lib.ko
INSTALL sound/xen/snd_xen_front.ko
INSTALL virt/lib/irqbypass.ko
DEPMOD 5.7.6-arch1-1-anbox
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "linux-anbox"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Starting package_linux-anbox-headers()... # i named my modified kernel: linux-anbox
Installing build files...
install: cannot stat 'tools/objtool/objtool': No such file or directory
==> ERROR: A failure occurred in package_linux-anbox-headers().
Aborting...

---
The line that fails in PKGBUILD seems to be 108:

# add objtool for external module building and enabled VALIDATION_STACK option
108 install -Dt "$builddir/tools/objtool" tools/objtool/objtool

It feels like I am so close ...
Thoughts?
Thanks,
Tsvi
#7
(06-29-2020, 06:20 PM)Tsvi Bar-David Wrote: Tophneal, thanks for you help!
I took your advice, enabled the anbox flags, and recompiled the arch linux kernel, and it looked like it got pretty far along, until it aborted with the following error message about the (mis)location of objtool.  Here is the last couple of lines emitted from makepkg:

INSTALL sound/usb/snd-usb-audio.ko
  INSTALL sound/usb/snd-usbmidi-lib.ko
  INSTALL sound/xen/snd_xen_front.ko
  INSTALL virt/lib/irqbypass.ko
  DEPMOD  5.7.6-arch1-1-anbox
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "linux-anbox"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Starting package_linux-anbox-headers()...  # i named my modified kernel:  linux-anbox
Installing build files...
install: cannot stat 'tools/objtool/objtool': No such file or directory
==> ERROR: A failure occurred in package_linux-anbox-headers().
    Aborting...

---
The line that fails in PKGBUILD seems to be 108:

# add objtool for external module building and enabled VALIDATION_STACK option
108  install -Dt "$builddir/tools/objtool" tools/objtool/objtool

It feels like I am so close ...
Thoughts?
Thanks,
Tsvi


Have you tried looking yet to see if you can find objtool on your system and correcting the PKGBUILD? Likely you just need to make a pull of the kernel repo and try your changes again.


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to mainline kernel on daniel thompson's debian installer? hellojack 14 9,858 09-07-2023, 09:38 PM
Last Post: Der Geist der Maschine
  kernel module that supports usb-c hdmi alexandre 16 17,056 05-14-2023, 09:58 PM
Last Post: rathofkhan3
  NVME fails detection our0 1 1,201 01-30-2023, 08:45 AM
Last Post: Tazdevl
Question Debian (Vanilla) no output on display after Kernel update (6.0.8-1) as365n4 1 1,654 12-09-2022, 12:43 PM
Last Post: as365n4
  bootloader menu to pick a kernel - what is the current situation in in early 2022? maxtothemax 4 3,784 02-05-2022, 03:04 PM
Last Post: maxtothemax
  Kernel panics solostian 17 16,786 01-26-2022, 08:08 AM
Last Post: TRS-80
  Kernel 5.17 will improve VP9 support? jiyong 1 2,550 01-16-2022, 08:26 PM
Last Post: xmixahlx
  red/green power led not working with kernel 5.14 alchemist 4 4,528 11-04-2021, 04:09 AM
Last Post: alchemist
  Anyone tried Anbox-4-arm64 yet? tophneal 88 113,028 08-11-2021, 11:21 AM
Last Post: Proant
  Sound stuttering on Manjaro gnome after latest kernel upgrade? pjsf 0 2,086 07-13-2021, 10:37 PM
Last Post: pjsf

Forum Jump:


Users browsing this thread: 1 Guest(s)