From owner-freebsd-questions@FreeBSD.ORG Thu Aug 14 20:04:54 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 52035106564A for ; Thu, 14 Aug 2008 20:04:54 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.185]) by mx1.freebsd.org (Postfix) with ESMTP id E6A738FC15 for ; Thu, 14 Aug 2008 20:04:53 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: by gv-out-0910.google.com with SMTP id n8so275543gve.39 for ; Thu, 14 Aug 2008 13:04:52 -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:mime-version:content-type:content-transfer-encoding :content-disposition; bh=iuyp3MkFLNywU+pIiODBXkwD7ZAMMkZEpXHuBpgeqZs=; b=Dc4VIox3+Ey1H5xJweUT2n+ryV6C+I8WigARILkrCzHTvzD7vANbNb9Uj+BNJozYfq 9GQHyFxrPADZnkcRMOKgzzre2qmhoIkVVTzIdRjaApEoXCZjbEK+e7OkSOjXrk+dsYqQ vETW1Tdm8gejuUC/v3FlnpvTQB9X/kJUW58sk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=Da8LeCCdiGNrDiPYbpxMi+2S5tzj8EV4btmWWfFLe9+e/JSapvaixwKK92VHmsUuOQ 5t5HWzhBmdr1RulnbfWTSCCfMHn45WmvXT3P+CTxksS0WYMgCGCZgRnheTX0m+G62VBv AVlRsBzvVFZeWBv/lApHVaETw9ZkUOLZ8bDbc= Received: by 10.187.224.14 with SMTP id b14mr94963far.4.1218744292538; Thu, 14 Aug 2008 13:04:52 -0700 (PDT) Received: by 10.187.217.10 with HTTP; Thu, 14 Aug 2008 13:04:52 -0700 (PDT) Message-ID: <26ddd1750808141304x46ed9e6dhe5bf04363a41626b@mail.gmail.com> Date: Thu, 14 Aug 2008 16:04:52 -0400 From: "Maxim Khitrov" To: "FreeBSD Questions" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 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: Thu, 14 Aug 2008 20:04:54 -0000 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. Has anyone out there been able to find a ccache configuration that would work in this situation? I tried disabling ccache for some of the directories under /usr/src and /usr/obj, but it only caused problems in other stages of the build process. Here are the default ccache settings from make.conf: .if exists(/usr/local/libexec/ccache) && !defined(NOCCACHE) && \ (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) CC= /usr/local/libexec/ccache/world-cc CXX= /usr/local/libexec/ccache/world-c++ .endif And here is what I tried using to isolate the problem, albeit with no success: .if exists(/usr/local/libexec/ccache) && !defined(NOCCACHE) && \ (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) && \ empty(.CURDIR:M/usr/src/lib/csu*) && \ empty(.CURDIR:M/usr/obj/usr/src/lib/csu*) && \ empty(.CURDIR:M/usr/obj/lib32/usr/src/lib/csu*) CC= /usr/local/libexec/ccache/world-cc CXX= /usr/local/libexec/ccache/world-c++ .endif Please let me know if you have a working solution. - Max