Skip to content

Conversation

@daijh
Copy link

@daijh daijh commented Nov 28, 2025

The function logf is defined in "math.h". Removing the std:: namespace prefix resolves compilation errors experienced on Linux builds.

@daijh
Copy link
Author

daijh commented Nov 28, 2025

It can be reproduced on both v0.8.0 and main.

Build

git checkout v0.8.0

bazelisk build --config=linux --define=litert_link_capi_so=true --define=resolve_symbols_in_exec=false //runtime/engine:litert_lm_main

Log

runtime/components/preprocessor/audio_preprocessor_miniaudio.cc:210:20: error: no member named 'logf' in namespace 'std'; did you mean simply 'logf'?
210 | std::max(std::logf(tmp_log_mel[j]), config_.GetMelFloor());
| ^~~~~~~~~
| logf

The function `logf` is defined in <cmath>. Removing the `std::`
namespace prefix resolves compilation errors experienced on Linux
builds.
@daijh
Copy link
Author

daijh commented Dec 3, 2025

Ping...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant