Closed Bug 2074346 Opened 2 months ago Closed 1 month ago

../third_party/parakeet.cpp/src/backend.hpp fails to compile with error: unknown type name 'int64_t'

Categories

(Firefox Build System :: Toolchains, defect)

Firefox 157
defect

Tracking

(firefox-esr115 unaffected, firefox-esr153 unaffected, firefox158 wontfix, firefox159 wontfix, firefox160 fixed)

RESOLVED FIXED
160 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr153 --- unaffected
firefox158 --- wontfix
firefox159 --- wontfix
firefox160 --- fixed

People

(Reporter: herrtimson, Assigned: padenot)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file, 1 external file)

Attached file build.log.gz —

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0

Steps to reproduce:

I download firefox-157.0_beta3 tarball and compiled it, using clang-23 on linux with musl as libc

Actual results:

the build fails to compile with:

517:48.73 /usr/lib/llvm/23/bin/armv7a-unknown-linux-musleabihf-clang++-23 -std=gnu++20 -o backend.o -c  -I/var/tmp/portage/www-client/firefox-157.0_beta3/work/firefox_build/dist/stl_wrappers -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstrict-flex-arrays=1 -DNDEBUG=1 -DTRIMMED=1 -DMOZ_HAS_MOZGLUE -I/var/tmp/portage/www-client/firefox-157.0_beta3/work/firefox-157.0/third_party/parakeet.cpp -I/var/tmp/portage/www-client/firefox-157.0_beta3/work/firefox_build/third_party/parakeet.cpp -I/var/tmp/portage/www-client/firefox-157.0_beta3/work/firefox-157.0/third_party/llama.cpp -I/var/tmp/portage/www-client/firefox-157.0_beta3/work/firefox-157.0/third_party/llama.cpp/ggml -I/var/tmp/portage/www-client/firefox-157.0_beta3/work/firefox-157.0/third_party/llama.cpp/ggml/include -I/var/tmp/portage/www-client/firefox-157.0_beta3/work/firefox-157.0/third_party/llama.cpp/ggml/src -I/var/tmp/portage/www-client/firefox-157.0_beta3/work/firefox-157.0/third_party/llama.cpp/ggml/src/ggml-cpu -I/var/tmp/portage/www-client/firefox-157.0_beta3/work/firefox-157.0/third_party/parakeet.cpp -I/var/tmp/portage/www-client/firefox-157.0_beta3/work/firefox-157.0/third_party/parakeet.cpp/include -I/var/tmp/portage/www-client/firefox-157.0_beta3/work/firefox-157.0/third_party/parakeet.cpp/src -I/var/tmp/portage/www-client/firefox-157.0_beta3/work/firefox_build/dist/include -I/usr/include/nspr -I/usr/include/nss -I/usr/include/nspr -I/var/tmp/portage/www-client/firefox-157.0_beta3/work/firefox_build/dist/include/nss -I/usr/include/libpng16 -I/usr/include/pixman-1 -DMOZILLA_CLIENT -include /var/tmp/portage/www-client/firefox-157.0_beta3/work/firefox_build/mozilla-config.h -mfloat-abi=hard -fno-rtti -pthread -fno-sized-deallocation -fno-aligned-new -ffunction-sections -fdata-sections -fno-math-errno -fno-exceptions -fdiagnostics-absolute-paths -fPIC -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -fomit-frame-pointer -O2 -fomit-frame-pointer -funwind-tables -Wall -Wbitfield-enum-conversion -Wempty-body -Wformat-type-confusion -Wignored-qualifiers -Wimplicit-int-enum-cast -Woctal-prefix-extension -Wpointer-arith -Wshift-bool -Wshadow-field-in-constructor-modified -Wsign-compare -Wtautological-constant-in-range-compare -Wtype-limits -Wno-error=tautological-type-limit-compare -Wunreachable-code -Wunreachable-code-return -Wunused-but-set-parameter -Wvector-conversion -Wno-invalid-offsetof -Wclass-varargs -Wempty-init-stmt -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wno-range-loop-analysis -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wdeprecated-literal-operator -Winvalid-utf8 -Wcomma -Wimplicit-fallthrough -Wstring-conversion -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-error=atomic-alignment -Wno-error=deprecated-builtins -Wformat -Wformat-security -Wno-psabi -Wthread-safety -Wno-error=builtin-macro-redefined -Wno-vla-cxx-extension -Wno-unknown-warning-option -Wno-character-conversion -fno-strict-aliasing -ffp-contract=off  -MD -MP -MF .deps/backend.o.pp  -fcolor-diagnostics  /var/tmp/portage/www-client/firefox-157.0_beta3/work/firefox-157.0/third_party/parakeet.cpp/src/backend.cpp
517:52.29 TPW In file included from /var/tmp/portage/www-client/firefox-157.0_beta3/work/firefox-157.0/third_party/parakeet.cpp/src/backend.cpp:1:
517:52.30 E /var/tmp/portage/www-client/firefox-157.0_beta3/work/firefox-157.0/third_party/parakeet.cpp/src/backend.hpp:116:39: error: unknown type name 'int64_t'

Expected results:

the compressed build log is attached

cstdint header is missing, this patch adds it:

diff --git a/third_party/parakeet.cpp/src/backend.hpp b/third_party/parakeet.cpp/src/backend.hpp
index d534ec9..f17ec23 100644
--- a/third_party/parakeet.cpp/src/backend.hpp
+++ b/third_party/parakeet.cpp/src/backend.hpp
@@ -1,5 +1,6 @@
 #pragma once
 #include <cstddef>
+#include <cstdint>
 #include <functional>
 #include <string>
 #include <vector>

upstream issue: https://github.com/mudler/parakeet.cpp/issues/70

Keywords: regression
Regressed by: webspeechondevice

:padenot, since you are the author of the regressor, bug 1940906, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(padenot)

The Bugbug bot thinks this bug should belong to the 'Firefox Build System::Toolchains' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Toolchains
Product: Firefox → Firefox Build System
Assignee: nobody → padenot
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

Set release status flags based on info from the regressing bug 1940906

Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6f910c0238f0 https://hg.mozilla.org/integration/autoland/rev/b278b8ae1cbe Revert "Bug 2074346 - Update parakeet.cpp to 623a968b r=media-webspeech-reviewers,pehrsons" for causing lint vendor failures
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: