solo-io / bumblebee

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

bee build fails with no such file or directory error #36

Open Akasurde opened 2 years ago

Akasurde commented 2 years ago
vagrant@impish:~$ bee build /tmp/hello.c hello:v1
▄  Compiling BPF program locally (58s)Unable to find image 'ghcr.io/solo-io/bumblebee/builder:0.0.9' locally
0.0.9: Pulling from solo-io/bumblebee/builder
0e29546d541c: Pulling fs layer
fca6a5226638: Pulling fs layer
afcfaa23af5a: Pulling fs layer
d35920e59df0: Pulling fs layer
4f601b52c7f8: Pulling fs layer
fc2c674a0c0b: Pulling fs layer
9feed63100ed: Pulling fs layer
bed84b2b6d89: Pulling fs layer
fb7b09ef9b9e: Pulling fs layer
2999dd9432b1: Pulling fs layer
bcf743229f06: Pulling fs layer
9feed63100ed: Waiting
bed84b2b6d89: Waiting
fb7b09ef9b9e: Waiting
d35920e59df0: Waiting
4f601b52c7f8: Waiting
fc2c674a0c0b: Waiting
2999dd9432b1: Waiting
bcf743229f06: Waiting
afcfaa23af5a: Download complete
d35920e59df0: Verifying Checksum
d35920e59df0: Download complete
4f601b52c7f8: Verifying Checksum
4f601b52c7f8: Download complete
fca6a5226638: Verifying Checksum
fca6a5226638: Download complete
0e29546d541c: Verifying Checksum
0e29546d541c: Download complete
9feed63100ed: Verifying Checksum
9feed63100ed: Download complete
bed84b2b6d89: Verifying Checksum
bed84b2b6d89: Download complete
fb7b09ef9b9e: Verifying Checksum
fb7b09ef9b9e: Download complete
2999dd9432b1: Verifying Checksum
2999dd9432b1: Download complete
bcf743229f06: Download complete
0e29546d541c: Pull complete
fca6a5226638: Pull complete
afcfaa23af5a: Pull complete
d35920e59df0: Pull complete
4f601b52c7f8: Pull complete
fc2c674a0c0b: Verifying Checksum
fc2c674a0c0b: Download complete
fc2c674a0c0b: Pull complete
9feed63100ed: Pull complete
bed84b2b6d89: Pull complete
fb7b09ef9b9e: Pull complete
2999dd9432b1: Pull complete
bcf743229f06: Pull complete
Digest: sha256:4c4f21da350cc95acd0e1b3f0e3a4b5cc1a8b7aa4a197c097bbdb470abb83305
Status: Downloaded newer image for ghcr.io/solo-io/bumblebee/builder:0.0.9
clang: error: no such file or directory: '/tmp/hello.c'
clang: error: no input files

  ERROR   Failed to compile BPF program
Error: exit status 1
2022/01/06 10:26:24 exiting: exit status 1
yuval-k commented 2 years ago

This is due to the fact the build is performed using docker, and only the current directory is shared with the container (see here). cd to the /tmp folder and running bee build hello.c hello:v1 should work

Akasurde commented 2 years ago

@yuval-k Yes. I observed that.