[Bug Report] ebpf compile crashes during build with new clang/llvm 23.x

Aperta
#1,686 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c, linux

Direzione di ricerca

Start by reading ebpf_prog/Makefile, especially how it invokes clang and llc, then compare that flow with the LLVM issue linked in the report. Check whether the eBPF build succeeds with clang/LLVM 23.x; done means the eBPF parts compile without clang crashing.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

[Bug Report] ebpf compile crashes during build with new clang/llvm 23.x

Archlinux recently updated clang/llvm and friends from 22.x to 23.x

Since then it has not been possible to compile the opensnitch eBPF parts - clang/llvm simply crashes during compile

I raised an issue with the LLVM project
https://github.com/llvm/llvm-project/issues/228348

Their comment is that this:
https://github.com/llvm/llvm-project/issues/228348#issuecomment-5979013383

Quote:

Looking at https://github.com/evilsocket/opensnitch/blob/master/ebpf_prog/Makefile it seems to be calling clang without any --target, so this is producing IR for the host triple. And then that gets feds to llc -march=bpf.

If that's indeed what it does, then that is certainly not supposed to work.
Lingua principale
Python
Stelle
14.3k
Fork
689
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di evilsocket/opensnitch

Tutte le issue di evilsocket/opensnitch

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.