From owner-freebsd-questions@FreeBSD.ORG Sun Dec 8 23:05:34 2013 Return-Path: Delivered-To: freebsd-questions@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 ESMTPS id AE6AA59E for ; Sun, 8 Dec 2013 23:05:34 +0000 (UTC) Received: from lena.kiev.ua (lena.kiev.ua [82.146.52.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 764B916C8 for ; Sun, 8 Dec 2013 23:05:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lena.kiev.ua; s=3; h=In-Reply-To:Content-Type:Mime-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=unDgAMFNTYz+CWfmrp3rYiBNO3MgnZnP1RuGgPUTSSI=; b=ifrZ80w+0grzMbUj8uSli+97b/Gi7uEsHhOs/1RKWUa71/nmUyPlxGSSZ3dLu8y/T6AVsAXMZZk7e9azRWFSU0CACPGVoQ8uklst+Empv7GVh1YGFSlTCx9hRhtpTJ8zB96cLBnq69A3bERuefxms1DIsMDDbDXkj/mX60DYylA=; Received: from ip-384c.rusanovka-net.kiev.ua ([94.244.56.76] helo=bedside.lena.kiev.ua) by lena.kiev.ua with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1VpnPn-0000Rz-Kk; Mon, 09 Dec 2013 01:05:33 +0200 Received: from bedside.lena.kiev.ua (localhost.lena.kiev.ua [127.0.0.1]) by bedside.lena.kiev.ua (8.14.7/8.14.7) with ESMTP id rB8N5C3J031276; Mon, 9 Dec 2013 01:05:12 +0200 (EET) (envelope-from Lena@lena.kiev.ua) Received: (from lena@localhost) by bedside.lena.kiev.ua (8.14.7/8.14.7/Submit) id rB8N5B3g031275; Mon, 9 Dec 2013 01:05:11 +0200 (EET) (envelope-from Lena@lena.kiev.ua) Date: Mon, 9 Dec 2013 01:05:11 +0200 From: Lena@lena.kiev.ua To: freebsd-questions@freebsd.org Subject: Re: How to compile a port with GCC instead of clang Message-ID: <20131208230511.GN796@lena.kiev> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131209204601.GA1948@thinkpad.piggybox> User-Agent: Mutt/1.4.2.3i Cc: Roland Smith , 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 23:05:34 -0000 > From: Peter Harrison > 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: > >> > >> How can I compile www/chromium with GCC instead of clang? > >> If I compile it with clang I end up with a broken binary that won't render > >> pages properly. If I compile it with gcc it works flawlessly. > >> But the knob to choose gcc has been removed in the recent updates. > >> So now I have a broken chromium. How can I compile it with gcc instead? > > > > Add the following to your /etc/make.conf: > > > > .if ${.CURDIR:M*/www/chromium} > > USE_GCC?=yes > > .endif > > > > 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. > Attempting 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 I use FreeBSD 8.4-RELEASE-p4 i386. According to /usr/ports/UPDATING 20131008, I use FAVORITE_COMPILER=gcc in /etc/make.conf - then chromium is attempted to be built using GCC 4.7, but chromium build fails, though later - on some step 5xxx/12xxx. Which last version of Chromium did you build and use successfully? Fresh Chromium 31.0.1650.63 built with clang doesn't work for me (doesn't render www.yahoo.com and groups.yahoo.com). Package ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8-stable/All/chromium-28.0.1500.95.tbz installed with pkg_add (I don't use pkgng) seems to work somewhat better. I use Firefox, I'm trying to only test a broken website (groups.yahoo.com) in Chromium.