From owner-freebsd-questions@FreeBSD.ORG Tue Dec 10 20:58:01 2013 Return-Path: Delivered-To: freebsd-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 7C463A6B for ; Tue, 10 Dec 2013 20:58:01 +0000 (UTC) Received: from mail-we0-x234.google.com (mail-we0-x234.google.com [IPv6:2a00:1450:400c:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0ABD61FCE for ; Tue, 10 Dec 2013 20:58:00 +0000 (UTC) Received: by mail-we0-f180.google.com with SMTP id t61so5528667wes.39 for ; Tue, 10 Dec 2013 12:57:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5Vq+fbopVFooxMRYpv3PpiilaZCv/JPxsxt1pgvWTP4=; b=09NWlmFpMh1j0prtEcQPXTtV0K1Zq3JhRhTQXaRlpSXp1PivGqh3ld1GOKYXE7qABj 4U1ltkXCUxygA+NFVp5uCOeWqfm4rrmO3N4zljC3R60V0rEeWCgfTiCqSjy49I8Rxlsm ZQYr5X0a5/RFk6uzbq0ZuKxVEIVxN+1RyT/ei/3wSjhPi/Aj3ZPyfHuQh55DrOjmwNAi O9HgtyU8XcBeCHSTnFUgofs22+rjSquZBPgwlWNwa0AkkxEmgRV4jx76fZ54wUmpjw+F RFxYkevA6hjLnI4uSPVkPNywGCqZxRU/YG2vPIw2XXqszSs43XoGvvFptTEvJO0U6OG1 WoUw== MIME-Version: 1.0 X-Received: by 10.180.75.115 with SMTP id b19mr21313991wiw.19.1386709079291; Tue, 10 Dec 2013 12:57:59 -0800 (PST) Received: by 10.216.237.75 with HTTP; Tue, 10 Dec 2013 12:57:59 -0800 (PST) Received: by 10.216.237.75 with HTTP; Tue, 10 Dec 2013 12:57:59 -0800 (PST) In-Reply-To: <20131208230511.GN796@lena.kiev> References: <20131209204601.GA1948@thinkpad.piggybox> <20131208230511.GN796@lena.kiev> Date: Tue, 10 Dec 2013 20:57:59 +0000 Message-ID: Subject: Re: How to compile a port with GCC instead of clang From: Peter Harrison To: Lena@lena.kiev.ua Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: Roland Smith , FreeBSD Mailing List 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: Tue, 10 Dec 2013 20:58:01 -0000 Peter Harrison On 8 Dec 2013 23:05, wrote: > > > 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. So I removed gcc46, updated my ports tree, set FAVORITE_COMPILER=gcc in /etc/make.conf Recompiled and voila! I have a fully working chromium. Thanks all. Peter.