From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 85E78688B for ; Tue, 5 Nov 2013 16:41:49 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 05 Nov 2013 07:39:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.93,640,1378882800"; d="scan'208";a="422623923" Received: from cccressen-mobl4.ger.corp.intel.com (HELO debian) ([10.237.220.107]) by fmsmga001.fm.intel.com with ESMTP; 05 Nov 2013 07:42:40 -0800 Date: Tue, 5 Nov 2013 15:42:36 +0000 From: Cyril Cressent To: Marc Sune Message-ID: <20131105154236.GJ26200@debian> Mail-Followup-To: Marc Sune , Thomas Monjalon , dev@dpdk.org References: <52779A10.4010007@bisdn.de> <2616151.R1XFxBmKnN@x220> <52780949.1020706@bisdn.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52780949.1020706@bisdn.de> Organization: Intel Shannon, Dromore House, East Park, Shannon, Ireland User-Agent: Mutt/1.5.21 (2010-09-15) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] Unable to compile DPDK 1.5 on Debian GNU/Linux: lib/librte_eal/linuxapp/igb_uio X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Nov 2013 15:41:50 -0000 Hi Marc, On Mon, Nov 04, 2013 at 09:53:29PM +0100, Marc Sune wrote: > > I think it is not this variable. When the folder > /lib/modules/$(shell uname -r)/build does not exist, the Makefile > properly warns you (I manually created it, since it was not existing > during the first compilation attempt). build should be a symlink to the corresponding kernel sources or headers, usually in /usr/src/. > marc@bisdn-dev:~/BISDN/dpdk$ ls /lib/modules/`uname -r`/build > marc@bisdn-dev:~/BISDN/dpdk$ ls /lib/modules/`uname -r`/ > build modules.alias modules.builtin modules.dep > modules.devname modules.softdep modules.symbols.bin > kernel modules.alias.bin modules.builtin.bin modules.dep.bin > modules.order modules.symbols source > marc@bisdn-dev:~/BISDN/dpdk$ ls /lib/modules/`uname -r`/build -la > total 8 > drwxr-xr-x 2 root root 4096 jul 31 16:41 . > drwxr-xr-x 4 root root 4096 nov 4 16:43 .. That output shows that "build" is not a symlink to the kernel sources/headers. Make it a symlink to /usr/src/linux-headers-`uname -r`. And double check you have the kernel headers there... > Concerning kernel headers, the kernel headers for the running kernel > were already installed (via apt-get install linux-headers-`uname > -r`), and no custom kernel is installed in the system. That's weird ; you should have had the symlink properly created if you used apt... > Actually, this seems to me more of a variable definition problem, > like the $(wildcard $(RTE_KERNELDIR)) but somehow related to the > DPDK target folders, rather than an issue with the headers/gcc, > since it is 'make' which is not able to find the existing file. But > I could be wrong.. Yes, the target folder is /lib/modules/`uname -r`/build, which contains a Makefile. Yours is empty because it's not the expected symlink, and make then complains because there is no Makefile there.