Skip to content

builder/build.sh: Trivial fix #110

Open
@mbana

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions