error :candidate template ignored: substitution failure

Fervent Dissent walkerindarkness at gmail.com
Sun Oct 13 13:35:13 UTC 2013


I am building 30.0.1599.69 with poudriere. The rest of my system has
compiled fine, only chromium is not finishing. I modified Makefile to not
build remoting, printing, and disabled gnome_keyring and gconf support and
removed the depends for these features.

I've searched and this might be a bug in clang, also I found some sites
with multiple suggested solutions but I know nothing of c++ and don't know
how to apply them to the port. I can forward them if you want.

Also I found www/chromium/files/extra-patch-fixup-execinfo touches
something that maybe related to the problem.
-    int size = backtrace(trace, ARRAY_SIZE(trace));
+    size_t size = backtrace(trace, ARRAY_SIZE((size_t**)trace));

www/chromium/Makefile

--- /tb/ports/poudriere/ports/default/www/chromium/makefile.bck 2013-10-12
05:48:49.000000000 +0800
+++ /tb/ports/poudriere/ports/default/www/chromium/Makefile 2013-10-13
10:00:47.143210416 +0800
@@ -36,8 +36,6 @@
  libasound.so:${PORTSDIR}/audio/alsa-lib \
  libfreetype.so:${PORTSDIR}/print/freetype2 \
  libnss3.so:${PORTSDIR}/security/nss \
- libgnome-keyring.so:${PORTSDIR}/security/libgnome-keyring \
- libcups.so:${PORTSDIR}/print/cups-client \
  libevent-1.4.so:${PORTSDIR}/devel/libevent \
  libgcrypt.so:${PORTSDIR}/security/libgcrypt \
  libpci.so:${PORTSDIR}/devel/libpci
@@ -57,7 +55,7 @@
 NINJA_TARGETS= chrome

 # See build/common.gypi for all the available variables.
-GYP_DEFINES+= use_cups=1 \
+GYP_DEFINES+= use_cups=0 \
  use_system_yasm=1 \
  use_system_libxml=1 \
  use_system_ffmpeg=0 \
@@ -74,6 +72,10 @@
  enable_webrtc=1 \
  enable_openmax=1 \
  enable_one_click_signin=1 \
+ use_gnome_keyring=0 \
+ use_gconf=0 \
+ enable_printing=0 \
+ remoting=0 \
  werror= \
  no_gc_sections=1 \
  os_ver=${OSVERSION} \
@@ -97,7 +99,7 @@
 CODECS_DESC= Compile and enable patented codecs like H.264
 GCC_DESC= Build Chromium with GCC 4.6+

-OPTIONS_DEFAULT= CODECS GCONF
+OPTIONS_DEFAULT= CODECS #GCONF

 .include <bsd.port.options.mk>

@@ -109,11 +111,11 @@
 GYP_DEFINES+= proprietary_codecs=0
 .endif

-.if ${PORT_OPTIONS:MGCONF}
-USE_GNOME+= gconf2
-.else
-GYP_DEFINES+= use_gconf=0
-.endif
+#.if ${PORT_OPTIONS:MGCONF}
+#USE_GNOME+= gconf2
+#.else
+#GYP_DEFINES+= use_gconf=0
+#.endif

 .if ${PORT_OPTIONS:MPULSEAUDIO}
 LIB_DEPENDS+= libpulse.so:${PORTSDIR}/audio/pulseaudio


make.conf

WITH_PKGNG=yes
CPUTYPE?=amdfam10
CFLAGS+=-Qunused-parameter -Qunused-arguments -pipe
CXXFLAGS+= -Qunused-parameter -Qunused-arguments -pipe

WITH_CCACHE_BUILD=yes
CCACHE_CPP2=1#remove when bug is fixed


FETCH_BEFORE_ARGS=-p4 -T 10
MASTER_SITE_BACKUP?= \
http://ftp2.us.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR/}
RANDOMIZE_MASTER_SITES=yes
OPTIONS_UNSET= DEBUG HELP GCONF TEST GNUTLS DOCS EXAMPLES IPV6 \
           MANPAGES PTH IDN LIBIDN NLS DBUS SOUND ALSA PULSEAUDIO \
           DOCBOOK CUPS TESTS HTMLDOCS BONJOUR GSSAPI APIDOCS

chromium-30.0.1599.69.log, just the end, but I still have the whole thing

[11804/11806] CXX obj/chrome/app/chrome.chrome_main.o
[11805/11806] CXX obj/chrome/app/chrome.chrome_main_delegate.o
FAILED: clang++ -MMD -MF obj/chrome/app/chrome.chrome_main_delegate.o.d
-DANGLE_DX11 -D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC -DDISABLE_NACL
-DCHROMIUM_BUILD -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1
-DUSE_NSS=1 -DUSE_X11=1 -DENABLE_ONE_CLICK_SIGNIN
-DGTK_DISABLE_SINGLE_INCLUDES=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS
-DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS
-DENABLE_GPU=1 -DENABLE_EGLIMAGE=1 -DENABLE_TASK_MANAGER=1
-DENABLE_EXTENSIONS=1 -DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PLUGINS=1
-DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_BACKGROUND=1
-DENABLE_AUTOMATION=1 -DENABLE_GOOGLE_NOW=1 -DENABLE_SPELLCHECK=1
-DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_MANAGED_USERS=1
-DGL_GLEXT_PROTOTYPES -DLIBPEERCONNECTION_LIB=1 -DPROTOBUF_USE_DLLS
-DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
-DNACL_TARGET_SUBARCH=64 -DNACL_TARGET_ARCH=x86 -DNACL_BUILD_SUBARCH=64
-DNACL_BUILD_ARCH=x86 -DFEATURE_ENABLE_SSL -DFEATURE_ENABLE_VOICEMAIL
-DEXPAT_RELATIVE_PATH -DGTEST_RELATIVE_PATH -DJSONCPP_RELATIVE_PATH
-DNO_MAIN_THREAD_WRAPPING -DNO_SOUND_SYSTEM -DPOSIX -DBSD -DFREEBSD
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DOFFICIAL_BUILD
-DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -D_FORTIFY_SOURCE=2
-I../../third_party/khronos -I../../gpu -I../.. -Igen/protoc_out
-I../../third_party/protobuf -I../../third_party/protobuf/src
-I../../third_party/sqlite -I../../third_party/libjingle/overrides
-I../../third_party/libjingle/source -I../../testing/gtest/include
-I../../third_party -I../../third_party/webrtc
-I../../third_party/jsoncpp/overrides/include
-I../../third_party/jsoncpp/source/include
-I../../third_party/cacheinvalidation/overrides
-I../../third_party/cacheinvalidation/src -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-unused-function -Wno-covered-switch-default -Wstring-conversion
-Wno-c++11-narrowing -Wno-reserved-user-defined-literal
-Wno-deprecated-register -fcolor-diagnostics -I/usr/local/include/gtk-2.0
-I/usr/local/include/gio-unix-2.0/ -I/usr/local/include/atk-1.0
-I/usr/local/include/cairo -I/usr/local/include/pixman-1
-I/usr/local/include/drm -D_THREAD_SAFE -I/usr/local/include/gdk-pixbuf-2.0
-I/usr/local/include/libpng15 -I/usr/local/include/pango-1.0
-I/usr/local/include/freetype2 -I/usr/local/include/harfbuzz -pthread
-I/usr/local/include/glib-2.0 -I/usr/local/include -pthread
-I/usr/local/include/glib-2.0 -I/usr/local/include -D_THREAD_SAFE
-I/usr/local/include -Wexit-time-destructors -O2 -fdata-sections
-ffunction-sections -O2 -pipe -Qunused-parameter -Qunused-arguments -pipe
-march=amdfam10 -fno-stack-protector -Wno-unknown-warning-option
-fno-strict-aliasing -Qunused-parameter -Qunused-arguments -pipe -fno-rtti
-fno-threadsafe-statics -fvisibility-inlines-hidden -Wsign-compare
-std=gnu++11  -c ../../chrome/app/chrome_main_delegate.cc -o
obj/chrome/app/chrome.chrome_main_delegate.o
../../chrome/app/chrome_main_delegate.cc:760:26: error: no matching
function for call to 'ArraySizeHelper'
  for (size_t i = 0; i < arraysize(kMainFunctions); ++i) {
                         ^~~~~~~~~~~~~~~~~~~~~~~~~
../../base/basictypes.h:137:34: note: expanded from macro 'arraysize'
#define arraysize(array) (sizeof(ArraySizeHelper(array)))
                                 ^~~~~~~~~~~~~~~
../../base/basictypes.h:127:8: note: candidate template ignored:
substitution failure [with T = const <anonymous>::MainFunction, N = 0]:
zero-length arrays are not permitted in C++
char (&ArraySizeHelper(T (&array)[N]))[N];
       ^                               ~
../../base/basictypes.h:134:8: note: candidate template ignored:
substitution failure [with T = <anonymous>::MainFunction, N = 0]:
zero-length arrays are not permitted in C++
char (&ArraySizeHelper(const T (&array)[N]))[N];
       ^                                     ~
1 error generated.
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make: stopped in /usr/ports/www/chromium
===>  Cleaning for chromium-30.0.1599.69
build of /usr/ports/www/chromium ended at Sun Oct 13 12:22:57 CST 2013


More information about the freebsd-chromium mailing list