Linux - 2623 - error when compiling

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Linux - 2623 - error when compiling

Postby Tom741 » Mon Aug 08, 2016 7:34 am

Hello everyone,
Few months ago I successfully compiled CEF 2623 on linux (ubuntu 14.04).

I just tried to redo it again on a fresh system (still ubuntu 14.04). but now it gives me an error:
error: static_assert failed "a parameter is a refcounted type and needs scoped_refptr"

Here is the complete error:

ninja -C out/Debug cefsimple chrome_sandbox
ninja: Entering directory `out/Debug'
[5/416] CXX obj/cef/libcef/browser/libcef_static.browser_info_manager.o
FAILED: obj/cef/libcef/browser/libcef_static.browser_info_manager.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/cef/libcef/browser/libcef_static.browser_info_manager.o.d -DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC -DDISABLE_NACL -DCHROMIUM_BUILD -DCR_CLANG_REVISION=255169-1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_WEBRTC=1 -DENABLE_MEDIA_ROUTER=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DENABLE_HIDPI=1 -DENABLE_TOPCHROME_MD=1 -DUSE_UDEV -DFIELDTRIAL_TESTING_ENABLED -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PDF=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_PROD_WALLET_SERVICE=1 -DENABLE_BACKGROUND=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DBUILDING_CEF_SHARED -DGL_GLEXT_PROTOTYPES -DMOJO_USE_SYSTEM_IMPL -DTOOLKIT_VIEWS=1 -DPROTOBUF_USE_DLLS -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DSK_SUPPORT_GPU=1 -DSK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -DHUNSPELL_STATIC -DHUNSPELL_CHROME_CLIENT -DUSE_HUNSPELL -DLIBXML_STATIC -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DU_STATIC_IMPLEMENTATION -DCHROME_PNG_WRITE_SUPPORT -DPNG_USER_CONFIG -DENABLE_LAYOUT_UNIT_IN_INLINE_BOXES=0 -DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1 -DENABLE_INPUT_MULTIPLE_FIELDS_UI=1 -DWTF_USE_ICCJPEG=1 -DWTF_USE_QCMSLIB=1 -DWTF_USE_WEBAUDIO_FFMPEG=1 -DWTF_USE_DEFAULT_RENDER_THEME=1 -DUSE_LIBPCI=1 -DUSE_OPENSSL=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_DEBUG -D_GLIBCXX_DEBUG=1 -Igen -I../../cef -I../../third_party/WebKit/public/platform -I../../third_party/WebKit/public/web -I../../cef/libcef/resources/grit_stub -I../../cef/libcef/resources/grit_stub/chrome -Igen/cef -Igen/chrome -Igen/components -Igen/ui/resources -Igen/ui/strings -I../../third_party/khronos -I../../gpu -I../.. -I../../skia/config -I../../third_party/WebKit/Source -Igen/angle -Igen/protoc_out -I../../third_party/protobuf -I../../third_party/protobuf/src -I../../third_party/WebKit -Igen/extensions -I../../third_party/opus/src/include -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/pdf -I../../third_party/skia/include/gpu -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../skia/ext -I../../third_party/libxml/linux/include -I../../third_party/libxml/src/include -I../../third_party/icu/source/common -I../../third_party/WebKit -I../../third_party/npapi -I../../third_party/npapi/bindings -I../../third_party/libpng -I../../third_party/zlib -I../../third_party/libwebp -I../../third_party/ots/include -I../../third_party/qcms/src -I../../third_party/iccjpeg -I../../third_party/libjpeg_turbo -Igen/blink -I../../third_party/icu/source/i18n -I../../third_party/mesa/src/include -I../../v8/include -Igen/ui/views/resources -fstack-protector --param=ssp-buffer-size=4 -Werror -pthread -fno-strict-aliasing -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -fcolor-diagnostics -B/home/tom/Documents/cef/49_2623/chromium_git/chromium/src/third_party/binutils/Linux_x64/Release/bin -Wheader-hygiene -Wfor-loop-analysis -Wno-char-subscripts -Wno-unneeded-internal-declaration -Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register -Wno-inconsistent-missing-override -Wno-shift-negative-value -pthread -I/home/tom/Documents/cef/49_2623/chromium_git/chromium/src/build/linux/debian_wheezy_amd64-sysroot/usr/include/glib-2.0 -I/home/tom/Documents/cef/49_2623/chromium_git/chromium/src/build/linux/debian_wheezy_amd64-sysroot/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/tom/Documents/cef/49_2623/chromium_git/chromium/src/build/linux/debian_wheezy_amd64-sysroot/usr/include/nss -I/home/tom/Documents/cef/49_2623/chromium_git/chromium/src/build/linux/debian_wheezy_amd64-sysroot/usr/include/nspr -Wno-header-guard -m64 -march=x86-64 --sysroot=/home/tom/Documents/cef/49_2623/chromium_git/chromium/src/build/linux/debian_wheezy_amd64-sysroot -O0 -g -funwind-tables -gsplit-dwarf -Wno-c++0x-compat -Wno-deprecated-declarations -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -std=gnu++11 -c ../../cef/libcef/browser/browser_info_manager.cc -o obj/cef/libcef/browser/libcef_static.browser_info_manager.o
In file included from ../../cef/libcef/browser/browser_info_manager.cc:11:
In file included from ../../cef/libcef/browser/thread_util.h:11:
In file included from ../../content/public/browser/browser_thread.h:15:
In file included from ../../base/task_runner_util.h:8:
../../base/bind.h:87:3: error: static_assert failed "a parameter is a refcounted type and needs scoped_refptr"
static_assert(
^
../../cef/libcef/browser/browser_info_manager.cc:553:15: note: in instantiation of function template specialization 'base::Bind<void (*)(int, CefBrowserInfo *, bool, IPC::Message *), int, CefBrowserInfo *, bool, IPC::Message *>' requested here
base::Bind(&CefBrowserInfoManager::SendNewBrowserInfoResponse,
^
1 error generated.
[7/416] CXX obj/cef/libcef/browser/libcef_static.browser_urlrequest_impl.o
ninja: build stopped: subcommand failed.


I don't know what it means. Is this something with the VM I use or an issue in the source code ?
In which direction should I look to correct that ?

Many thanks.
Tom741
Techie
 
Posts: 31
Joined: Tue Aug 19, 2014 9:16 am

Re: Linux - 2623 - error when compiling

Postby Fallen » Wed Aug 24, 2016 5:13 am

Code: Select all
In file included from ../../base/task_runner_util.h:8:
../../base/bind.h:87:3: error: static_assert failed "a parameter is a refcounted type and needs scoped_refptr"
  static_assert(
  ^
../../cef/libcef/browser/browser_info_manager.cc:553:15: note: in instantiation of function template specialization 'base::Bind<void (*)(int, CefBrowserInfo *, bool, IPC::Message *), int, CefBrowserInfo *, bool, IPC::Message *>' requested here
        base::Bind(&CefBrowserInfoManager::SendNewBrowserInfoResponse,
              ^
1 error generated.
[13849/15142] CXX obj/cef/libcef/browser/libcef_static.browser_host_impl.o
ninja: build stopped: subcommand failed.


Have similar problem when building on a Mac.
Fallen
Techie
 
Posts: 39
Joined: Wed Jan 29, 2014 11:38 am

Re: Linux - 2623 - error when compiling

Postby magreenblatt » Wed Aug 24, 2016 6:21 am

How are you checking out the Chromium and CEF source code?
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Linux - 2623 - error when compiling

Postby Fallen » Wed Aug 24, 2016 6:43 am

magreenblatt wrote:How are you checking out the Chromium and CEF source code?


Set env variable like this:
Code: Select all
GYP_DEFINES=proprietary_codecs=1 ffmpeg_branding=Chrome target_arch=x64 buildtype=Official


And using the automate tool like this:
python automate-git.py --download-dir=temp --branch=2623 --x64-build


I've cloned chromium manually because I had problems downloading it thorugh this script (got a few "... failed. Will resume after nap." errors). Will the script chose appriopriate "branch" on chromium?

--> Chromium Current Checkout: ec9d23ef02042c64b40c7ee7abb32d2055dec717
--> Chromium Desired Checkout: 6345e75c7d4450f4ad929e338df8137f678a02cc (refs/tags/49.0.2623.110)
-------- Running "gclient revert --nohooks" in "/Users/Fallen/Development/temp/chromium"...
Fallen
Techie
 
Posts: 39
Joined: Wed Jan 29, 2014 11:38 am

Re: Linux - 2623 - error when compiling

Postby magreenblatt » Wed Aug 24, 2016 6:48 am

Yes, the script will download the appropriate chromium branch. Try running with the `--force-clean` command-line flag. If that fails then you need to checkout the branch and run gclient sync manually.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Linux - 2623 - error when compiling

Postby Fallen » Wed Aug 24, 2016 8:14 am

magreenblatt wrote:Yes, the script will download the appropriate chromium branch. Try running with the `--force-clean` command-line flag. If that fails then you need to checkout the branch and run gclient sync manually.


Checked out Chromium manually but still getting the error with `--force-clean`.

Code: Select all
In file included from ../../base/task_runner_util.h:8:
../../base/bind.h:87:3: error: static_assert failed "a parameter is a refcounted type and needs scoped_refptr"
  static_assert(
  ^
../../cef/libcef/browser/browser_info_manager.cc:553:15: note: in instantiation of function template specialization 'base::Bind<void (*)(int, CefBrowserInfo *, bool, IPC::Message *), int, CefBrowserInfo *, bool, IPC::Message *>' requested here
        base::Bind(&CefBrowserInfoManager::SendNewBrowserInfoResponse,
              ^
1 error generated.
[14599/15142] CXX obj/cef/libcef/browser/libcef_static.browser_host_impl.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "automate-git.py", line 957, in <module>
    if options.buildlogfile else None)
  File "automate-git.py", line 55, in run
    shell=(sys.platform == 'win32'))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-C', 'out/Debug', 'cefclient']' returned non-zero exit status 1
Fallen
Techie
 
Posts: 39
Joined: Wed Jan 29, 2014 11:38 am

Re: Linux - 2623 - error when compiling

Postby magreenblatt » Wed Aug 24, 2016 9:07 am

Did you check out Chromium source to the correct version (refs/tags/49.0.2623.110) and then run `gclient sync`? Is CEF code checked out to the correct branch?
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Linux - 2623 - error when compiling

Postby Fallen » Thu Sep 01, 2016 5:06 am

magreenblatt wrote:Did you check out Chromium source to the correct version (refs/tags/49.0.2623.110) and then run `gclient sync`? Is CEF code checked out to the correct branch?


Yes, still no go but managed to build 2704 on Mac with the same script.
Ufortunately no go on Windows, 3rd party library fails to build.

Code: Select all
FAILED: obj/ui/gl/gl.egl_util.obj
ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\cl.exe" /nologo /showIncludes /FC @obj\ui\gl\gl.egl_util.obj.rsp /c ..\..\ui\gl\egl_util.cc /Foobj\ui\gl\gl.egl_util.obj /Fdobj\ui\gl\gl.cc.pdb
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(119): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(119): error C2143: syntax error: missing ',' before '*'
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(120): error C2061: syntax error: identifier 'EGLAttrib'
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(515): error C2061: syntax error: identifier 'EGLAttrib'
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(518): error C2061: syntax error: identifier 'EGLAttrib'
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(585): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(585): error C2143: syntax error: missing ',' before '*'
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(586): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(586): error C2143: syntax error: missing ',' before '*'
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(587): error C2061: syntax error: identifier 'EGLAttrib'
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(588): error C2061: syntax error: identifier 'EGLAttrib'
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(590): error C2061: syntax error: identifier 'EGLAttrib'
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(591): error C2061: syntax error: identifier 'EGLAttrib'
Fallen
Techie
 
Posts: 39
Joined: Wed Jan 29, 2014 11:38 am

Re: Linux - 2623 - error when compiling

Postby magreenblatt » Thu Sep 01, 2016 5:17 am

Fallen wrote:
magreenblatt wrote:Did you check out Chromium source to the correct version (refs/tags/49.0.2623.110) and then run `gclient sync`? Is CEF code checked out to the correct branch?


Yes, still no go but managed to build 2704 on Mac with the same script.
Ufortunately no go on Windows, 3rd party library fails to build.

Code: Select all
FAILED: obj/ui/gl/gl.egl_util.obj
ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\cl.exe" /nologo /showIncludes /FC @obj\ui\gl\gl.egl_util.obj.rsp /c ..\..\ui\gl\egl_util.cc /Foobj\ui\gl\gl.egl_util.obj /Fdobj\ui\gl\gl.cc.pdb
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(119): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(119): error C2143: syntax error: missing ',' before '*'
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(120): error C2061: syntax error: identifier 'EGLAttrib'
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(515): error C2061: syntax error: identifier 'EGLAttrib'
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(518): error C2061: syntax error: identifier 'EGLAttrib'
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(585): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(585): error C2143: syntax error: missing ',' before '*'
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(586): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(586): error C2143: syntax error: missing ',' before '*'
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(587): error C2061: syntax error: identifier 'EGLAttrib'
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(588): error C2061: syntax error: identifier 'EGLAttrib'
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(590): error C2061: syntax error: identifier 'EGLAttrib'
c:\users\piotr\desktop\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(591): error C2061: syntax error: identifier 'EGLAttrib'


No idea what that error is. In any case, you should stick to supported release branches -- currently 2785.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Linux - 2623 - error when compiling

Postby Fallen » Thu Sep 01, 2016 5:23 am

magreenblatt wrote:No idea what that error is. In any case, you should stick to supported release branches -- currently 2785.


Ok, thanks, will try that.
Fallen
Techie
 
Posts: 39
Joined: Wed Jan 29, 2014 11:38 am

Next

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 54 guests