Code Monkey home page Code Monkey logo

Comments (7)

uttampawar avatar uttampawar commented on May 22, 2024

@rlavaee Can you help? TIA.

from llvm-propeller.

rlavaee avatar rlavaee commented on May 22, 2024

Thanks for filing the issue. Please make sure the output name is the same between perf.propeller file and the final binary name. Otherwise, the ordering will not take effect (as reported by create_llvm_prof). The segfault happens because of an out_of_bounds access in main.cc (argv[1]).
For sanity check, you may want to reproduce results from plo/sample.c (cd plo ; make sample.propeller.out)

from llvm-propeller.

uttampawar avatar uttampawar commented on May 22, 2024

@rlavaee Thanks for pointing out missing argument error (OOPS!). BTW, there seems to be few dependencies to build "sample.propeller.out" such as BOLT and perf2bolt. Do I need to build these tools?

$ make sample.propeller.out
Failed ....

$ make stage1-compiler # Worked

$ make sample.propeller.out
...
./stage1-compiler -fuse-ld=lld -Wl,-O2 -o sample.out sample_bblabels.o
perf record -o sample.perfdata -e "cycles:u" -j any,u -- ./sample.out
[ perf record: Woken up 100 times to write data ]
[kernel.kallsyms] with build id 37e340b1b5a7cf4f57ba8de2bc777359588a957f not found, continuing without symbols
[ perf record: Captured and wrote 24.980 MB sample.perfdata (32105 samples) ]
make: *** No rule to make target '/mnt/sdb1/upawar/create_llvm_prof_dir/*.cc', needed by '/mnt/sdb1/upawar/create_llvm_prof_dir/create_llvm_prof'. Stop.

Note: I updated paths.mk for "create_llvm_prof_dir" directory.
Please let me know if any other build environment is missing.

Any help is appreciated. TIA.

from llvm-propeller.

uttampawar avatar uttampawar commented on May 22, 2024

@rlavaee Can you help with this issue please? Am I missing anything? TIA.

from llvm-propeller.

rlavaee avatar rlavaee commented on May 22, 2024

@uttampawar Please resync. I've pushed a fix to break the BOLT dependencies.

from llvm-propeller.

uttampawar avatar uttampawar commented on May 22, 2024

@rlavaee I'll update the issue with my findings. Thanks.

from llvm-propeller.

uttampawar avatar uttampawar commented on May 22, 2024

This fixes the build issue.

from llvm-propeller.

Related Issues (14)

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.