open-telemetry / opentelemetry-network

eBPF Collector
https://opentelemetry.io
Apache License 2.0
275 stars 45 forks source link

Unable to build the project #277

Open kislaykishore opened 3 days ago

kislaykishore commented 3 days 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 3 days 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 3 days ago

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