Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error on debian 9. #426

Open
gokuls opened this issue Nov 12, 2018 · 13 comments
Open

Compilation error on debian 9. #426

gokuls opened this issue Nov 12, 2018 · 13 comments
Labels
help wanted Issues that need assistance from volunteers

Comments

@gokuls
Copy link

gokuls commented Nov 12, 2018

Not able to compile Document server on debian 9.
getting error while compiling 3rdparty V8.

ninja: Entering directory `out.gn/linux_64'
[1/1129] CXX obj/v8_base/store-store-elimination.o
FAILED: obj/v8_base/store-store-elimination.o 
g++ -MMD -MF obj/v8_base/store-store-elimination.o.d -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DENABLE_GDB_JIT_INTERFACE -DV8_INTL_SUPPORT -DV8_TARGET_ARCH_X64 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -I../.. -Igen -I../.. -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -B../../third_party/binutils/Linux_x64/Release/bin -m64 -march=x86-64 -pthread -Wall -Werror -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-unused-parameter -fomit-frame-pointer -g0 -fvisibility=hidden -Wno-strict-overflow -O3 -fno-ident -fdata-sections -ffunction-sections -std=gnu++11 -Wno-narrowing -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -c ../../src/compiler/store-store-elimination.cc -o obj/v8_base/store-store-elimination.o
../../src/compiler/store-store-elimination.cc:556:6: error: ‘bool v8::internal::compiler::{anonymous}::UnobservableStore::operator!=(v8::internal::compiler::{anonymous}::UnobservableStore) const’ defined but not used [-Werror=unused-function]
 bool UnobservableStore::operator!=(const UnobservableStore other) const {
      ^~~~~~~~~~~~~~~~~
.
.
.
.
.
.
*Ending with *

../../src/heap/mark-compact.cc:4435:59: error: ‘v8::internal::PointerUpdateJobTraits<type>::UpdateTypedPointers(v8::internal::Heap*, v8::internal::MemoryChunk*, const v8::internal::MarkCompactCollectorBase*)::<lambda(v8::internal::SlotType, v8::internal::Address, v8::internal::Address)> [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)0u; v8::internal::Address = unsigned char*; v8::internal::byte = unsigned char]::<lambda(v8::internal::Object**)>’ declared with greater visibility than the type of its field ‘v8::internal::PointerUpdateJobTraits<type>::UpdateTypedPointers(v8::internal::Heap*, v8::internal::MemoryChunk*, const v8::internal::MarkCompactCollectorBase*)::<lambda(v8::internal::SlotType, v8::internal::Address, v8::internal::Address)> [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)0u; v8::internal::Address = unsigned char*; v8::internal::byte = unsigned char]::<lambda(v8::internal::Object**)>::<collector capture>’ [-Werror=attributes]
cc1plus: all warnings being treated as errors
ninja: build stopped: subcommand failed.

Help me with how to go about.
what can be possible error.

@ShockwaveNN
Copy link
Contributor

@gokuls Hi, that is the version of gcc?

@gokuls
Copy link
Author

gokuls commented Nov 12, 2018

@ShockwaveNN 6.3.x

g++ (Debian 6.3.0-18+deb9u1) 6.3.0 20170516

@ShockwaveNN
Copy link
Contributor

@gokuls ok, 6.3.x should be fine. I need some time to investigate it

@gokuls
Copy link
Author

gokuls commented Nov 12, 2018

@ShockwaveNN You want me to provide any more information and try out any option meanwhile.

@ShockwaveNN
Copy link
Contributor

@gokuls Personally I do not know what to do, since this is error in v8 compile you can try to google your error at google support forums, but I found nothing.
I will try to build using my Dockerfile https://github.com/onlyoffice-testing-robot/documentserver-from-source-build/blob/master/DebianLatest/Dockerfile
I'm not sure it's in actual state, but compilation was working several months ago on latest Debian

@gokuls
Copy link
Author

gokuls commented Nov 12, 2018

@ShockwaveNN Thank you, I did google but still no way out.

i am compiling the source. following this link
https://helpcenter.onlyoffice.com/server/linux/document/compile-source-code.aspx

and struck at 3rdparty compilation.

@ShockwaveNN
Copy link
Contributor

@gokuls yep, I can confirm that i got similar error on my Dockerfile

[326/1493] CXX obj/v8_base/mark-compact.o
FAILED: obj/v8_base/mark-compact.o 
g++ -MMD -MF obj/v8_base/mark-compact.o.d -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DENABLE_GDB_JIT_INTERFACE -DV8_INTL_SUPPORT -DV8_TARGET_ARCH_X64 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -I../.. -Igen -I../.. -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -B../../third_party/binutils/Linux_x64/Release/bin -m64 -march=x86-64 -pthread -Wall -Werror -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-unused-parameter -fomit-frame-pointer -g0 -fvisibility=hidden -Wno-strict-overflow -O3 -fno-ident -fdata-sections -ffunction-sections -std=gnu++11 -Wno-narrowing -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -c ../../src/heap/mark-compact.cc -o obj/v8_base/mark-compact.o
../../src/heap/mark-compact.cc: In instantiation of 'struct v8::internal::PointerUpdateJobTraits<type>::UpdateTypedPointers(v8::internal::Heap*, v8::internal::MemoryChunk*, const v8::internal::MarkCompactCollectorBase*)::<lambda(v8::internal::SlotType, v8::internal::Address, v8::internal::Address)> [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)1u; v8::internal::Address = unsigned char*; v8::internal::byte = unsigned char]::<lambda(class v8::internal::Object**)>':
../../src/heap/mark-compact.cc:4434:58:   required from 'v8::internal::PointerUpdateJobTraits<type>::UpdateTypedPointers(v8::internal::Heap*, v8::internal::MemoryChunk*, const v8::internal::MarkCompactCollectorBase*)::<lambda(v8::internal::SlotType, v8::internal::Address, v8::internal::Address)> [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)1u; v8::internal::Address = unsigned char*; v8::internal::byte = unsigned char]'
../../src/heap/mark-compact.cc:4432:34:   required from 'struct v8::internal::PointerUpdateJobTraits<type>::UpdateTypedPointers(v8::internal::Heap*, v8::internal::MemoryChunk*, const v8::internal::MarkCompactCollectorBase*) [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)1u]::<lambda(enum v8::internal::SlotType, v8::internal::Address, v8::internal::Address)>'
../../src/heap/mark-compact.cc:4431:46:   required from 'static void v8::internal::PointerUpdateJobTraits<type>::UpdateTypedPointers(v8::internal::Heap*, v8::internal::MemoryChunk*, const v8::internal::MarkCompactCollectorBase*) [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)1u]'
../../src/heap/mark-compact.cc:4400:24:   required from 'static void v8::internal::PointerUpdateJobTraits<type>::ProcessPageInParallel(v8::internal::Heap*, v8::internal::PointerUpdateJobTraits<type>::PerTaskData, v8::internal::MemoryChunk*, v8::internal::PointerUpdateJobTraits<type>::PerPageData) [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)1u; v8::internal::PointerUpdateJobTraits<type>::PerTaskData = const v8::internal::MarkCompactCollectorBase*; v8::internal::PointerUpdateJobTraits<type>::PerPageData = int]'
../../src/heap/page-parallel-job.h:146:43:   required from 'void v8::internal::PageParallelJob<JobTraits>::Task::RunInternal() [with JobTraits = v8::internal::PointerUpdateJobTraits<(v8::internal::RememberedSetType)1u>]'
../../src/heap/mark-compact.cc:4892:1:   required from here
../../src/heap/mark-compact.cc:4435:59: error: 'v8::internal::PointerUpdateJobTraits<type>::UpdateTypedPointers(v8::internal::Heap*, v8::internal::MemoryChunk*, const v8::internal::MarkCompactCollectorBase*)::<lambda(v8::internal::SlotType, v8::internal::Address, v8::internal::Address)> [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)1u; v8::internal::Address = unsigned char*; v8::internal::byte = unsigned char]::<lambda(v8::internal::Object**)>' declared with greater visibility than the type of its field 'v8::internal::PointerUpdateJobTraits<type>::UpdateTypedPointers(v8::internal::Heap*, v8::internal::MemoryChunk*, const v8::internal::MarkCompactCollectorBase*)::<lambda(v8::internal::SlotType, v8::internal::Address, v8::internal::Address)> [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)1u; v8::internal::Address = unsigned char*; v8::internal::byte = unsigned char]::<lambda(v8::internal::Object**)>::<heap capture>' [-Werror=attributes]
                 isolate, slot_type, slot, [heap, collector](Object** slot) {
                                                           ^
../../src/heap/mark-compact.cc:4435:59: error: 'v8::internal::PointerUpdateJobTraits<type>::UpdateTypedPointers(v8::internal::Heap*, v8::internal::MemoryChunk*, const v8::internal::MarkCompactCollectorBase*)::<lambda(v8::internal::SlotType, v8::internal::Address, v8::internal::Address)> [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)1u; v8::internal::Address = unsigned char*; v8::internal::byte = unsigned char]::<lambda(v8::internal::Object**)>' declared with greater visibility than the type of its field 'v8::internal::PointerUpdateJobTraits<type>::UpdateTypedPointers(v8::internal::Heap*, v8::internal::MemoryChunk*, const v8::internal::MarkCompactCollectorBase*)::<lambda(v8::internal::SlotType, v8::internal::Address, v8::internal::Address)> [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)1u; v8::internal::Address = unsigned char*; v8::internal::byte = unsigned char]::<lambda(v8::internal::Object**)>::<collector capture>' [-Werror=attributes]
../../src/heap/mark-compact.cc: In instantiation of 'struct v8::internal::PointerUpdateJobTraits<type>::UpdateTypedPointers(v8::internal::Heap*, v8::internal::MemoryChunk*, const v8::internal::MarkCompactCollectorBase*)::<lambda(v8::internal::SlotType, v8::internal::Address, v8::internal::Address)> [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)0u; v8::internal::Address = unsigned char*; v8::internal::byte = unsigned char]::<lambda(class v8::internal::Object**)>':
../../src/heap/mark-compact.cc:4434:58:   required from 'v8::internal::PointerUpdateJobTraits<type>::UpdateTypedPointers(v8::internal::Heap*, v8::internal::MemoryChunk*, const v8::internal::MarkCompactCollectorBase*)::<lambda(v8::internal::SlotType, v8::internal::Address, v8::internal::Address)> [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)0u; v8::internal::Address = unsigned char*; v8::internal::byte = unsigned char]'
../../src/heap/mark-compact.cc:4432:34:   required from 'struct v8::internal::PointerUpdateJobTraits<type>::UpdateTypedPointers(v8::internal::Heap*, v8::internal::MemoryChunk*, const v8::internal::MarkCompactCollectorBase*) [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)0u]::<lambda(enum v8::internal::SlotType, v8::internal::Address, v8::internal::Address)>'
../../src/heap/mark-compact.cc:4431:46:   required from 'static void v8::internal::PointerUpdateJobTraits<type>::UpdateTypedPointers(v8::internal::Heap*, v8::internal::MemoryChunk*, const v8::internal::MarkCompactCollectorBase*) [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)0u]'
../../src/heap/mark-compact.cc:4400:24:   required from 'static void v8::internal::PointerUpdateJobTraits<type>::ProcessPageInParallel(v8::internal::Heap*, v8::internal::PointerUpdateJobTraits<type>::PerTaskData, v8::internal::MemoryChunk*, v8::internal::PointerUpdateJobTraits<type>::PerPageData) [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)0u; v8::internal::PointerUpdateJobTraits<type>::PerTaskData = const v8::internal::MarkCompactCollectorBase*; v8::internal::PointerUpdateJobTraits<type>::PerPageData = int]'
../../src/heap/page-parallel-job.h:146:43:   required from 'void v8::internal::PageParallelJob<JobTraits>::Task::RunInternal() [with JobTraits = v8::internal::PointerUpdateJobTraits<(v8::internal::RememberedSetType)0u>]'
../../src/heap/mark-compact.cc:4892:1:   required from here
../../src/heap/mark-compact.cc:4435:59: error: 'v8::internal::PointerUpdateJobTraits<type>::UpdateTypedPointers(v8::internal::Heap*, v8::internal::MemoryChunk*, const v8::internal::MarkCompactCollectorBase*)::<lambda(v8::internal::SlotType, v8::internal::Address, v8::internal::Address)> [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)0u; v8::internal::Address = unsigned char*; v8::internal::byte = unsigned char]::<lambda(v8::internal::Object**)>' declared with greater visibility than the type of its field 'v8::internal::PointerUpdateJobTraits<type>::UpdateTypedPointers(v8::internal::Heap*, v8::internal::MemoryChunk*, const v8::internal::MarkCompactCollectorBase*)::<lambda(v8::internal::SlotType, v8::internal::Address, v8::internal::Address)> [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)0u; v8::internal::Address = unsigned char*; v8::internal::byte = unsigned char]::<lambda(v8::internal::Object**)>::<heap capture>' [-Werror=attributes]
../../src/heap/mark-compact.cc:4435:59: error: 'v8::internal::PointerUpdateJobTraits<type>::UpdateTypedPointers(v8::internal::Heap*, v8::internal::MemoryChunk*, const v8::internal::MarkCompactCollectorBase*)::<lambda(v8::internal::SlotType, v8::internal::Address, v8::internal::Address)> [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)0u; v8::internal::Address = unsigned char*; v8::internal::byte = unsigned char]::<lambda(v8::internal::Object**)>' declared with greater visibility than the type of its field 'v8::internal::PointerUpdateJobTraits<type>::UpdateTypedPointers(v8::internal::Heap*, v8::internal::MemoryChunk*, const v8::internal::MarkCompactCollectorBase*)::<lambda(v8::internal::SlotType, v8::internal::Address, v8::internal::Address)> [with v8::internal::RememberedSetType type = (v8::internal::RememberedSetType)0u; v8::internal::Address = unsigned char*; v8::internal::byte = unsigned char]::<lambda(v8::internal::Object**)>::<collector capture>' [-Werror=attributes]
cc1plus: all warnings being treated as errors

Not sure that we able to figure it out correctly

@ShockwaveNN
Copy link
Contributor

Same error may be described at https://stackoverflow.com/questions/2828738/c-warning-declared-with-greater-visibility-than-the-type-of-its-field/3170163#3170163
But solution according to this post add -fvisibility=default or -fvisibility=hidden flag to gcc.
But this flag already enabled at failed command obj/v8_base/mark-compact.o

@ShockwaveNN ShockwaveNN added the help wanted Issues that need assistance from volunteers label Nov 12, 2018
@gokuls
Copy link
Author

gokuls commented Nov 13, 2018

@ShockwaveNN thank you. If you happen to find a way out pleas let me know.

@ShockwaveNN
Copy link
Contributor

@gokuls if I found a way - I post it here, but currently I don't know what to do :(

@peterlus
Copy link

same error...

@ar27111994
Copy link

same on Ubuntu 18.04 LTS
gcc version is 7.3.0

@leonekmi
Copy link

leonekmi commented Aug 26, 2019

Using the patch used here @ L70, v8 is compiling successfully on Debian 9.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Issues that need assistance from volunteers
Projects
None yet
Development

No branches or pull requests

5 participants