From owner-freebsd-current@FreeBSD.ORG Mon Sep 20 08:43:52 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C33C2106566B for ; Mon, 20 Sep 2010 08:43:52 +0000 (UTC) (envelope-from krivenok.dmitry@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5B0DD8FC1A for ; Mon, 20 Sep 2010 08:43:52 +0000 (UTC) Received: by vws2 with SMTP id 2so1952958vws.13 for ; Mon, 20 Sep 2010 01:43:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Y+/SGGMSKRkd/iZrRWQSoVEu6O9HWE87ey83ArhQ/SE=; b=OiIWh9H9pMCwCKcYVucu7YHRqxXHafMDDcOyLXJOKR/LMWF+f3DRkMOrbgcndNB8Ga jZm12h5HwOqQrut5Y5za7+ZCA7WlZyI1A5eBXRUCnKjV+oGVTlWOJt8uHTxPViPkDZEO S5cB5pz0nqpVa2ftJ+iWVIJKEWOol/Gpq3ApE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=e8blD3LNDr7zcwn99HNuLRtQnCW0JBK8JQsGb+j1GcgGctdAd2wGNy1Zu+F7+j9BqR 8qmWUa7CLok1OwHTroCvHRMNblvcYbyFSFXm09bdI80PkoDNbYYHSyH0nngRirhH23MB UKP0dt9sDkOsF8zRpCLEEyjafcUmK5LpC9lLI= MIME-Version: 1.0 Received: by 10.220.61.71 with SMTP id s7mr4514855vch.81.1284972230053; Mon, 20 Sep 2010 01:43:50 -0700 (PDT) Received: by 10.220.71.200 with HTTP; Mon, 20 Sep 2010 01:43:49 -0700 (PDT) In-Reply-To: <4C912926.6070409@FreeBSD.org> References: <4C912926.6070409@FreeBSD.org> Date: Mon, 20 Sep 2010 12:43:49 +0400 Message-ID: From: Dmitry Krivenok To: Dimitry Andric Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: buildworld + ccache trouble X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2010 08:43:52 -0000 Your patch works fine for me, thanks! However, I don't see any performance gain when using ccache: # ccache -s cache directory /usr/src/.ccache cache hit (direct) 65 cache hit (preprocessed) 397 cache miss 225341 called for link 10852 multiple source files 20 compile failed 842 preprocessor error 61 bad compiler arguments 6 unsupported source language 15422 autoconf compile/link 593 unsupported compiler option 13939 no input file 36 files in cache 49386 cache size 914.4 Mbytes max cache size 1.0 Gbytes # time /home/krived/bin/update_freebsd.pl real 438m54.690s user 281m46.196s sys 125m25.608s # ccache -s cache directory /usr/src/.ccache cache hit (direct) 81 cache hit (preprocessed) 565 cache miss 362669 called for link 15636 multiple source files 28 compile failed 842 preprocessor error 61 bad compiler arguments 6 unsupported source language 26086 autoconf compile/link 593 unsupported compiler option 21887 no input file 44 files in cache 49346 cache size 900.0 Mbytes max cache size 1.0 Gbytes # Number of cache hits is very low. I need to understand this... On Thu, Sep 16, 2010 at 12:14 AM, Dimitry Andric wrote: > On 2010-09-15 14:44, Dmitry Krivenok wrote: >> >> I recently updated to r212634 and tried to build CURRENT tree with ccach= e. > > ... >> >> /usr/src/lib/csu/i386-elf/crt1_s.S:42: Error: `8(%ebp)' is not a valid >> 64 bit base/index expression > > I assume this error occurs when building the 32-bit components on amd64. > If so, can you please try the attached patch? > > It should fix the build32 stage with a non-default ${CC} setting. =A0This > also applies to building with clang, for instance. >