From owner-freebsd-chromium@FreeBSD.ORG Sun Oct 13 13:35:13 2013 Return-Path: Delivered-To: freebsd-chromium@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C68BEC5E for ; Sun, 13 Oct 2013 13:35:13 +0000 (UTC) (envelope-from walkerindarkness@gmail.com) Received: from mail-ob0-x22a.google.com (mail-ob0-x22a.google.com [IPv6:2607:f8b0:4003:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 93CDA23DF for ; Sun, 13 Oct 2013 13:35:13 +0000 (UTC) Received: by mail-ob0-f170.google.com with SMTP id gq1so4093347obb.1 for ; Sun, 13 Oct 2013 06:35:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=sK0dGN9tJVZkNn0M2Mtkv8z9FmD6q8MO4SZo5URUgwA=; b=iHfEOPSih+HZxhPg3Le1eXT/iqmXcUtLE2cyRAjeJNO0xYL4zHhGiuvCGAiDNyPSnw V95RlFTSt8RmvTYoMwV+YkGihhHHIRsixDf+RHiGNWXncm+xC5m860AtHnFe9PezaO1L UGXwHETg9VG/aGcLHfqL5zPel+a0tujvUPZi5lrvFcMp7Ati6t/A5K+QTpafiTzWLKqo ZF9+pXOxW3081W4nIoErb9KshKofecahNZARLzjtKDfoKZA2PscyT7Tk4Dq3ApVFKvOv tkRpwlDR0xLqGUHoNEN2zXtOveo9VQzCI+sLAaLfWJ9OuKf1iiOkejVFeMKS+ZiCHuzY hpeQ== MIME-Version: 1.0 X-Received: by 10.60.51.196 with SMTP id m4mr23440227oeo.1.1381671312123; Sun, 13 Oct 2013 06:35:12 -0700 (PDT) Received: by 10.182.88.193 with HTTP; Sun, 13 Oct 2013 06:35:12 -0700 (PDT) Date: Sun, 13 Oct 2013 21:35:12 +0800 Message-ID: Subject: error :candidate template ignored: substitution failure From: Fervent Dissent To: freebsd-chromium@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-chromium@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD-specific Chromium issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Oct 2013 13:35:13 -0000 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 @@ -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 ::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 = ::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