Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build the project #277

Open
kislaykishore opened this issue Oct 9, 2024 · 7 comments
Open

Unable to build the project #277

kislaykishore opened this issue Oct 9, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@kislaykishore
Copy link

What happened?

Description

I tried following the steps mentioned in the Developer Guide to build the project but it fails for me.

Steps to Reproduce

Fetch the build-env images

  • docker pull quay.io/splunko11ytest/network-explorer-debug/build-env
  • docker tag quay.io/splunko11ytest/network-explorer-debug/build-env build-env:latest

Clone the repository

  • git clone https://github.com/open-telemetry/opentelemetry-network.git opentelemetry-ebpf
  • cd opentelemetry-ebpf
  • git submodule update --init --recursive

Attempt to build

  • cd opentelemetry-ebpf
  • mkdir -p ../build
  • docker run -it --rm \
    --env EBPF_NET_SRC_ROOT=/root/src \
    --mount type=bind,source=$PWD,destination=/root/src,readonly \
    --mount type=bind,source=$PWD/../build,destination=/root/out \
    --mount type=bind,source=/var/run/docker.sock,destination=/var/run/docker.sock \
    --name benv \
    build-env
    
    

Configure

  • ./build.sh --cmake
  • cd out

Build using make reducer

Expected Result

Build should work

Actual Result

> Task :io.opentelemetry.render:generateXtext FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':io.opentelemetry.render:generateXtext'.
> com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: java.lang.UnsupportedClassVersionError: org/eclipse/core/runtime/OperationCanceledException has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 517ms
2 actionable tasks: 1 executed, 1 up-to-date
make[3]: *** [renderc/CMakeFiles/render_compiler.dir/build.make:124: renderc/io.opentelemetry.render.standalone/build/libs/io.opentelemetry.render.standalone-1.0.0-SNAPSHOT-all.jar] Error 1
make[2]: *** [CMakeFiles/Makefile2:1202: renderc/CMakeFiles/render_compiler.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:5611: reducer/CMakeFiles/reducer.dir/rule] Error 2
make: *** [Makefile:2270: reducer] Error 2

eBPF Collector version

master

Environment information

Environment

Operating System: Ubuntu 23.10
Kernel: Linux 6.5.0-44-generic

eBPF Collector configuration

No response

Log output

No response

Additional context

No response

@kislaykishore kislaykishore added the bug Something isn't working label Oct 9, 2024
@yonch
Copy link
Contributor

yonch commented Oct 9, 2024

Hi @kislaykishore ! Sorry you hit this.

This should be fixed shortly. @jakub-racek-swi had fixed the build container in tools#4 which I merged today. I'm building the build-env as we speak. Fixed some problems with that build taking large amounts of RAM. Hope to have an update in a few hours.

@yonch
Copy link
Contributor

yonch commented Oct 9, 2024

I pushed a build-env image to docker hub yonchco/opentelemetry-network-build-env. #275 is work to fix compilation for that image.

@AsahiPeak
Copy link

The problem does not seem to have been resolved.
./build.sh --cmake
image

@yonch
Copy link
Contributor

yonch commented Oct 14, 2024

Are you on the #275 PR? It has this diff that resolves the above.

@alexandrebrg
Copy link

alexandrebrg commented Oct 26, 2024

@yonch 👋 Hi, the problem seems not to be solved, but I managed to make it work.

As a workaround for now, I started building using quay.io/splunko11ytest/network-explorer-debug/build-env. It fails to process java files due to a version change. After this, I build (without deleting any previously built file) using your docker image, it finish properly the build, and binaries run properly (at least of kernel-collector & reducer in my scope)

@m-4ever
Copy link

m-4ever commented Nov 18, 2024

@yonch 👋 Hi, the problem seems not to be solved, but I managed to make it work.

As a workaround for now, I started building using quay.io/splunko11ytest/network-explorer-debug/build-env. It fails to process java files due to a version change. After this, I build (without deleting any previously built file) using your docker image, it finish properly the build, and binaries run properly (at least of kernel-collector & reducer in my scope)

how did you make it work? I change the new docker image(yonchco/opentelemetry-network-build-env), but it raise the new error like this:

-- Using gRPC 1.65.5
CMake Error at otlp/CMakeLists.txt:31 (message):
gRPC must be a specific version (1.45.0). Build container should already
have that set up. Note that benv-final:v8 doesn't currently support
building with OTLP - need to use a custom local benv build.

-- Configuring incomplete, errors occurred!
See also "/root/out/CMakeFiles/CMakeOutput.log".

please help me. @yonch @alexandrebrg

@yonch
Copy link
Contributor

yonch commented Nov 18, 2024

Hi @m-4ever , PR #275 should have solved this: jakub-racek-swi@e34d776

@jakub-racek-swi #275 is marked as Draft, are you comfortable marking it as ready to merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants