Giter Club home page Giter Club logo

Comments (3)

qmonnet avatar qmonnet commented on August 15, 2024 1

Hi, thanks a lot for the report!

Both issues are bugs in the feature detection. It looks that clang does not need the flags telling to the linker what libraries to use, and this results in warnings that break detection due to the use of -Werror. Adding Wno-unused-command-line-argument seems to fix it indeed.

I don't directly experience the issue with the echo on my setup, it “works fine for me”. But echo is not known to be portable, and I'm ready to believe that the current code breaks on other environments. I observed that the $(shell echo) invocation calls /bin/sh (dash for me) which is supposed to use /usr/bin/echo, but it seems that in some cases (including the default case for me, where the current code works), some built-in echo is used instead. I think it's some built-in from make, but didn't manage to confirm it. Anyway. Adding -e is not a solution though: it breaks on my setup. I think we'll switch to using printf instead of echo, hopefully it will be more stable.

If you have a moment, could you please check whether the changes in #5 fix the build on your setup?

from bpftool.

aguaiyoung avatar aguaiyoung commented on August 15, 2024

Hi, thanks a lot for the report!

Both issues are bugs in the feature detection. It looks that clang does not need the flags telling to the linker what libraries to use, and this results in warnings that break detection due to the use of -Werror. Adding Wno-unused-command-line-argument seems to fix it indeed.

I don't directly experience the issue with the echo on my setup, it “works fine for me”. But echo is not known to be portable, and I'm ready to believe that the current code breaks on other environments. I observed that the $(shell echo) invocation calls /bin/sh (dash for me) which is supposed to use /usr/bin/echo, but it seems that in some cases (including the default case for me, where the current code works), some built-in echo is used instead. I think it's some built-in from make, but didn't manage to confirm it. Anyway. Adding -e is not a solution though: it breaks on my setup. I think we'll switch to using printf instead of echo, hopefully it will be more stable.

If you have a moment, could you please check whether the changes in #5 fix the build on your setup?

check in my env, it's ok.
thank your replay.
... libbfd: [ on ]
... disassembler-four-args: [ OFF ]
... zlib: [ on ]
... libcap: [ OFF ]
... clang-bpf-co-re: [ on ]

from bpftool.

qmonnet avatar qmonnet commented on August 15, 2024

And thank you for testing :) Merged now.

from bpftool.

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.