From owner-freebsd-questions@FreeBSD.ORG Fri Aug 15 15:22:03 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB1BA1065670 for ; Fri, 15 Aug 2008 15:22:03 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.186]) by mx1.freebsd.org (Postfix) with ESMTP id 4AED88FC12 for ; Fri, 15 Aug 2008 15:22:03 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: by gv-out-0910.google.com with SMTP id n8so374994gve.39 for ; Fri, 15 Aug 2008 08:22:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=UEhXYHhhfV2M1+q3MhHb/C6f0VjDsW9z32ttebAWg8c=; b=bojjZRrO4lljLn11dvGZUVrm7aN3dhfZDaRwQqb2zqWXFcwQYZder8GleKV8ZWVTpy rq9o1JJR+brKabDA++E0dPVjZzaSMJMkoUBy2iLL52f/3B9j0fa/OJyYVjqAvDBbB4wi a6r8iWiP22hVQAq0Mqm2Gn7KiCnVqbMskBEGU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=dIt5eII8ax4p836VwQ1RnGk4RPPONVn1IynkXuLrdtxCz364HCmRPZhLkh8bPacegC +6BQbTbutDxjcN+oYdKzqreK7pXLd94k4eSZLUaLRRGmFcd/jsk2kLikKROxfeQxbQkM B1mEvjAD6F4NRCGb8oWLzkVT4wA+gbEKwdvoM= Received: by 10.187.204.16 with SMTP id g16mr148691faq.84.1218813721820; Fri, 15 Aug 2008 08:22:01 -0700 (PDT) Received: by 10.187.217.10 with HTTP; Fri, 15 Aug 2008 08:22:01 -0700 (PDT) Message-ID: <26ddd1750808150822r334f800bs73a1117bf310be11@mail.gmail.com> Date: Fri, 15 Aug 2008 11:22:01 -0400 From: "Maxim Khitrov" To: RW In-Reply-To: <20080815154838.16f391a9@gumby.homeunix.com.> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <26ddd1750808141304x46ed9e6dhe5bf04363a41626b@mail.gmail.com> <20080815154838.16f391a9@gumby.homeunix.com.> Cc: freebsd-questions@freebsd.org Subject: Re: Working ccache configuration for buildworld on amd64? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2008 15:22:03 -0000 On Fri, Aug 15, 2008 at 10:48 AM, RW wrote: > On Thu, 14 Aug 2008 16:04:52 -0400 > "Maxim Khitrov" wrote: > >> This is an old problem, but so far I haven't been able to find a >> solution. When ccache is used to build world on amd64, the process >> fails when /usr/src/lib/csu/i386-elf/crt1.c is compiled. If >> WITHOUT_LIB32 is added to src.conf, this problem does not happen. >> Likewise, building without ccache works fine. > > I take it that you've already tried removing any unnecessary settings > such as CFLAGS. > > What interesting about this is that it's failing on a compile; i.e. on a > cache miss, when ccache is doing next to nothing. That suggests that > there's either a problem in the way that the real compiler is invoked > by ccache, or that the real failure occurred during the building > of the toolchain and it's dependencies. > > I'd try setting CCACHE_RECACHE temporarily in the environment, to flush > out the old cached files, and see if it makes a difference. I only set the CPUTYPE in make.conf, CFLAGS are untouched. Clearing out the repository (ccache -C) doesn't help. I think what's happening is that there is a collision in hash values generated by ccache. That's the only thing I can think of, because crt1.c is compiled twice; once from /usr/src/lib/csu/amd64/crt1.c, and a second time from /usr/src/lib/csu/i386-elf/crt1.c. If LIB32 is disabled in src.conf, only the first compilation takes place. If the generated hash values are the same, by some chance, then the actual problem is that the file is not compiled a second time when, in fact, it should be. This is only a guess, however. - Max