From owner-freebsd-questions@FreeBSD.ORG Mon Jul 20 00:09:49 2009 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 1D339106566B for ; Mon, 20 Jul 2009 00:09:49 +0000 (UTC) (envelope-from hsmtkk@gmail.com) Received: from mail-qy0-f204.google.com (mail-qy0-f204.google.com [209.85.221.204]) by mx1.freebsd.org (Postfix) with ESMTP id CEAB78FC0C for ; Mon, 20 Jul 2009 00:09:48 +0000 (UTC) (envelope-from hsmtkk@gmail.com) Received: by qyk42 with SMTP id 42so1534758qyk.3 for ; Sun, 19 Jul 2009 17:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=tihQl3L+64yJPHm5cVF5+Xvi6rZfTxpJ7jh4yBsF87M=; b=FWzy2J7H9W6muovPib33qkIOpS3AMOOR2boNH+k0p4o31nAY0pEzVB11BwIN+JoTih Qx7n/Jff9XYK7GKYXrTJyOgsIq6iYfnykxT3pvPTLV7Ms3Rv7KuU9nVLFTgtsbTBB2Hf fMwjZgERAUGm2qnZrws8XpLHT4LLOZ8bMME/I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=BOj1zWl+OTsmDbljmOxiOvtjA6jhumGdk6m1c6ueaCT91t52OuPZkeXVmryqATBzlx hj7R8q/aPRYACvvmENvxDWMDLWkYShOBBzu0V5YjPyLMqpkq4lGg0eljYB133qlWJ4Ma OFeSDCLYaGhI+9wnafoeTiVLsrUWArgxBmTGE= MIME-Version: 1.0 Received: by 10.229.96.149 with SMTP id h21mr696602qcn.53.1248047208788; Sun, 19 Jul 2009 16:46:48 -0700 (PDT) Date: Mon, 20 Jul 2009 08:46:48 +0900 Message-ID: <6bae2c430907191646v5321eb7bge4b1c8460662222e@mail.gmail.com> From: Hashimoto To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: ccache "make buildworld" fails (mmap problem?) 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: Mon, 20 Jul 2009 00:09:49 -0000 Hello. I have a problem about ccache. I installed devel/ccache from ports. "make buildworld" stopped immediately and failed. In the ccache log file, I found the "Faild to mmap" message. I also tried to reinstall devel/libtool15 following /usr/local/share/doc/ccache/cchace-howto-freebsd.txt . But, again, it failed. When I disable ccache, "make buildworld" & installing devel/libtool15 successfully finishes. Any suggestions? Regeards. 1. "make buildworld" fails # cd /usr/src # make buildworld CC='/usr/local/libexec/ccache/world-cc' mkdep -f .depend -a -I/usr/obj/usr/src/tmp/legacy/usr/include /usr/src/tools/build/dummy.c /usr/local/libexec/ccache/world-cc -O2 -pipe -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/tools/build/dummy.c *** Error code 1 2. my /etc/make.conf # cat /etc/make.conf .if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) && !defined(NOCCACHE) CC=/usr/local/libexec/ccache/world-cc CXX=/usr/local/libexec/ccache/world-c++ .endif 3. my environemtal variables # cat /root/.zshenv export PATH=/usr/local/libexec/ccache:$PATH export CCACHE_PATH=/usr/bin:/usr/local/bin export CCACHE_DIR=/var/tmp/ccache export CCACHE_LOGFILE=/var/log/ccache.log $ uname -a FreeBSD hostname 8.0-BETA2 FreeBSD 8.0-BETA2 #8: Mon Jul 20 00:02:16 JST 2009 root@hostname:/usr/obj/usr/src/sys/GENERIC i386 4. ccache log file # tail /var/log/ccache.log Failed to mmap /var/tmp/ccache/tmp.cpp_stderr.hostname.33893 FATAL: hash_file 5. ccache file # cat /var/tmp/ccache/dummy.tmp.hostname.33893.i # 1 "/usr/src/tools/build/dummy.c" # 1 "" # 1 "" # 1 "/usr/src/tools/build/dummy.c" 6. try to reinstall devel/libtool15 # pkg_delete -f libtool-1.5.26 # portinstall devel/libtool15 [Updating the pkgdb in /var/db/pkg ... - 340 packages found ( -0 +0) done][Gathering depends for devel/libtool15 done] ---> Installing 'libtool-1.5.26' from a port (devel/libtool15) ---> Building '/usr/ports/devel/libtool15' ===> Cleaning for libtool-1.5.26 ===> Vulnerability check disabled, database not found ===> Extracting for libtool-1.5.26 => MD5 Checksum OK for libtool-1.5.26.tar.gz. => SHA256 Checksum OK for libtool-1.5.26.tar.gz. ===> Patching for libtool-1.5.26 ===> Applying FreeBSD patches for libtool-1.5.26 ===> Configuring for libtool-1.5.26 checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheelchecking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether make sets $(MAKE)... yes checking for gcc... ccchecking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... configure: error: cannot compute suffix o f object files: cannot compile See `config.log' for more details. ===> Script "configure" failed unexpectedly. Please report the problem to ade@FreeBSD.org [maintainer] and attach the "/usr/ports/devel/libtool15/work/libtool-1.5.26/config.log" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. an `ls/var/db/pkg`). *** Error code 1 Stop in /usr/ports/devel/libtool15. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall20090720-33 926-15820ox-0 env make BATCH=yes ** Fix the problem and try again. ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! devel/libtool15 (configure error) -- Kouki Hashimoto hsmtkk@gmail.com