From owner-freebsd-questions@FreeBSD.ORG Sun Dec 8 20:46:09 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DBE8D791 for ; Sun, 8 Dec 2013 20:46:09 +0000 (UTC) Received: from mail-wg0-x231.google.com (mail-wg0-x231.google.com [IPv6:2a00:1450:400c:c00::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6F5051E7D for ; Sun, 8 Dec 2013 20:46:09 +0000 (UTC) Received: by mail-wg0-f49.google.com with SMTP id x12so2578112wgg.28 for ; Sun, 08 Dec 2013 12:46:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:date:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=11nNc6SebCcQhSNcKGlTOhxSGGeZUCBpODmjpis3gc8=; b=xuPo5a4nC9JV3Aqz/LM/Pse9rMYHyC/DWd6a6/IsnofxMJ98PSrTOrIzNRj949xpuk gKQto6eOhOhxXb8eAU8Qxg3ec2lLH9W1UYtVnTaiNA7MvF42266wsvtVNKSjl98J+2Pj TBTCwqdXpt2M4793ZE+DdvO6cs6OgdOj3l9HkGEjcfbs7x2GgmyIKSFA5Nzt+y1XvTqo YGPIbB7npWv/fE5idEZtYFpblOhOuiBmvp21MvXMqB3YfUzIUYalJEZR7n++U1YuVyM7 nFScMT0X9HJzIfVY+Vac1ttL0IBoBi0RXGzgrEnVV02hS4FxnXxU4lRnHSipNr55E7fP tNsw== X-Received: by 10.194.189.132 with SMTP id gi4mr11941531wjc.5.1386535567856; Sun, 08 Dec 2013 12:46:07 -0800 (PST) Received: from localhost (client-86-25-3-223.oxfd.adsl.virginm.net. [86.25.3.223]) by mx.google.com with ESMTPSA id f11sm18335290wic.4.2013.12.08.12.46.05 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 08 Dec 2013 12:46:07 -0800 (PST) Received: by localhost (sSMTP sendmail emulation); Mon, 09 Dec 2013 20:46:01 +0000 From: Peter Harrison Date: Mon, 9 Dec 2013 20:46:01 +0000 To: Roland Smith Subject: Re: How to compile a port with GCC instead of clang Message-ID: <20131209204601.GA1948@thinkpad.piggybox> References: <20131208114706.GA56474@slackbox.erewhon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20131208114706.GA56474@slackbox.erewhon.net> User-Agent: Mutt/1.5.22 (2013-10-16) Cc: questions@freebsd.org, Peter Harrison X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Dec 2013 20:46:09 -0000 Sunday, 8 December 2013 at 12:47:06 +0100, Roland Smith said: > On Sun, Dec 08, 2013 at 10:54:55AM +0000, Peter Harrison wrote: > > Hello list. > >=20 > > How can I compile www/chromium with GCC instead of clang? > >=20 > > If I compile it with clang I end up with a broken binary that won't ren= der > > pages properly. If I compile it with gcc it works flawlessly. > >=20 > > But the knob to choose gcc has been removed in the recent updates. So n= ow I > > have a broken chromium. How can I compile it with gcc instead? >=20 > Add the following to your /etc/make.conf: >=20 > .if ${.CURDIR:M*/www/chromium} > USE_GCC?=3Dyes > .endif >=20 > See /usr/ports/Mk/bsd.gcc.mk for the possible values of USE_GCC. Thanks Roland. That worked, but sadly seems to have just uncovered why the gcc option was = removed. Built with clang my chromium still doesn't function properly. Atte= mpting to build with gcc produces the error below. Anyone got any idea either how to build a functioning chromium with clang, = or how to successfully build it with gcc? Attempting to build with gcc I get: [2/12492] CC obj/third_party/lzma_sdk/lzma_sdk.7zAlloc.o FAILED: gcc46 -MMD -MF obj/third_party/lzma_sdk/lzma_sdk.7zAlloc.o.d -DANGL= E_DX11 -D_FILE_OFFSET_BITS=3D64 -DNO_TCMALLOC -DDISABLE_NACL -DCHROMIUM_BUI= LD -DUSE_DEFAULT_RENDER_THEME=3D1 -DUSE_LIBJPEG_TURBO=3D1 -DUSE_NSS=3D1 -DU= SE_X11=3D1 -DENABLE_ONE_CLICK_SIGNIN -DGTK_DISABLE_SINGLE_INCLUDES=3D1 -DUS= E_XI2_MT=3D2 -DENABLE_REMOTING=3D1 -DENABLE_WEBRTC=3D1 -DUSE_PROPRIETARY_CO= DECS -DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICAT= IONS -DENABLE_GPU=3D1 -DENABLE_EGLIMAGE=3D1 -DENABLE_TASK_MANAGER=3D1 -DENA= BLE_EXTENSIONS=3D1 -DENABLE_PLUGIN_INSTALLATION=3D1 -DENABLE_PLUGINS=3D1 -D= ENABLE_SESSION_SERVICE=3D1 -DENABLE_THEMES=3D1 -DENABLE_BACKGROUND=3D1 -DEN= ABLE_AUTOMATION=3D1 -DENABLE_GOOGLE_NOW=3D1 -DCLD_VERSION=3D1 -DENABLE_FULL= _PRINTING=3D1 -DENABLE_PRINTING=3D1 -DENABLE_SPELLCHECK=3D1 -DENABLE_CAPTIV= E_PORTAL_DETECTION=3D1 -DENABLE_MANAGED_USERS=3D1 -D_7ZIP_ST -D_LZMA_PROB32= -DNDEBUG -DOFFICIAL_BUILD -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=3D0 -I= =2E./../third_party/lzma_sdk -fstack-protector --param=3Dssp-buffer-size=3D= 4 -pthread -fno-exceptions -fno-strict-aliasing -Wno-unused-parameter -Wno= -missing-field-initializers -fvisibility=3Dhidden -pipe -fPIC -Wheader-hygi= ene -Wno-char-subscripts -Wno-unused-function -Wno-covered-switch-default -= Wstring-conversion -Wno-c++11-narrowing -Wno-reserved-user-defined-literal = -Wno-deprecated-register -momit-leaf-frame-pointer -fcolor-diagnostics -Wno= -format -m32 -mmmx -O2 -fdata-sections -ffunction-sections -fno-unwind-tabl= es -fno-asynchronous-unwind-tables -O2 -pipe -fno-stack-protector -Wno-unkn= own-warning-option -Wl,-rpath=3D/usr/local/lib/gcc46 -fno-strict-aliasing = -c ../../third_party/lzma_sdk/7zAlloc.c -o obj/third_party/lzma_sdk/lzma_sd= k.7zAlloc.o cc1: error: unrecognized command line option '-Wheader-hygiene' cc1: error: unrecognized command line option '-Wstring-conversion' cc1: error: unrecognized command line option '-fcolor-diagnostics' cc1: warning: unrecognized command line option "-Wno-unknown-warning-option= " [enabled by default] cc1: warning: unrecognized command line option "-Wno-deprecated-register" [= enabled by default] cc1: warning: unrecognized command line option "-Wno-reserved-user-defined-= literal" [enabled by default] cc1: warning: unrecognized command line option "-Wno-c++11-narrowing" [enab= led by default] cc1: warning: unrecognized command line option "-Wno-covered-switch-default= " [enabled by default] ninja: build stopped: subcommand failed. *** [do-build] Error code 1 Stop in /usr/ports/www/chromium. *** [build] Error code 1 Many thanks, Peter. >=20 >=20 > Roland > --=20 > R.F.Smith http://rsmith.home.xs4all.nl/ > [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] > pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)