open-telemetry / opentelemetry-network

eBPF Collector
https://opentelemetry.io
Apache License 2.0
296 stars 46 forks source link

Unable to build the project #277

Open kislaykishore opened 1 month ago

kislaykishore commented 1 month ago

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

Clone the repository

Attempt to build

Configure

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

yonch commented 1 month ago

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 commented 1 month ago

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

AsahiPeak commented 1 month ago

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

yonch commented 1 month ago

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

alexandrebrg commented 4 weeks ago

@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 commented 5 days ago

@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 commented 5 days ago

Hi @m-4ever , PR #275 should have solved this: https://github.com/jakub-racek-swi/opentelemetry-network/commit/e34d77611253c04cf336d9e9c54ac2860d1117d0

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