eBPFDevSecTools / opened

OPENED Tool to extract specific eBPF functions from large monoliths (tested on Katran, Mizar, Cilium..)
Apache License 2.0
12 stars 6 forks source link

ARM support for dependency setup (TXL and codequery) #37

Open tianrendong opened 1 year ago

tianrendong commented 1 year ago

Is your feature request related to a problem? Please describe. The problem is many dependencies of the OPENED tool isn't supported on ARM architecture. Specifically, they are gcc-multilib, codequery, and TXL. There is an alternative package to substitute gcc-multilib. The qt5-default dependency of codequery is also not supported, but there might be an alternative.

There's no alternative for TXL on ARM architectures.

Describe the solution you'd like A docker container for setting up the dependencies for OPENED, targeted at ARM architectures specifically.

Describe alternatives you've considered There's an alternative package to use on ARM architecture for gcc-multilib, but no working alternatives have been found for codequery and TXL:

sdsen commented 1 year ago

Thanks for the update @tianrendong. We will try to debug this. By any chance can you share:

  1. Some logs/screenshots of these errors
  2. Specific details of the system (hw/sw) on which you encountered the issue. This will help us replicate and debug.
sdsen commented 1 year ago

http://txl.ca/txl-download.html has an option for "Mac OS X 10.12 or later (64 bit) LLVM 10.0 or later command line tools", needs to be checked.

sdsen commented 1 year ago

codequery seems to have a brew install option as well.

tianrendong commented 1 year ago

http://txl.ca/txl-download.html has an option for "Mac OS X 10.12 or later (64 bit) LLVM 10.0 or later command line tools", needs to be checked.

I'm trying to install TXL on a VM running Debian linux, should I still check Mac OS X?

Same question with codequery (on a Linux VM and not Mac OS).

tianrendong commented 1 year ago

Thanks for the update @tianrendong. We will try to debug this. By any chance can you share:

  1. Some logs/screenshots of these errors
  2. Specific details of the system (hw/sw) on which you encountered the issue. This will help us replicate and debug.

I'm setting up opened inside a VM running Debian Bullseye on an M1 Macbook Air. The linux kernel version of the VM is 5.10.0-19-arm64.

The specific error I encountered is shown here in the screenshot:

image

The error is related to "Exec format error".

sdsen commented 1 year ago

@palanik1 can you check on OSX and sugest ?

http://txl.ca/txl-download.html has an option for "Mac OS X 10.12 or later (64 bit) LLVM 10.0 or later command line tools", needs to be checked.

I'm trying to install TXL on a VM running Debian linux, should I still check Mac OS X?

Same question with codequery (on a Linux VM and not Mac OS).

palanik1 commented 1 year ago

I have a mac OSX Intel machine...docker and the rest of the toolchain seem to work fine..

sdsen commented 1 year ago

@tianrendong maybe try once on OSX ?