solo-io / bumblebee

Get eBPF programs running from the cloud to the kernel in 1 line of bash
Apache License 2.0
1.26k stars 78 forks source link

`builder/build.sh`: Trivial fix #110

Open mbana opened 10 months ago

mbana commented 10 months ago

Version

0.0.10

Linux Version

No response

Describe the bug

I think there is a slight error in https://github.com/solo-io/bumblebee/blob/c2422b5bab66754b286d062317e244f02a431dac/builder/build.sh. Shoudn't this be:

clang -g -O2 -target bpf -D__TARGET_ARCH_x86 ${CFLAGS} -Wall -c $1 -o $2

Steps to reproduce the bug

  1. Run:
$ bee build -b podman -i ghcr.io/solo-io/bumblebee/builder:0.0.10  --local probe.c my_probe:v1

 INFO  + CFLAGS=                                                                                     
       + clang-13 -g -O2 -target bpf -D__TARGET_ARCH_x86 -Wall -c probe.c -o probe.o
       sh: line 6: clang-13: command not found
  ERROR   Failed to compile BPF program locally                                                      
Error: exit status 127
2023/12/23 13:38:19 exiting: exit status 127

Expected Behavior

Should compile fine

Additional Context

No response