Coder Social home page Coder Social logo

Comments (3)

PeterFeicht avatar PeterFeicht commented on May 14, 2024

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.

SakuraX99 avatar SakuraX99 commented on May 14, 2024

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.

s-kanev avatar s-kanev commented on May 14, 2024

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)

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.