From owner-freebsd-amd64@FreeBSD.ORG Mon Feb 9 08:51:07 2009 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63A00106566C for ; Mon, 9 Feb 2009 08:51:07 +0000 (UTC) (envelope-from vivekt.vivek@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.238]) by mx1.freebsd.org (Postfix) with ESMTP id DD4648FC16 for ; Mon, 9 Feb 2009 08:51:06 +0000 (UTC) (envelope-from vivekt.vivek@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1867751rvf.43 for ; Mon, 09 Feb 2009 00:51:06 -0800 (PST) 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; bh=tkFo6hxrjpmLH+NZfhPZlifNRAUYuBWBOFXxZpiZ5jQ=; b=pNXrdiwR0jpmGtX/WWPp3Ntk4LLt8y+BJvVQnTLq+Mspwume3ImZxjc1kYPUmMNphw 4ClsX9soSiHZ1UoOMgFKMCPvn1PEm/fViHtaFGQ3k+rUUYiE9e9pyndDykuoO3VPJZT0 +QirQMV6Ett22ZYZe3UK6709tgwxA8X/n9Q7M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Ot3ct8UmnazgD6hrnqEm4Fo+beQQG4inXSqSY7J5PDqfmP11MeOlsXBnQlkgknNohi 7FhdORpkdoOGH4vrGKONu3/yOwF9haIlys5h/+cMv+VLaIU2RVLd/HpFe1uEgEpsgkBf TH6Yq64JOG7x5lSsy2CS+3lDO/PjV4vpuTjbA= MIME-Version: 1.0 Received: by 10.143.38.18 with SMTP id q18mr2742403wfj.46.1234167730558; Mon, 09 Feb 2009 00:22:10 -0800 (PST) Date: Mon, 9 Feb 2009 00:22:10 -0800 Message-ID: <50bd60570902090022k67b50d24i4a443e1c20cc274f@mail.gmail.com> From: Vivek Thakkar To: freebsd-amd64@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Problems cross compiling (using icc) at /usr/src level-- include path? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2009 08:51:07 -0000 Hi, I am cross compiling freebsd system using "icc" at /usr/src level on host amd64 platform. I find that during the build process, freebsd creates temporary include directory at ${MAKEOBJDIRPREFIX}/${.CURDIR}/tmp/usr/include path using '__include' rule. But I can't understand how the gcc adds this include path in its list of directories to be searched. My icc compiler fails to do the same. As a work around, I tried to use -idirafter option (same for icc and gcc) because gcc adds this path at the end of the list. This works for some libraries but fails for the others because mkdep does not create dependencies on system include paths (which is what -idirafter does, i.e. adds the new path as a system level search path). As a result my compilation fails at mkdep stage. Any help in understanding this would be highly appreciated. Thanks and Regards, -Vivek