Skip to content

Building not successfully on ubuntu 24.04 but works on ubuntu 22.04 #136

@1cebangbang

Description

@1cebangbang

On ubuntu 24 the ERROR appears like this (The build was almost completed but paused at about 980/983):
"/(bazelPath)/96a4d4bb30ef4ff7145b10c5711cf728/external/org_tensorflow/tensorflow/lite/kernels/internal/BUILD:858:11: Compiling tensorflow/lite/kernels/internal/spectrogram.cc failed: (Exit 1): gcc failed: error executing command

............

Execution platform: @local_execution_config_platform//:platform

external/org_tensorflow/tensorflow/lite/kernels/internal/spectrogram.cc:46:22: error: 'uint32_t' was not declared in this scope
46 | inline int Log2Floor(uint32_t n) {
| ^~~~~~~~
external/org_tensorflow/tensorflow/lite/kernels/internal/spectrogram.cc:20:1: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
19 | #include <math.h>
+++ |+#include
20 |
external/org_tensorflow/tensorflow/lite/kernels/internal/spectrogram.cc:61:24: error: 'uint32_t' was not declared in this scope
61 | inline int Log2Ceiling(uint32_t n) {
| ^~~~~~~~
external/org_tensorflow/tensorflow/lite/kernels/internal/spectrogram.cc:61:24: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
external/org_tensorflow/tensorflow/lite/kernels/internal/spectrogram.cc:69:8: error: 'uint32_t' does not name a type
69 | inline uint32_t NextPowerOfTwo(uint32_t value) {
| ^~~~~~~~
external/org_tensorflow/tensorflow/lite/kernels/internal/spectrogram.cc:69:8: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
external/org_tensorflow/tensorflow/lite/kernels/internal/spectrogram.cc: In member function 'bool tflite::internal::Spectrogram::Initialize(const std::vector&, int)':
external/org_tensorflow/tensorflow/lite/kernels/internal/spectrogram.cc:92:17: error: 'NextPowerOfTwo' was not declared in this scope
92 | fft_length_ = NextPowerOfTwo(window_length_);
| ^~~~~~~~~~~~~~
Target //:visqol failed to build
INFO: Elapsed time: 6.170s, Critical Path: 4.74s
INFO: 2 processes: 2 internal.
FAILED: Build did NOT complete successfully
"

but on a new installed ubuntu 22 the building completed successfully.(the ViSQOL files on both systems were only changed on the WORKSPACE of armadillo downloading, and bazel version are both 5.3.2)
I wonder if the error occurs because of the ubuntu itself, a wrong version of the gcc (or other) compiler or the incorrect setting of the bazel.
The release now is https://github.com/google/visqol/releases/tag/v3.3.3 and thanks to the Developers who successfully built ViSQOL on ubuntu 24.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions