Building new version fails with attribute directive ignored

Having problems with building or using CEF? This forum is here to help. Please do not post bug reports or feature requests here.

Building new version fails with attribute directive ignored

Postby hhyyrylainen » Mon Oct 08, 2018 2:32 pm

Hi,

After having issues loading es6 modules I tried updating my CEF version from '3.3325.1756.g6d8faa4' to '3.3497.1836.gb472a8d' but compiling that fails with this:

Code: Select all
Setting up build files for CEF
-- The C compiler identification is GNU 8.1.1
-- The CXX compiler identification is GNU 8.1.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_SUPPORTS_NO_UNUSED_LOCAL_TYPEDEFS
-- Performing Test COMPILER_SUPPORTS_NO_UNUSED_LOCAL_TYPEDEFS - Success
-- Performing Test COMPILER_SUPPORTS_NO_LITERAL_SUFFIX
-- Performing Test COMPILER_SUPPORTS_NO_LITERAL_SUFFIX - Success
-- Performing Test COMPILER_SUPPORTS_NO_NARROWING
-- Performing Test COMPILER_SUPPORTS_NO_NARROWING - Success
-- *** CEF CONFIGURATION SETTINGS ***
-- Generator:                    Unix Makefiles
-- Platform:                     Linux
-- Project architecture:         x86_64
-- Build type:                   RelWithDebInfo
-- Binary distribution root:     /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF
-- Standard libraries:           X11
-- Compile defines:              __STDC_CONSTANT_MACROS;__STDC_FORMAT_MACROS;_FILE_OFFSET_BITS=64
-- Compile defines (Debug):     
-- Compile defines (Release):    NDEBUG
-- C compile flags:              -fno-strict-aliasing;-fPIC;-fstack-protector;-funwind-tables;-fvisibility=hidden;--param=ssp-buffer-size=4;-pipe;-pthread;-Wall;-Werror;-Wno-missing-field-initializers;-Wno-unused-parameter;-Wno-error=comment;-Wno-comment;-m64;-march=x86-64 -std=c99;-Wno-unused-local-typedefs
-- C compile flags (Debug):      -O0;-g
-- C compile flags (Release):    -O2;-fdata-sections;-ffunction-sections;-fno-ident;-U_FORTIFY_SOURCE;-D_FORTIFY_SOURCE=2
-- C++ compile flags:            -fno-strict-aliasing;-fPIC;-fstack-protector;-funwind-tables;-fvisibility=hidden;--param=ssp-buffer-size=4;-pipe;-pthread;-Wall;-Werror;-Wno-missing-field-initializers;-Wno-unused-parameter;-Wno-error=comment;-Wno-comment;-m64;-march=x86-64 -fno-exceptions;-fno-rtti;-fno-threadsafe-statics;-fvisibility-inlines-hidden;-std=gnu++11;-Wsign-compare;-Wno-literal-suffix;-Wno-narrowing
-- C++ compile flags (Debug):    -O0;-g
-- C++ compile flags (Release):  -O2;-fdata-sections;-ffunction-sections;-fno-ident;-U_FORTIFY_SOURCE;-D_FORTIFY_SOURCE=2
-- Exe link flags:               -fPIC;-pthread;-Wl,--disable-new-dtags;-Wl,--fatal-warnings;-Wl,-rpath,.;-Wl,-z,noexecstack;-Wl,-z,now;-Wl,-z,relro;-m64
-- Exe link flags (Debug):       
-- Exe link flags (Release):     -Wl,-O1;-Wl,--as-needed;-Wl,--gc-sections
-- Shared link flags:            -fPIC;-pthread;-Wl,--disable-new-dtags;-Wl,--fatal-warnings;-Wl,-rpath,.;-Wl,-z,noexecstack;-Wl,-z,now;-Wl,-z,relro;-m64
-- Shared link flags (Debug):     
-- Shared link flags (Release):  -Wl,-O1;-Wl,--as-needed;-Wl,--gc-sections
-- CEF Binary files:             chrome-sandbox;libcef.so;libEGL.so;libGLESv2.so;natives_blob.bin;snapshot_blob.bin;v8_context_snapshot.bin;swiftshader
-- CEF Resource files:           cef.pak;cef_100_percent.pak;cef_200_percent.pak;cef_extensions.pak;devtools_resources.pak;icudtl.dat;locales
-- Configuring done
-- Generating done
-- Build files have been written to: /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/build
Successfully created project files for CEF
Compiling CEF
Scanning dependencies of target libcef_dll_wrapper
[  0%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_thread_checker_impl.cc.o
[  0%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_bind_helpers.cc.o
[  1%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_lock_impl.cc.o
[  2%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_atomicops_x86_gcc.cc.o
[  3%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_ref_counted.cc.o
[  4%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_callback_helpers.cc.o
[  4%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_lock.cc.o
[  4%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/transfer_util.cc.o
[  6%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_string16.cc.o
[  6%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_callback_internal.cc.o
[  7%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/base_ref_counted_cpptoc.cc.o
[  7%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/accessibility_handler_cpptoc.cc.o
[  8%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/app_cpptoc.cc.o
[  9%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/completion_callback_cpptoc.cc.o
[ 10%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_weak_ptr.cc.o
[ 10%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_logging.cc.o
[ 12%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/context_menu_handler_cpptoc.cc.o
[ 12%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/browser_process_handler_cpptoc.cc.o
[ 12%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/client_cpptoc.cc.o
[ 12%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/base_scoped_cpptoc.cc.o
[ 12%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/cookie_visitor_cpptoc.cc.o
[ 13%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/delete_cookies_callback_cpptoc.cc.o
[ 13%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/dialog_handler_cpptoc.cc.o
[ 14%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/display_handler_cpptoc.cc.o
[ 15%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/domvisitor_cpptoc.cc.o
[ 15%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/download_handler_cpptoc.cc.o
In file included from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/value_ctocpp.h:25,
                 from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/cpptoc/accessibility_handler_cpptoc.cc:16:
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:77:27: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   void UnderlyingAddRef() const {
                           ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:85:28: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingRelease() const {
                            ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:94:30: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingHasOneRef() const {
                              ^~~~~
[ 16%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/download_image_callback_cpptoc.cc.o
[ 16%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/drag_handler_cpptoc.cc.o
[ 17%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/end_tracing_callback_cpptoc.cc.o
In file included from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/command_line_ctocpp.h:26,
                 from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/cpptoc/browser_process_handler_cpptoc.cc:17:
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:77:27: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   void UnderlyingAddRef() const {
                           ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:85:28: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingRelease() const {
                            ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:94:30: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingHasOneRef() const {
                              ^~~~~
In file included from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/browser_ctocpp.h:28,
                 from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/cpptoc/client_cpptoc.cc:29:
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:77:27: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   void UnderlyingAddRef() const {
                           ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:85:28: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingRelease() const {
                            ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:94:30: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingHasOneRef() const {
                              ^~~~~
[ 18%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/extension_handler_cpptoc.cc.o
In file included from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/browser_ctocpp.h:28,
                 from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/cpptoc/context_menu_handler_cpptoc.cc:16:
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:77:27: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   void UnderlyingAddRef() const {
                           ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:85:28: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingRelease() const {
                            ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:94:30: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingHasOneRef() const {
                              ^~~~~
In file included from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/command_line_ctocpp.h:26,
                 from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/cpptoc/app_cpptoc.cc:19:
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:77:27: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   void UnderlyingAddRef() const {
                           ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:85:28: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingRelease() const {
                            ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:94:30: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingHasOneRef() const {
                              ^~~~~
In file included from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/scheme_registrar_ctocpp.h:25,
                 from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/cpptoc/app_cpptoc.cc:20:
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_scoped.h:184:14: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
     void* ptr) {
              ^
[ 18%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/find_handler_cpptoc.cc.o
cc1plus: all warnings being treated as errors
make[2]: *** [libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/build.make:219: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/accessibility_handler_cpptoc.cc.o] Virhe 1
make[2]: *** Odotetaan keskeneräisiä töitä....
[ 19%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/focus_handler_cpptoc.cc.o
cc1plus: all warnings being treated as errors
make[2]: *** [libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/build.make:271: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/browser_process_handler_cpptoc.cc.o] Virhe 1
In file included from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/domdocument_ctocpp.h:25,
                 from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/cpptoc/domvisitor_cpptoc.cc:16:
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:77:27: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   void UnderlyingAddRef() const {
                           ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:85:28: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingRelease() const {
                            ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:94:30: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingHasOneRef() const {
                              ^~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/build.make:232: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/app_cpptoc.cc.o] Virhe 1
In file included from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/browser_ctocpp.h:28,
                 from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/cpptoc/dialog_handler_cpptoc.cc:16:
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:77:27: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   void UnderlyingAddRef() const {
                           ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:85:28: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingRelease() const {
                            ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:94:30: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingHasOneRef() const {
                              ^~~~~
In file included from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/before_download_callback_ctocpp.h:25,
                 from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/cpptoc/download_handler_cpptoc.cc:16:
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:77:27: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   void UnderlyingAddRef() const {
                           ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:85:28: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingRelease() const {
                            ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:94:30: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingHasOneRef() const {
                              ^~~~~
In file included from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/browser_ctocpp.h:28,
                 from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/cpptoc/display_handler_cpptoc.cc:16:
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:77:27: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   void UnderlyingAddRef() const {
                           ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:85:28: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingRelease() const {
                            ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:94:30: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingHasOneRef() const {
                              ^~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/build.make:310: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/context_menu_handler_cpptoc.cc.o] Virhe 1
In file included from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/image_ctocpp.h:25,
                 from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/cpptoc/download_image_callback_cpptoc.cc:16:
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:77:27: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   void UnderlyingAddRef() const {
                           ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:85:28: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingRelease() const {
                            ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:94:30: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingHasOneRef() const {
                              ^~~~~
In file included from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/browser_ctocpp.h:28,
                 from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/cpptoc/drag_handler_cpptoc.cc:16:
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:77:27: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   void UnderlyingAddRef() const {
                           ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:85:28: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingRelease() const {
                            ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:94:30: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingHasOneRef() const {
                              ^~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/build.make:375: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/domvisitor_cpptoc.cc.o] Virhe 1
cc1plus: all warnings being treated as errors
make[2]: *** [libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/build.make:284: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/client_cpptoc.cc.o] Virhe 1
cc1plus: all warnings being treated as errors
make[2]: *** [libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/build.make:401: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/download_image_callback_cpptoc.cc.o] Virhe 1
cc1plus: all warnings being treated as errors
make[2]: *** [libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/build.make:349: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/dialog_handler_cpptoc.cc.o] Virhe 1
In file included from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/browser_ctocpp.h:28,
                 from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/cpptoc/find_handler_cpptoc.cc:16:
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:77:27: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   void UnderlyingAddRef() const {
                           ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:85:28: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingRelease() const {
                            ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:94:30: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingHasOneRef() const {
                              ^~~~~
cc1plus: all warnings being treated as errors
In file included from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/browser_ctocpp.h:28,
                 from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/cpptoc/extension_handler_cpptoc.cc:17:
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:77:27: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   void UnderlyingAddRef() const {
                           ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:85:28: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingRelease() const {
                            ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:94:30: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingHasOneRef() const {
                              ^~~~~
make[2]: *** [libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/build.make:388: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/download_handler_cpptoc.cc.o] Virhe 1
In file included from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/browser_ctocpp.h:28,
                 from /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/cpptoc/focus_handler_cpptoc.cc:16:
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:77:27: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   void UnderlyingAddRef() const {
                           ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:85:28: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingRelease() const {
                            ^~~~~
/home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/libcef_dll/ctocpp/ctocpp_ref_counted.h:94:30: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingHasOneRef() const {
                              ^~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/build.make:362: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/display_handler_cpptoc.cc.o] Virhe 1
cc1plus: all warnings being treated as errors
make[2]: *** [libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/build.make:414: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/drag_handler_cpptoc.cc.o] Virhe 1
cc1plus: all warnings being treated as errors
make[2]: *** [libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/build.make:453: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/find_handler_cpptoc.cc.o] Virhe 1
cc1plus: all warnings being treated as errors
make[2]: *** [libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/build.make:466: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/focus_handler_cpptoc.cc.o] Virhe 1
cc1plus: all warnings being treated as errors
make[2]: *** [libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/build.make:440: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/extension_handler_cpptoc.cc.o] Virhe 1
make[1]: *** [CMakeFiles/Makefile2:86: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/all] Virhe 2
make: *** [Makefile:84: all] Virhe 2


I tried searching for a solution but it I couldn't find anything with "cfi-icall attribute directive ignored". If I remove "-Werror" from cef_variables.cmake I can compile CEF.
hhyyrylainen
Techie
 
Posts: 12
Joined: Tue Apr 10, 2018 3:08 am

Re: Building new version fails with attribute directive igno

Postby magreenblatt » Mon Oct 08, 2018 2:40 pm

What Linux distro and version are you building on?
magreenblatt
Site Admin
 
Posts: 8826
Joined: Fri May 29, 2009 6:57 pm

Re: Building new version fails with attribute directive igno

Postby hhyyrylainen » Tue Oct 09, 2018 1:30 am

I'm building on Fedora 28 with gcc (GCC) 8.1.1 20180712 (Red Hat 8.1.1-5).

But even when I get that version to compile it hangs on startup when I use the --disable-gpu flag, which I must use to get any render output (at least with the older version). Without the --disable-gpu flag I don't even get the cursor change message from CEF, so it is completely not working. And the new version with that flag just waits infinitely here:
Code: Select all
0  in __pthread_once_slow of /lib64/libpthread.so.0
1  in localtime_r_override of ../../sandbox/linux/services/libc_interceptor.cc:291
2  in Init of ./../../base/logging.cc:898
3  in InitLibcLocaltimeFunctions of ../../sandbox/linux/services/libc_interceptor.cc:208
4  in __pthread_once_slow of /lib64/libpthread.so.0
5  in localtime_r_override of ../../sandbox/linux/services/libc_interceptor.cc:291
6  in Init of ./../../base/logging.cc:898
7  in OnLostMainThreadSharedContext of ./../../content/browser/compositor/gpu_process_transport_factory.cc:1017
8  in DisableGpuCompositing of ./../../content/browser/compositor/gpu_process_transport_factory.cc:664
9  in GpuProcessTransportFactory of ./../../content/browser/compositor/gpu_process_transport_factory.cc:196
10 in make_unique<content::GpuProcessTransportFactory, content::BrowserGpuChannelHostFactory*, viz::CompositingModeReporterImpl*, viz::ServerSharedBitmapManager*, scoped_refptr<base::SingleThreadTaskRunner> > of ../../buildtools/third_party/libc++/trunk/include/memory:3114
11 in BrowserThreadsStarted of ./../../content/browser/browser_main_loop.cc:1321
12 in Run of ../../base/callback.h:129
13 in RunAllTasksNow of ./../../content/browser/startup_task_runner.cc:43
14 in CreateStartupTasks of ./../../content/browser/browser_main_loop.cc:928
15 in Initialize of ./../../content/browser/browser_main_runner_impl.cc:141
16 in RunProcess of ../../cef/libcef/common/main_delegate.cc:596
17 in RunBrowserProcessMain of ../../content/app/content_main_runner_impl.cc:586
18 in Run of ../../content/app/content_main_runner_impl.cc:947
19 in MainRun of ../../services/service_manager/embedder/main.cc:479
20 in Initialize of ../../cef/libcef/browser/context.cc:401
21 in CefInitialize of ../../cef/libcef/browser/context.cc:237
22 in cef_initialize of ../../cef/libcef_dll/libcef_dll.cc:229
23 in CefInitialize of /home/hhyyrylainen/Projects/Leviathan/ThirdParty/CEF/include/base/internal/cef_atomicops_x86_gcc.h:81
24 in Leviathan::GlobalCEFHandler::CEFFirstCheckChildProcess(int, char**, int&, std::shared_ptr<Leviathan::CEFApplicationKeeper>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) of /home/hhyyrylainen/Projects/Leviathan/Engine/GlobalCEFHandler.cpp:150
25 in main of /home/hhyyrylainen/Projects/Leviathan/Editor/Main.cpp:109
26 in __libc_start_main of /lib64/libc.so.6
27 in _start of /usr/include/c++/8/bits/char_traits.h:285


And without the disable gpu flag it just waits here on shutdown (after not having even rendered anything):
Code: Select all
0  in __pthread_timedjoin_ex of /lib64/libpthread.so.0
1  in Join of ./../../base/threading/platform_thread_posix.cc:230
2  in base::SimpleThread::Join() of ./../../base/threading/simple_thread.cc:41
3  in ~SandboxHostLinux of ./../../content/browser/sandbox_host_linux.cc:67
4  in Delete of ../../base/memory/singleton.h:54
5  in OnExit of ../../base/memory/singleton.h:251
6  in Run of ../../base/callback.h:129
7  in ProcessCallbacksNow of ./../../base/at_exit.cc:90
8  in ~AtExitManager of ./../../base/at_exit.cc:45
9  in operator() of ../../buildtools/third_party/libc++/trunk/include/memory:2321
10 in reset of ../../buildtools/third_party/libc++/trunk/include/memory:2634
11 in Shutdown of ../../content/app/content_main_runner_impl.cc:976
12 in FinalizeShutdown of ../../cef/libcef/browser/context.cc:546
13 in CefShutdown of ../../cef/libcef/browser/context.cc:255
14 in Leviathan::GlobalCEFHandler::CEFLastThingInProgram of /home/hhyyrylainen/Projects/Leviathan/Engine/GlobalCEFHandler.cpp:170
15 in main of /home/hhyyrylainen/Projects/Leviathan/Editor/Main.cpp:235
16 in __libc_start_main of /lib64/libc.so.6
17 in _start of /usr/include/c++/8/bits/char_traits.h:285
hhyyrylainen
Techie
 
Posts: 12
Joined: Tue Apr 10, 2018 3:08 am

Re: Building new version fails with attribute directive igno

Postby magreenblatt » Tue Oct 09, 2018 2:28 am

Do the problems reproduce with the CEF sample applications?
magreenblatt
Site Admin
 
Posts: 8826
Joined: Fri May 29, 2009 6:57 pm

Re: Building new version fails with attribute directive igno

Postby hhyyrylainen » Tue Oct 09, 2018 6:44 am

I tried to compile https://bitbucket.org/chromiumembedded/cef-project with the selected CEF version in it but it fails to compile due to gtk2 usage, which my new compiler doesn't like:

Code: Select all
[ 73%] Built target libcef_dll_wrapper
[ 73%] Building CXX object third_party/cef/cef_binary_3.3396.1777.g636f29b_linux64/tests/cefclient/CMakeFiles/cefclient.dir/browser/binding_test.cc.o
[ 75%] Building CXX object third_party/cef/cef_binary_3.3396.1777.g636f29b_linux64/tests/cefclient/CMakeFiles/cefclient.dir/browser/browser_window.cc.o
In file included from /usr/include/gtk-2.0/gtk/gtk.h:89,
                 from /home/hhyyrylainen/Projects/cef-project/third_party/cef/cef_binary_3.3396.1777.g636f29b_linux64/tests/cefclient/browser/client_types.h:12,
                 from /home/hhyyrylainen/Projects/cef-project/third_party/cef/cef_binary_3.3396.1777.g636f29b_linux64/tests/cefclient/browser/client_handler.h:16,
                 from /home/hhyyrylainen/Projects/cef-project/third_party/cef/cef_binary_3.3396.1777.g636f29b_linux64/tests/cefclient/browser/browser_window.h:11,
                 from /home/hhyyrylainen/Projects/cef-project/third_party/cef/cef_binary_3.3396.1777.g636f29b_linux64/tests/cefclient/browser/browser_window.cc:5:
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:59:8: virhe: unnecessary parentheses in declaration of ”__gtk_reserved1” [-Werror=parentheses]
   void (*__gtk_reserved1);
        ^
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:60:8: virhe: unnecessary parentheses in declaration of ”__gtk_reserved2” [-Werror=parentheses]
   void (*__gtk_reserved2);
        ^
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:61:8: virhe: unnecessary parentheses in declaration of ”__gtk_reserved3” [-Werror=parentheses]
   void (*__gtk_reserved3);
        ^
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:62:8: virhe: unnecessary parentheses in declaration of ”__gtk_reserved4” [-Werror=parentheses]
   void (*__gtk_reserved4);
        ^
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:63:8: virhe: unnecessary parentheses in declaration of ”__gtk_reserved5” [-Werror=parentheses]
   void (*__gtk_reserved5);
        ^
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:64:8: virhe: unnecessary parentheses in declaration of ”__gtk_reserved6” [-Werror=parentheses]
   void (*__gtk_reserved6);
        ^
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:65:8: virhe: unnecessary parentheses in declaration of ”__gtk_reserved7” [-Werror=parentheses]
   void (*__gtk_reserved7);
        ^
In file included from /usr/include/gtk-2.0/gtk/gtk.h:173,
                 from /home/hhyyrylainen/Projects/cef-project/third_party/cef/cef_binary_3.3396.1777.g636f29b_linux64/tests/cefclient/browser/client_types.h:12,
                 from /home/hhyyrylainen/Projects/cef-project/third_party/cef/cef_binary_3.3396.1777.g636f29b_linux64/tests/cefclient/browser/client_handler.h:16,
                 from /home/hhyyrylainen/Projects/cef-project/third_party/cef/cef_binary_3.3396.1777.g636f29b_linux64/tests/cefclient/browser/browser_window.h:11,
                 from /home/hhyyrylainen/Projects/cef-project/third_party/cef/cef_binary_3.3396.1777.g636f29b_linux64/tests/cefclient/browser/browser_window.cc:5:
/usr/include/gtk-2.0/gtk/gtkstatusicon.h:76:8: virhe: unnecessary parentheses in declaration of ”__gtk_reserved1” [-Werror=parentheses]
   void (*__gtk_reserved1);
        ^
/usr/include/gtk-2.0/gtk/gtkstatusicon.h:77:8: virhe: unnecessary parentheses in declaration of ”__gtk_reserved2” [-Werror=parentheses]
   void (*__gtk_reserved2);
        ^
cc1plus: all warnings being treated as errors


But once again forcing warnings off lets me compile it. And to me it seems to work fine, even when I tried to set offscreen rendering on.

When trying with the newer version,3.3497.1836.gb472a8d, I get the same error:

Code: Select all
[ 12%] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/cpptoc/context_menu_handler_cpptoc.cc.o
In file included from /home/hhyyrylainen/Projects/cef-project/third_party/cef/cef_binary_3.3497.1836.gb472a8d_linux64/libcef_dll/ctocpp/value_ctocpp.h:25,
                 from /home/hhyyrylainen/Projects/cef-project/third_party/cef/cef_binary_3.3497.1836.gb472a8d_linux64/libcef_dll/cpptoc/accessibility_handler_cpptoc.cc:16:
/home/hhyyrylainen/Projects/cef-project/third_party/cef/cef_binary_3.3497.1836.gb472a8d_linux64/libcef_dll/ctocpp/ctocpp_ref_counted.h:77:27: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   void UnderlyingAddRef() const {
                           ^~~~~
/home/hhyyrylainen/Projects/cef-project/third_party/cef/cef_binary_3.3497.1836.gb472a8d_linux64/libcef_dll/ctocpp/ctocpp_ref_counted.h:85:28: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingRelease() const {
                            ^~~~~
/home/hhyyrylainen/Projects/cef-project/third_party/cef/cef_binary_3.3497.1836.gb472a8d_linux64/libcef_dll/ctocpp/ctocpp_ref_counted.h:94:30: virhe: ”cfi-icall” attribute directive ignored [-Werror=attributes]
   bool UnderlyingHasOneRef() const {
                              ^~~~~
hhyyrylainen
Techie
 
Posts: 12
Joined: Tue Apr 10, 2018 3:08 am

Re: Building new version fails with attribute directive igno

Postby hhyyrylainen » Tue Oct 09, 2018 7:04 am

I tried to use the version from https://bitbucket.org/chromiumembedded/cef-project (3.3396.1777.g636f29b) in my project and that fails the same way the newer version does. I tried the precompiled samples from http://opensource.spotify.com/cefbuilds ... nt.tar.bz2 and they seemed to run fine with "--off-screen-rendering-enabled".

So maybe I'm doing something wrong regarding the event loop? My code related to CEF is a bit split all over the place but these are some of the main things:

https://github.com/hhyyrylainen/Leviath ... andler.cpp
https://github.com/hhyyrylainen/Leviath ... e.cpp#L657
https://github.com/hhyyrylainen/Leviath ... cation.cpp
https://github.com/hhyyrylainen/Leviath ... uiView.cpp
hhyyrylainen
Techie
 
Posts: 12
Joined: Tue Apr 10, 2018 3:08 am

Re: Building new version fails with attribute directive igno

Postby magreenblatt » Tue Oct 09, 2018 12:45 pm

I would suggest comparing your code to the CEF sample applications to identify what you might be doing wrong.
magreenblatt
Site Admin
 
Posts: 8826
Joined: Fri May 29, 2009 6:57 pm

Re: Building new version fails with attribute directive igno

Postby hhyyrylainen » Tue Oct 09, 2018 2:15 pm

The only different part (besides me doing passing options a bit differently, I checked that my command line and CefSettings have the same values) is this:

Code: Select all
  ClientApp::ProcessType process_type = ClientApp::GetProcessType(command_line);
  if (process_type == ClientApp::BrowserProcess) {
    app = new ClientAppBrowser();
  } else if (process_type == ClientApp::RendererProcess ||
             process_type == ClientApp::ZygoteProcess) {
    // On Linux the zygote process is used to spawn other process types. Since
    // we don't know what type of process it will be give it the renderer
    // client.
    app = new ClientAppRenderer();
  } else if (process_type == ClientApp::OtherProcess) {
    app = new ClientAppOther();
  }


Is it mandatory to have different CefApp types for the different processes? Or could there have been some change I need to do my CefApp class?
hhyyrylainen
Techie
 
Posts: 12
Joined: Tue Apr 10, 2018 3:08 am

Re: Building new version fails with attribute directive igno

Postby magreenblatt » Tue Oct 09, 2018 2:22 pm

The ClientApp subclasses are used to implement the process handler interfaces in the correct process (browser and renderer).
magreenblatt
Site Admin
 
Posts: 8826
Joined: Fri May 29, 2009 6:57 pm

Re: Building new version fails with attribute directive igno

Postby hhyyrylainen » Tue Oct 09, 2018 2:49 pm

I compared what my combined Browser and Renderer app class had and I made two changes (I didn't trace what was registered as the Delegates that were used in most of the methods):

- I implemented OnScheduleMessagePumpWork by adding a call to CefDoMessageLoopWork
- I changed my OnBeforeCommandLineProcessing to be the same as in "tests/shared/browser/client_app_browser.cc"

I don't really see that many differences left. I just have a few extra methods overridden to send custom messages between the different processes.

Edit: I very much would like to get CEF working for me again as I have tried many other GUI libraries that haven't really worked for me. So at this point if there isn't a solution to this issue I have to spend a lot of effort in order to roll my own...

Edit2: with process monitor I can see that 4 extra processes are started but none of them seem to do anything as they only use 8MiB of memory and 0 to 0.02 seconds of cpu time.
hhyyrylainen
Techie
 
Posts: 12
Joined: Tue Apr 10, 2018 3:08 am

Next

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 26 guests