Giter Site home page Giter Site logo

routes.go#L36 on make about wag HOT 3 CLOSED

nhas avatar nhas commented on May 29, 2024
routes.go#L36 on make

from wag.

Comments (3)

NHAS avatar NHAS commented on May 29, 2024

That line is important for the whole project as it generates the object code for the eBPF program.
You havent installed the llvm packages for your distribution

Error: exec: "llvm-strip": executable file not found in $PATH is the key line

from wag.

111blackeagle111 avatar 111blackeagle111 commented on May 29, 2024

router/routes.go:36: running "go": exit status 1
make: *** [Makefile:12: .generate_ebpf] Error 1

I spaced the two // from the go and redid the make. Then everything went smoothly
If you feel that this is not a general problem, please close the issue
:) tnx

from wag.

NHAS avatar NHAS commented on May 29, 2024

I understand what you have done.

The following line runs an external command to generate resources for the project. By putting a space between // and the go you are essentially stopping the generation from occurring.

//go:generate

As such, if you make any changes to the xdp.c file, your changes will not be included as the line you have essentially removed re-generates the eBPF object code. The only reason it still works for you is because I include the compiled objects in the git repo.

The problem is that you havent installed the llvm packages by your last error and you may also need to install clang or just generally run go get ./...

from wag.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.