Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Aug 2014 21:43:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        chromium@FreeBSD.org
Subject:   [Bug 192685] www/chromium 36.0.1985.143 fails to build on 10-stable
Message-ID:  <bug-192685-28929-2KyrRTTtnr@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-192685-28929@https.bugs.freebsd.org/bugzilla/>
References:  <bug-192685-28929@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192685

bkarp@cs.ucl.ac.uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bkarp@cs.ucl.ac.uk

--- Comment #29 from bkarp@cs.ucl.ac.uk ---
I'm running 10.0-RELEASE, updated with freebsd-update to p7:

FreeBSD x.y.z 10.0-RELEASE-p7 FreeBSD 10.0-RELEASE-p7 #0: Tue Jul  8 06:37:44
UTC 2014     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC 
amd64

When I try to build Chromium 37.0.2062.94 using the latest revision of the port
(at this writing) and clang 33 (default 10.0-RELEASE compiler), I get the same
compilation errors that Robert Cina initially reported with an earlier revision
of the port. In particular, the first compilation error I encounter is:

[7399/14924] CXX obj/third_party/WebKi...ebcore_generated.V8ArrayBufferCustom.o
FAILED: clang++35 -MMD -MF
obj/third_party/WebKit/Source/bindings/v8/custom/webcore_generated.V8ArrayBufferCustom.o.d
-DV8_DEPRECATION_WARNINGS -DBLINK_SCALE_FILTERS_AT_RECORD_TIME
-D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC -DDISABLE_NACL -DCHROMIUM_BUILD
-DCR_CLANG_REVISION=209387 -DTOOLKIT_VIEWS=1 -DUSE_AURA=1 -DUSE_ASH=1
-DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1
-DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DUSE_XI2_MT=2
-DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS
-DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DENABLE_EGLIMAGE=1
-DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGINS=1
-DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1
-DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2
-DENABLE_FULL_PRINTING=1 -DENABLE_PRINTING=1 -DENABLE_SPELLCHECK=1
-DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1
-DENABLE_MANAGED_USERS=1
'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"'
'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"'
'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"'
'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"'
'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"'
-DGL_GLEXT_PROTOTYPES -DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK -DUSE_SYSTEM_ZLIB
-DENABLE_CUSTOM_SCHEME_HANDLER=0 -DENABLE_SVG_FONTS=1
-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1 -DENABLE_INPUT_MULTIPLE_FIELDS_UI=1
-DENABLE_MEDIA_CAPTURE=0 -DENABLE_WEB_AUDIO=1 -DWTF_USE_WEBAUDIO_FFMPEG=1
-DENABLE_OPENTYPE_VERTICAL=1 -DWTF_USE_DEFAULT_RENDER_THEME=1
-DU_USING_ICU_NAMESPACE=0 -DSK_ENABLE_INST_COUNT=0 -DSK_SUPPORT_GPU=1
'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"'
-DSK_ENABLE_LEGACY_API_ALIASING=1 -DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1
-DGR_GL_IGNORE_ES3_MSAA=0 -DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT
-DSK_SUPPORT_LEGACY_GETTOPDEVICE -DSK_SUPPORT_LEGACY_BITMAP_CONFIG
-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE -DSK_SUPPORT_LEGACY_N32_NAME
-DSK_SUPPORT_LEGACY_SETCONFIG -DSK_IGNORE_ETC1_SUPPORT -DSK_IGNORE_GPU_DITHER
-DSK_SUPPORT_LEGACY_GETTOTALCLIP -DSK_USE_POSIX_THREADS
-DSK_DEFERRED_CANVAS_USES_FACTORIES=1 -DENABLE_WEBP -DUSE_SYSTEM_LIBXML
-DUSE_NSS=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG
-DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -D_FORTIFY_SOURCE=2
-Igen/shim_headers/libpng/target -Igen/shim_headers/harfbuzz-ng/target
-Igen/shim_headers/libevent/target -Igen/shim_headers/zlib/target
-Igen/shim_headers/icuuc/target -Igen/shim_headers/icui18n/target -Igen
-I../../third_party/WebKit/Source -Igen/blink/core -Igen/blink/modules
-Igen/blink/bindings/core/v8 -Igen/blink/bindings/modules/v8 -Igen/blink
-I../.. -I../../skia/config -I../../third_party/khronos -I../../gpu
-I/usr/local/include -I../../third_party/angle/include
-I../../third_party/ffmpeg -I../../third_party/WebKit
-I../../third_party/ots/include -I../../third_party/skia/src/core
-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/iccjpeg -I../../third_party/npapi
-I../../third_party/npapi/bindings -I../../third_party/qcms/src
-I../../third_party/sqlite -I../../v8/include -fstack-protector
--param=ssp-buffer-size=4  -pthread -fno-exceptions -fno-strict-aliasing -Wall
-Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe
-fPIC -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration
-Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing
-Wno-reserved-user-defined-literal -Wno-deprecated-register -fcolor-diagnostics
-fno-strict-aliasing -Wglobal-constructors -I/usr/local/include
-I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include
-pthread -I/usr/local/include/glib-2.0 -I/usr/local/include
-I/usr/local/include/libpng15 -I/usr/local/include/libxml2 -I/usr/local/include
-I/usr/local/include/libxml2 -Wexit-time-destructors -m64 -march=x86-64 -O2
-fdata-sections -ffunction-sections -funwind-tables -O2 -pipe
-fno-stack-protector -Wno-unknown-warning-option -fno-strict-aliasing -fno-rtti
-fno-threadsafe-statics -fvisibility-inlines-hidden -Wsign-compare -std=gnu++11
 -c ../../third_party/WebKit/Source/bindings/v8/custom/V8ArrayBufferCustom.cpp
