Comments (3)
Same for me, tried on Ubuntu 20.04 with Bazel 6.3.2 from the apt repo. Tried the last few master commits, none would build for me.
@cptspacemanspiff posted a workaround for a similar error on issue #101 a while back, which is apparently on master now. Maybe the same needs to be done for the rules_python
dependency?
from perf_data_converter.
Same for me, tried on Ubuntu 20.04 with Bazel 6.3.2 from the apt repo. Tried the last few master commits, none would build for me.
@cptspacemanspiff posted a workaround for a similar error on issue #101 a while back, which is apparently on master now. Maybe the same needs to be done for the
rules_python
dependency?
I have fixed it by modifying the WORKSPACE file as this:
rules_python is a dependency for protobuf.
http_archive(
name = "rules_python",
urls = ["https://github.com/bazelbuild/rules_python/releases/download/0.0.2/rules_python-0.0.2.tar.gz"],
strip_prefix = "rules_python-0.0.2",
type = "tar.gz",
)
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()
load("@rules_python//python:pip.bzl", "pip_repositories")
pip_repositories()
but I meet new problems about compiling, it's hard for me to workout:
[root@opengauss-master perf_data_converter]# bazel build src:perf_to_profile --verbose_failures
INFO: Analyzed target //src:perf_to_profile (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /root/perf/perf_data_converter/src/quipper/BUILD:107:11: Compiling src/quipper/dso.cc failed: (Exit 1): gcc failed: error executing command (from target //src/quipper:dso)
(cd /root/.cache/bazel/bazel_root/4a25792f71ccee4f60d59a36fdf7bb13/sandbox/linux-sandbox/466/execroot/main &&
exec env -
LD_LIBRARY_PATH=/opt/huawei/install/om/lib:/opt/huawei/install/om/script/gspylib/clib:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/huawei/install/om/script/gspylib/pssh/bin:/opt/huawei/install/om/script:/root/gauss_om/omm/script:/root/perf/go/golang/bin:/root/bin
PWD=/proc/self/cwd
/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++0x' -MD -MF bazel-out/k8-fastbuild/bin/src/quipper/objs/dso/dso.pic.d '-frandom-seed=bazel-out/k8-fastbuild/bin/src/quipper/objs/dso/dso.pic.o' -fPIC '-DBAZEL_CURRENT_REPOSITORY=""' -iquote . -iquote bazel-out/k8-fastbuild/bin -iquote external/boringssl -iquote bazel-out/k8-fastbuild/bin/external/boringssl -isystem src/quipper -isystem bazel-out/k8-fastbuild/bin/src/quipper -isystem external/boringssl/src/include -isystem bazel-out/k8-fastbuild/bin/external/boringssl/src/include -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE="redacted"' '-D__TIMESTAMP_="redacted"' '-D__TIME__="redacted"' -c src/quipper/dso.cc -o bazel-out/k8-fastbuild/bin/src/quipper/_objs/dso/dso.pic.o)
Configuration: 442d8db79c046018027f86fb6ba2e9e3560c56c0504c8b6423d08c7d06207c4d
Execution platform: @local_config_platform//:host
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
src/quipper/dso.cc:9:10: fatal error: gelf.h: No such file or directory
#include <gelf.h>
^~~~~~~~
compilation terminated.
Target //src:perf_to_profile failed to build
INFO: Elapsed time: 0.484s, Critical Path: 0.31s
INFO: 66 processes: 65 internal, 1 linux-sandbox.
FAILED: Build did NOT complete successfully
from perf_data_converter.
This should be fixed with #150 which was just merged to main. Feel free to re-open if it's not.
from perf_data_converter.
Related Issues (20)
- ERROR: Analysis of target '//src:perf_to_profile' failed; build aborted: error loading package '@com_google_protobuf//': Unable to find package for @rules_java//java:defs.bzl: The repository '@rules_java' could not be resolved. HOT 4
- Build fails with 404 errors because bazel doesn't follow redirects HOT 4
- Could we get a command-line option for setting `kPidAndTidLabels`? HOT 1
- "PERF_SAMPLE_REGS_USER is not yet supported" fatal error on perf.data recorded with `--call-graph dwarf` HOT 3
- Build broken due to bad dependencies import HOT 1
- fips_break_test.h: No such file or directory HOT 2
- perf_to_profile fails with large (18gb) perf data HOT 3
- build error in centos
- failed to compile in linux environment HOT 6
- should kernel addr-- ? HOT 1
- perf_to_profile crashes on a 3GB perf.data file HOT 3
- Memory corruption when parsing malformed perf data files HOT 1
- branch stack reader needs updating for new information HOT 4
- Cannot extract function name from perf.data HOT 1
- perf_to_profile drops perf symbols HOT 2
- Compiler warnings when building perf_data_converter HOT 1
- build failed with bazel 4.0, Arch Linux HOT 3
- Build failing "fips.c: No such file or directory" since 15.03.2021 (boringssl) HOT 3
- Could NOT find Protobuf (missing: Protobuf_LIBRARIES Protobuf_INCLUDE_DIR) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from perf_data_converter.