From owner-freebsd-current@FreeBSD.ORG Mon May 21 15:05:18 2012 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 A35E5106566B for ; Mon, 21 May 2012 15:05:18 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 30BF48FC0A for ; Mon, 21 May 2012 15:05:18 +0000 (UTC) Received: by werg1 with SMTP id g1so4260424wer.13 for ; Mon, 21 May 2012 08:05:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=M8fVpuTDMghwknLsgtJiZvVmoQeHrHh7lWE7oAVUUB0=; b=rifqUxfDZMpy+s6k2IhcfwDBopoqCHvW0pSodB+NCM/Mn03LhEEmYXNPN9QQ8wUqag c8tnKfUcZ4k8z3wNXi9sgUi5hpdF5UOSBWxnwQEqenCe2dT8Cb1P6BzI6/S2LxG/6K4c Dnn/tziWNLjXEnN0ieE9Vr4lbNW7D9lxO6NEH3JxWyqpyVhTGh/SOvU6mx9EeOwW5B4M Sxw8ocamJV9JY2VV9waSVdVmgGC+gEUnMLZrZdQUX5WVUq/q5hjgEJT9qZu41asVqW2j xQObTPgo4uG/0pdEHrk6gDl60HdmhRvwg89ZdFkkNzZLBtskHG+BdUaEq2QgmkMZEPaV CvkA== Received: by 10.180.78.161 with SMTP id c1mr26342782wix.1.1337612717033; Mon, 21 May 2012 08:05:17 -0700 (PDT) Received: from dft-labs.eu (dft-labs.eu. [80.87.128.179]) by mx.google.com with ESMTPS id m1sm26116608wic.6.2012.05.21.08.05.14 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 May 2012 08:05:15 -0700 (PDT) Date: Mon, 21 May 2012 17:05:07 +0200 From: Mateusz Guzik To: Vladimir Sharun Message-ID: <20120521150507.GD15732@dft-labs.eu> References: <16704.1337518855.3384805505326252032@front-ffe4.ukr.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <16704.1337518855.3384805505326252032@front-ffe4.ukr.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Current FreeBSD Subject: Re: Recent nandfs commits broke buildworld with clang 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, 21 May 2012 15:05:18 -0000 On Sun, May 20, 2012 at 04:00:55PM +0300, Vladimir Sharun wrote: > env MACHINE=amd64 CPP="/usr/bin/clang-cpp"  sh /usr/src/usr.bin/kdump/mkioctls print /usr/obj/usr/src/tmp/usr/include > ioctl.c > :34:10: fatal error: 'fs/nandfs/nandfs_fs.h' file not found > #include >          ^ > 1 error generated. > /bin/sh /usr/src/usr.bin/kdump/../../sys/kern/makesyscalls.sh  /usr/src/usr.bin/kdump/../../sys/amd64/linux32/syscalls.master /usr/src/usr.bin/kdump/linux_syscalls.conf > echo "int nlinux_syscalls = sizeof(linux_syscallnames) / sizeof(linux_syscallnames[0]);"  >> linux_syscalls.c > rm -f .depend > CC='/usr/bin/clang' mkdep -f .depend -a    -I/usr/src/usr.bin/kdump/../ktrace -I/usr/src/usr.bin/kdump -I/usr/src/usr.bin/kdump/../.. -I. -std=gnu99  kdump_subr.c /usr/src/usr.bin/kdump/kdump.c ioctl.c /usr/src/usr.bin/kdump/../ktrace/subr.c linux_syscalls.c > ioctl.c:57:10: fatal error: 'fs/nandfs/nandfs_fs.h' file not found > #include >          ^ > 1 error generated. > mkdep: compile failed > *** [.depend] Error code 1 > > r235624 on amd64 > > # clang -v > FreeBSD clang version 3.1 (branches/release_31 155985) 20120503 > Target: x86_64-unknown-freebsd10.0 > Thread model: posix > > Didn't test it with stock gcc. Note that you are using clang installed in your base system instead of the one compiled during buildworld which results in wrong include directories being searched for headers. http://wiki.freebsd.org/BuildingFreeBSDWithClang suggests the following: CC=clang CXX=clang++ CPP=clang-cpp Which should fix your problem. -- Mateusz Guzik