-o
obj/third_party/WebKit/Source/bindings/v8/custom/webcore_generated.V8ArrayBufferCustom.o
In file included from
../../third_party/WebKit/Source/bindings/v8/custom/V8ArrayBufferCustom.cpp:32:
In file included from
../../third_party/WebKit/Source/bindings/v8/custom/V8ArrayBufferCustom.h:29:
In file included from
../../third_party/WebKit/Source/bindings/v8/V8Binding.h:35:
In file included from
../../third_party/WebKit/Source/bindings/v8/DOMWrapperWorld.h:34:
In file included from
../../third_party/WebKit/Source/bindings/v8/ScriptState.h:8:
../../third_party/WebKit/Source/bindings/v8/ScopedPersistent.h:61:60: error: no
type named 'WeakCallbackData' in namespace 'v8'
    void setWeak(P* parameters, void (*callback)(const v8::WeakCallbackData<T,
P>&))
                                                       ~~~~^
../../third_party/WebKit/Source/bindings/v8/ScopedPersistent.h:61:76: error:
expected ')'
    void setWeak(P* parameters, void (*callback)(const v8::WeakCallbackData<T,
P>&))
                                                                           ^
../../third_party/WebKit/Source/bindings/v8/ScopedPersistent.h:61:49: note: to
match this '('
    void setWeak(P* parameters, void (*callback)(const v8::WeakCallbackData<T,
P>&))

[and the others continue as in Robert's original report...]

Note that none of these compilation errors have to do with GL-related types
(which others seemed to have trouble with later in the comment history).
Rather, they seem to do with clang not finding type definitions in the v8
namespace while attempting to compile WebKit.

My initial thought was that this might be some sort of bug in clang 33 tickled
by the Chromium source. So apart from "stock" clang (33), I then tried building
with lang/clang34 and lang/clang35 (by using portupgrade with -M "CC=clang34
CXX=clang++34"). Alas, I get the same compilation errors with each. And I've
verified with ps that I'm successfully causing the build to use these various
versions of clang.

Robert: did you make any changes to your build other than updating to the
latest revision of the port? Did you manually modify the Makefile to build with
gcc47? Or did you have success building with the stock 10.0-RELEASE clang (33)?

Anyone else seeing the compilation errors that Robert first did and I still am?

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192685-28929-2KyrRTTtnr>