You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Subject: Compilation Error in OnlyOffice – Unknown Typing Issue "use of undeclared identifier"
Description:
While attempting to compile OnlyOffice, I encountered a compilation error related to unknown typing. The error occurs during the build process and prevents successful compilation.
Expected Behavior:
The compilation process should complete successfully without any typing-related errors.
System Information:
OS: Ubuntu 24.04
Error Message:
ninja: Entering directory `out.gn/linux_64'
[2/2925] CXX obj/v8_libbase/stack_trace.o
FAILED: obj/v8_libbase/stack_trace.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/v8_libbase/stack_trace.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION="llvmorg-12-init-16296-g5e476061-1" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_GDB_JIT_INTERFACE -DENABLE_MINOR_MC -DV8_INTL_SUPPORT -DV8_ATOMIC_OBJECT_FIELD_WRITES -DV8_ATOMIC_MARKING_STATE -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_SNAPSHOT_COMPRESSION -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -DV8_NO_ARGUMENTS_ADAPTOR -DCPPGC_CAGED_HEAP -DV8_TARGET_ARCH_X64 -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX -DDISABLE_UNTRUSTED_CODE_MITIGATIONS -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -DV8_NO_ARGUMENTS_ADAPTOR -DCPPGC_CAGED_HEAP -I../.. -Igen -I../.. -I../../include -Igen -fno-delete-null-pointer-checks -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -m64 -march=x86-64 -msse3 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Xclang -fdebug-compilation-dir -Xclang . -no-canonical-prefixes -Wall -Wextra -Wimplicit-fallthrough -Wunreachable-code -Wthread-safety -Wextra-semi -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-psabi -Wno-ignored-pragma-optimize -Wno-implicit-int-float-conversion -Wno-final-dtor-non-final-class -Wno-builtin-assume-aligned-alignment -Wno-deprecated-copy -Wno-non-c-typedef-for-linkage -Wmax-tokens -fno-omit-frame-pointer -g0 -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wmissing-field-initializers -Wunreachable-code -Wshorten-64-to-32 -O3 -fno-ident -fdata-sections -ffunction-sections -fvisibility=default -std=c++14 -fno-trigraphs -Wno-trigraphs -fno-exceptions -fno-rtti -c ../../src/base/debug/stack_trace.cc -o obj/v8_libbase/stack_trace.o
In file included from ../../src/base/debug/stack_trace.cc:12:
In file included from ../../src/base/macros.h:12:
../../src/base/logging.h:176:34: error: use of undeclared identifier 'uint8_t'
std::is_same<underlying_t, uint8_t>::value, uint16_t,
^
../../src/base/logging.h:177:74: error: expected ';' after alias declaration
typename std::conditional<std::is_same<underlying_t, int8_t>::value,
^
;
../../src/base/logging.h:178:40: error: expected unqualified-id
int16_t, underlying_t>::type>::type;
^
../../src/base/logging.h:179:40: error: unknown type name 'int_t'
return PrintCheckOperand(static_cast<int_t>(static_cast<underlying_t>(val)));
^
In file included from ../../src/base/debug/stack_trace.cc:12:
../../src/base/macros.h:327:8: error: unknown type name 'uint64_t'
inline uint64_t make_uint64(uint32_t high, uint32_t low) {
^
../../src/base/macros.h:327:29: error: unknown type name 'uint32_t'
inline uint64_t make_uint64(uint32_t high, uint32_t low) {
^
../../src/base/macros.h:327:44: error: unknown type name 'uint32_t'
inline uint64_t make_uint64(uint32_t high, uint32_t low) {
^
../../src/base/macros.h:328:19: error: expected ')'
return (uint64_t{high} << 32) + low;
^
../../src/base/macros.h:328:10: note: to match this '('
return (uint64_t{high} << 32) + low;
^
../../src/base/macros.h:328:11: error: use of undeclared identifier 'uint64_t'
return (uint64_t{high} << 32) + low;
^
../../src/base/macros.h:367:51: error: unknown type name 'uintptr_t'; did you mean 'intptr_t'?
return reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(address) &
^~~~~~~~~
intptr_t
/usr/include/unistd.h:267:20: note: 'intptr_t' declared here
typedef __intptr_t intptr_t;
^
In file included from ../../src/base/debug/stack_trace.cc:12:
../../src/base/macros.h:368:47: error: unknown type name 'uintptr_t'; did you mean 'intptr_t'?
~static_cast<uintptr_t>(alignment - 1));
^~~~~~~~~
intptr_t
/usr/include/unistd.h:267:20: note: 'intptr_t' declared here
typedef __intptr_t intptr_t;
^
11 errors generated.
The text was updated successfully, but these errors were encountered:
OnlyOffice officially recommends using ubuntu16.04 to compile projects. I have encountered your problem, too. I am using ubuntu16.04 to compile in the virtual machine now. If I succeed, I will tell you.
Subject: Compilation Error in OnlyOffice – Unknown Typing Issue "use of undeclared identifier"
Description:
While attempting to compile OnlyOffice, I encountered a compilation error related to unknown typing. The error occurs during the build process and prevents successful compilation.
Expected Behavior:
The compilation process should complete successfully without any typing-related errors.
System Information:
OS: Ubuntu 24.04
Error Message:
ninja: Entering directory `out.gn/linux_64'
[2/2925] CXX obj/v8_libbase/stack_trace.o
FAILED: obj/v8_libbase/stack_trace.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/v8_libbase/stack_trace.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION="llvmorg-12-init-16296-g5e476061-1" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_GDB_JIT_INTERFACE -DENABLE_MINOR_MC -DV8_INTL_SUPPORT -DV8_ATOMIC_OBJECT_FIELD_WRITES -DV8_ATOMIC_MARKING_STATE -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_SNAPSHOT_COMPRESSION -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -DV8_NO_ARGUMENTS_ADAPTOR -DCPPGC_CAGED_HEAP -DV8_TARGET_ARCH_X64 -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX -DDISABLE_UNTRUSTED_CODE_MITIGATIONS -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -DV8_NO_ARGUMENTS_ADAPTOR -DCPPGC_CAGED_HEAP -I../.. -Igen -I../.. -I../../include -Igen -fno-delete-null-pointer-checks -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -m64 -march=x86-64 -msse3 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Xclang -fdebug-compilation-dir -Xclang . -no-canonical-prefixes -Wall -Wextra -Wimplicit-fallthrough -Wunreachable-code -Wthread-safety -Wextra-semi -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-psabi -Wno-ignored-pragma-optimize -Wno-implicit-int-float-conversion -Wno-final-dtor-non-final-class -Wno-builtin-assume-aligned-alignment -Wno-deprecated-copy -Wno-non-c-typedef-for-linkage -Wmax-tokens -fno-omit-frame-pointer -g0 -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wmissing-field-initializers -Wunreachable-code -Wshorten-64-to-32 -O3 -fno-ident -fdata-sections -ffunction-sections -fvisibility=default -std=c++14 -fno-trigraphs -Wno-trigraphs -fno-exceptions -fno-rtti -c ../../src/base/debug/stack_trace.cc -o obj/v8_libbase/stack_trace.o
In file included from ../../src/base/debug/stack_trace.cc:12:
In file included from ../../src/base/macros.h:12:
../../src/base/logging.h:176:34: error: use of undeclared identifier 'uint8_t'
std::is_same<underlying_t, uint8_t>::value, uint16_t,
^
../../src/base/logging.h:177:74: error: expected ';' after alias declaration
typename std::conditional<std::is_same<underlying_t, int8_t>::value,
^
;
../../src/base/logging.h:178:40: error: expected unqualified-id
int16_t, underlying_t>::type>::type;
^
../../src/base/logging.h:179:40: error: unknown type name 'int_t'
return PrintCheckOperand(static_cast<int_t>(static_cast<underlying_t>(val)));
^
In file included from ../../src/base/debug/stack_trace.cc:12:
../../src/base/macros.h:327:8: error: unknown type name 'uint64_t'
inline uint64_t make_uint64(uint32_t high, uint32_t low) {
^
../../src/base/macros.h:327:29: error: unknown type name 'uint32_t'
inline uint64_t make_uint64(uint32_t high, uint32_t low) {
^
../../src/base/macros.h:327:44: error: unknown type name 'uint32_t'
inline uint64_t make_uint64(uint32_t high, uint32_t low) {
^
../../src/base/macros.h:328:19: error: expected ')'
return (uint64_t{high} << 32) + low;
^
../../src/base/macros.h:328:10: note: to match this '('
return (uint64_t{high} << 32) + low;
^
../../src/base/macros.h:328:11: error: use of undeclared identifier 'uint64_t'
return (uint64_t{high} << 32) + low;
^
../../src/base/macros.h:367:51: error: unknown type name 'uintptr_t'; did you mean 'intptr_t'?
return reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(address) &
^~~~~~~~~
intptr_t
/usr/include/unistd.h:267:20: note: 'intptr_t' declared here
typedef __intptr_t intptr_t;
^
In file included from ../../src/base/debug/stack_trace.cc:12:
../../src/base/macros.h:368:47: error: unknown type name 'uintptr_t'; did you mean 'intptr_t'?
~static_cast<uintptr_t>(alignment - 1));
^~~~~~~~~
intptr_t
/usr/include/unistd.h:267:20: note: 'intptr_t' declared here
typedef __intptr_t intptr_t;
^
11 errors generated.
The text was updated successfully, but these errors were encountered: