* [dpdk-dev] Unable to compile DPDK 1.5 on Debian GNU/Linux: lib/librte_eal/linuxapp/igb_uio
@ 2013-11-04 12:58 Marc Sune
2013-11-04 14:21 ` Cyril Cressent
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Marc Sune @ 2013-11-04 12:58 UTC (permalink / raw)
To: dev
Dear all,
I am unable to compile DPDK 1.5 (and previous versions) on Debian
GNU/Linux Wheezy (7) and Squeeze (6).
It seems to me an issue with Make, probably different default flags on
this distribution, since the problematic Makefile is really there. The
funny part is that I was able to compile it on other Debian-like systems
(Ubuntu), but not on all of them. Of course I can install another OS,
but it is annoying to move from the usual environment, and in principle
it _should_ work.
Any ideas? Am I missing something?
Best regards
marc
------------------
marc@bertha:~/dpdk$ make install T=x86_64-default-linuxapp-gcc
================== Installing x86_64-default-linuxapp-gcc
== Build scripts
== Build scripts/testhost
== Build lib
== Build lib/librte_eal
== Build lib/librte_eal/common
== Build lib/librte_eal/linuxapp
== Build lib/librte_eal/linuxapp/igb_uio
make[8]: *** No targets specified and no makefile found. Stop.
make[7]: *** [igb_uio.ko] Error 2
make[6]: *** [igb_uio] Error 2
make[5]: *** [linuxapp] Error 2
make[4]: *** [librte_eal] Error 2
make[3]: *** [lib] Error 2
make[2]: *** [all] Error 2
make[1]: *** [x86_64-default-linuxapp-gcc_install] Error 2
make: *** [install] Error 2
marc@bertha:~/dpdk$ git log
commit 17bfb0a487f62206179e730b6f5a2c1c6b8e891c
Author: Thomas Monjalon <thomas.monjalon@6wind.com>
Date: Wed Oct 23 11:40:56 2013 +0200
config: fix combined/shared lib
- Configuration for combined and shared library was only in the
template
defconfig_x86_64-default-linuxapp-gcc.
- CONFIG_RTE_LIBNAME was in the wrong section
- RTE_LIBNAME had no quote in "C context" (include/rte_config.h)
- and then CONFIG_RTE_LIBNAME quotes were not properly removed in
"make context"
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
commit 62d4841dcab283e87a52be01ff31ce27ec766caa
marc@bertha:~/dpdk$ git status
# On branch 1.5.0
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# x86_64-default-linuxapp-gcc/
nothing added to commit but untracked files present (use "git add" to track)
marc@bertha:~/dpdk$ ls lib/librte_eal/linuxapp/igb_uio/ -la
total 28
drwxr-xr-x 2 marc marc 4096 Nov 4 11:15 .
drwxr-xr-x 5 marc marc 4096 Nov 4 11:15 ..
-rw-r--r-- 1 marc marc 15176 Nov 4 11:15 igb_uio.c
-rw-r--r-- 1 marc marc 2090 Nov 4 11:15 Makefile
marc@bertha:~/dpdk$ cat lib/librte_eal/linuxapp/igb_uio/ Makefile
cat: lib/librte_eal/linuxapp/igb_uio/: Is a directory
# BSD LICENSE
#
# Copyright(c) 2010-2013 Intel Corporation. All rights reserved.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Intel Corporation nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Head Makefile for compiling rte SDK
#
RTE_SDK := $(CURDIR)
export RTE_SDK
#
# directory list
#
ROOTDIRS-y := scripts lib app
include $(RTE_SDK)/mk/rte.sdkroot.mk
marc@bertha:~/dpdk$ make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for x86_64-pc-linux-gnu
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] Unable to compile DPDK 1.5 on Debian GNU/Linux: lib/librte_eal/linuxapp/igb_uio
2013-11-04 12:58 [dpdk-dev] Unable to compile DPDK 1.5 on Debian GNU/Linux: lib/librte_eal/linuxapp/igb_uio Marc Sune
@ 2013-11-04 14:21 ` Cyril Cressent
2013-11-04 14:48 ` Marc Sune
2013-11-04 15:35 ` Cyril Cressent
2013-11-04 18:06 ` Thomas Monjalon
2 siblings, 1 reply; 10+ messages in thread
From: Cyril Cressent @ 2013-11-04 14:21 UTC (permalink / raw)
To: Marc Sune; +Cc: dev
Hi Marc,
On Mon, Nov 04, 2013 at 01:58:56PM +0100, Marc Sune wrote:
>
> I am unable to compile DPDK 1.5 (and previous versions) on Debian
> GNU/Linux Wheezy (7) and Squeeze (6).
I mainly work with a machine running Debian Testing.
I'm assuming that by DPDK 1.5 you mean the latest version as of today:
1.5.0r1.
I cannot reproduce your problem on that up to date Debian Testing machine:
cyril@aiur:~/src$ wget http://dpdk.org/browse/dpdk/snapshot/dpdk-1.5.0r1.tar.gz
cyril@aiur:~/src$ tar -zxf dpdk-1.5.0r1.tar.gz
cyril@aiur:~/src$ cd dpdk-1.5.0r1/
cyril@aiur:~/src/dpdk-1.5.0r1$ make install T=x86_64-default-linuxapp-gcc
[...]
The build completes with no error.
I have the same version of make as you:
cyril@aiur:~/src/dpdk-1.5.0r1$ make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for x86_64-pc-linux-gnu
> Of course I can install another OS, but it is annoying to move from
> the usual environment, and in principle it _should_ work.
Yes it should.
> Any ideas? Am I missing something?
I'm afraid I don't have any idea to solve your problem, but I can
confirm that it works on other Debian systems ; so I'd say the problem is
with your setup?
Cyril
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] Unable to compile DPDK 1.5 on Debian GNU/Linux: lib/librte_eal/linuxapp/igb_uio
2013-11-04 14:21 ` Cyril Cressent
@ 2013-11-04 14:48 ` Marc Sune
2013-11-04 15:02 ` Wiles, Roger Keith
0 siblings, 1 reply; 10+ messages in thread
From: Marc Sune @ 2013-11-04 14:48 UTC (permalink / raw)
To: dev
Strange, I tried it with three different Debian Wheezy installations,
two of them fresh, and all of them failed in the exact same point. So I
am not sure... I was also puzzled when DPDK was compiling on one of our
Ubuntu systems and not in the other Ubuntu one, with the exact same error.
best
marc
On 04/11/13 15:21, Cyril Cressent wrote:
> Hi Marc,
>
> On Mon, Nov 04, 2013 at 01:58:56PM +0100, Marc Sune wrote:
>> I am unable to compile DPDK 1.5 (and previous versions) on Debian
>> GNU/Linux Wheezy (7) and Squeeze (6).
> I mainly work with a machine running Debian Testing.
> I'm assuming that by DPDK 1.5 you mean the latest version as of today:
> 1.5.0r1.
>
> I cannot reproduce your problem on that up to date Debian Testing machine:
>
> cyril@aiur:~/src$ wget http://dpdk.org/browse/dpdk/snapshot/dpdk-1.5.0r1.tar.gz
> cyril@aiur:~/src$ tar -zxf dpdk-1.5.0r1.tar.gz
> cyril@aiur:~/src$ cd dpdk-1.5.0r1/
> cyril@aiur:~/src/dpdk-1.5.0r1$ make install T=x86_64-default-linuxapp-gcc
> [...]
>
> The build completes with no error.
> I have the same version of make as you:
>
> cyril@aiur:~/src/dpdk-1.5.0r1$ make --version
> GNU Make 3.81
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
>
> This program built for x86_64-pc-linux-gnu
>
>> Of course I can install another OS, but it is annoying to move from
>> the usual environment, and in principle it _should_ work.
> Yes it should.
>
>> Any ideas? Am I missing something?
>
> I'm afraid I don't have any idea to solve your problem, but I can
> confirm that it works on other Debian systems ; so I'd say the problem is
> with your setup?
>
> Cyril
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] Unable to compile DPDK 1.5 on Debian GNU/Linux: lib/librte_eal/linuxapp/igb_uio
2013-11-04 14:48 ` Marc Sune
@ 2013-11-04 15:02 ` Wiles, Roger Keith
2013-11-04 15:14 ` Marc Sune
0 siblings, 1 reply; 10+ messages in thread
From: Wiles, Roger Keith @ 2013-11-04 15:02 UTC (permalink / raw)
To: Marc Sune; +Cc: <dev@dpdk.org>
You can add 'V=1' to the command line make and it will produce a lot more information maybe it will help.
'make install T=x86_64-default-linuxapp-gcc V=1'
Keith Wiles, Principal Technologist for Networking member of the CTO office, Wind River
direct 972.434.4136 mobile 940.213.5533 fax 000.000.0000
[Powering 30 Years of Innovation]<http://www.windriver.com/announces/wr30/>
On Nov 4, 2013, at 8:48 AM, Marc Sune <marc.sune@bisdn.de<mailto:marc.sune@bisdn.de>> wrote:
Strange, I tried it with three different Debian Wheezy installations, two of them fresh, and all of them failed in the exact same point. So I am not sure... I was also puzzled when DPDK was compiling on one of our Ubuntu systems and not in the other Ubuntu one, with the exact same error.
best
marc
On 04/11/13 15:21, Cyril Cressent wrote:
Hi Marc,
On Mon, Nov 04, 2013 at 01:58:56PM +0100, Marc Sune wrote:
I am unable to compile DPDK 1.5 (and previous versions) on Debian
GNU/Linux Wheezy (7) and Squeeze (6).
I mainly work with a machine running Debian Testing.
I'm assuming that by DPDK 1.5 you mean the latest version as of today:
1.5.0r1.
I cannot reproduce your problem on that up to date Debian Testing machine:
cyril@aiur:~/src$ wget http://dpdk.org/browse/dpdk/snapshot/dpdk-1.5.0r1.tar.gz
cyril@aiur:~/src$ tar -zxf dpdk-1.5.0r1.tar.gz
cyril@aiur:~/src$ cd dpdk-1.5.0r1/
cyril@aiur:~/src/dpdk-1.5.0r1$ make install T=x86_64-default-linuxapp-gcc
[...]
The build completes with no error.
I have the same version of make as you:
cyril@aiur:~/src/dpdk-1.5.0r1$ make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for x86_64-pc-linux-gnu
Of course I can install another OS, but it is annoying to move from
the usual environment, and in principle it _should_ work.
Yes it should.
Any ideas? Am I missing something?
I'm afraid I don't have any idea to solve your problem, but I can
confirm that it works on other Debian systems ; so I'd say the problem is
with your setup?
Cyril
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] Unable to compile DPDK 1.5 on Debian GNU/Linux: lib/librte_eal/linuxapp/igb_uio
2013-11-04 15:02 ` Wiles, Roger Keith
@ 2013-11-04 15:14 ` Marc Sune
0 siblings, 0 replies; 10+ messages in thread
From: Marc Sune @ 2013-11-04 15:14 UTC (permalink / raw)
To: Wiles, Roger Keith; +Cc: <dev@dpdk.org>
Thank you Keith,
But I already tried that before sending the first email. The problem is
that verbose is not showing much more:
marc@bisdn-dev:~/BISDN/dpdk$ make install T=x86_64-default-linuxapp-gcc V=1
make -f /home/marc/BISDN/dpdk/mk/rte.sdkinstall.mk install
================== Installing x86_64-default-linuxapp-gcc
if [ ! -f ./x86_64-default-linuxapp-gcc/.config ]; then \
make config T=x86_64-default-linuxapp-gcc
O=./x86_64-default-linuxapp-gcc; \
fi
make all O=./x86_64-default-linuxapp-gcc
make -f /home/marc/BISDN/dpdk/mk/rte.sdkconfig.mk checkconfig
make -f /home/marc/BISDN/dpdk/mk/rte.sdkconfig.mk \
headerconfig NODOTCONF=1
make -f /home/marc/BISDN/dpdk/mk/rte.sdkbuild.mk all
== Build scripts
make S=scripts -f /home/marc/BISDN/dpdk/scripts/Makefile -C
/home/marc/BISDN/dpdk/x86_64-default-linuxapp-gcc/build/scripts all
== Build scripts/testhost
== Build lib
make S=lib -f /home/marc/BISDN/dpdk/lib/Makefile -C
/home/marc/BISDN/dpdk/x86_64-default-linuxapp-gcc/build/lib all
== Build lib/librte_eal
== Build lib/librte_eal/common
== Build lib/librte_eal/linuxapp
== Build lib/librte_eal/linuxapp/igb_uio
make[8]: *** No targets specified and no makefile found. Stop.
make[7]: *** [igb_uio.ko] Error 2
make[6]: *** [igb_uio] Error 2
make[5]: *** [linuxapp] Error 2
make[4]: *** [librte_eal] Error 2
make[3]: *** [lib] Error 2
make[2]: *** [all] Error 2
make[1]: *** [x86_64-default-linuxapp-gcc_install] Error 2
make: *** [install] Error 2
Just in case:
marc@bisdn-dev:~/BISDN/dpdk$ env
SHELL=/bin/bash
TERM=xterm
XDG_SESSION_COOKIE=31d6be46f13c5b86ec43fa0a51137930-1383577812.491991-1808035865
SSH_CLIENT=10.0.0.1 50209 22
SSH_TTY=/dev/pts/8
USER=marc
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
MAIL=/var/mail/marc
PWD=/home/marc/BISDN/dpdk
LANG=ca_ES.UTF-8
HOME=/home/marc
SHLVL=2
LOGNAME=marc
SSH_CONNECTION=10.0.0.1 50209 10.0.0.2 22
DISPLAY=localhost:18.0
_=/usr/bin/env
OLDPWD=/home/marc/BISDN
I also tried with make -d, but wasn't showing anything abnormal either.
I have the feeling that it is a Makefile path variable in the "root
Makefiles" that is assumed to be there, and paths are constructed using
it, but for some reason it is not there or incorrectly defined.
Thank you and regards
marc
On 04/11/13 16:02, Wiles, Roger Keith wrote:
> 'make install T=x86_64-default-linuxapp-gcc V=1'
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] Unable to compile DPDK 1.5 on Debian GNU/Linux: lib/librte_eal/linuxapp/igb_uio
2013-11-04 12:58 [dpdk-dev] Unable to compile DPDK 1.5 on Debian GNU/Linux: lib/librte_eal/linuxapp/igb_uio Marc Sune
2013-11-04 14:21 ` Cyril Cressent
@ 2013-11-04 15:35 ` Cyril Cressent
2013-11-04 18:06 ` Thomas Monjalon
2 siblings, 0 replies; 10+ messages in thread
From: Cyril Cressent @ 2013-11-04 15:35 UTC (permalink / raw)
To: Marc Sune; +Cc: dev
On Mon, Nov 04, 2013 at 01:58:56PM +0100, Marc Sune wrote:
> Dear all,
>
> I am unable to compile DPDK 1.5 (and previous versions) on Debian
> GNU/Linux Wheezy (7) and Squeeze (6).
>
> It seems to me an issue with Make, probably different default flags
> on this distribution, since the problematic Makefile is really
> there. The funny part is that I was able to compile it on other
> Debian-like systems (Ubuntu), but not on all of them. Of course I
> can install another OS, but it is annoying to move from the usual
> environment, and in principle it _should_ work.
>
> Any ideas? Am I missing something?
Actually, a colleague of mine told me that this issue has been observed
before on machines with mismatching kernel version and kernel headers
version.
Can you verify that:
1. You have installed the kernel headers
If not, installing the "linux-headers" package should do.
2. You don't have mismatching kernel and headers versions
Cyril
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] Unable to compile DPDK 1.5 on Debian GNU/Linux: lib/librte_eal/linuxapp/igb_uio
2013-11-04 12:58 [dpdk-dev] Unable to compile DPDK 1.5 on Debian GNU/Linux: lib/librte_eal/linuxapp/igb_uio Marc Sune
2013-11-04 14:21 ` Cyril Cressent
2013-11-04 15:35 ` Cyril Cressent
@ 2013-11-04 18:06 ` Thomas Monjalon
2013-11-04 20:53 ` Marc Sune
2 siblings, 1 reply; 10+ messages in thread
From: Thomas Monjalon @ 2013-11-04 18:06 UTC (permalink / raw)
To: Marc Sune; +Cc: dev
04/11/2013 13:58, Marc Sune :
> I am unable to compile DPDK 1.5 (and previous versions) on Debian
> GNU/Linux Wheezy (7) and Squeeze (6).
>
> == Build lib/librte_eal/linuxapp/igb_uio
> make[8]: *** No targets specified and no makefile found. Stop.
> make[7]: *** [igb_uio.ko] Error 2
> make[6]: *** [igb_uio] Error 2
> make[5]: *** [linuxapp] Error 2
> make[4]: *** [librte_eal] Error 2
> make[3]: *** [lib] Error 2
> make[2]: *** [all] Error 2
> make[1]: *** [x86_64-default-linuxapp-gcc_install] Error 2
> make: *** [install] Error 2
You probably don't have linux headers installed.
We probably should check $(wildcard $(RTE_KERNELDIR)) in order to provide an
error message.
Do not hesitate to provide a patch for mk/rte.module.mk.
--
Thomas
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] Unable to compile DPDK 1.5 on Debian GNU/Linux: lib/librte_eal/linuxapp/igb_uio
2013-11-04 18:06 ` Thomas Monjalon
@ 2013-11-04 20:53 ` Marc Sune
2013-11-05 15:42 ` Cyril Cressent
0 siblings, 1 reply; 10+ messages in thread
From: Marc Sune @ 2013-11-04 20:53 UTC (permalink / raw)
To: Thomas Monjalon; +Cc: dev
Dear Thomas, all,
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).
marc@bisdn-dev:~/BISDN/dpdk$ grep RTE_KERNELDIR * -R
mk/rte.vars.mk:115:RTE_KERNELDIR ?= /lib/modules/$(shell uname -r)/build
mk/rte.module.mk:80: @$(MAKE) -C $(RTE_KERNELDIR) M=$(CURDIR)
O=$(RTE_KERNELDIR)
mk/rte.module.mk:90: @$(MAKE) -C $(RTE_KERNELDIR) M=$(CURDIR)
O=$(RTE_KERNELDIR) \
mk/rte.module.mk:100: $(Q)$(MAKE) -C $(RTE_KERNELDIR) M=$(CURDIR)
O=$(RTE_KERNELDIR) clean
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 ..
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.
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..
Any (more) ideas?
thanks and regards
marc
On 04/11/13 19:06, Thomas Monjalon wrote:
> 04/11/2013 13:58, Marc Sune :
>> I am unable to compile DPDK 1.5 (and previous versions) on Debian
>> GNU/Linux Wheezy (7) and Squeeze (6).
>>
>> == Build lib/librte_eal/linuxapp/igb_uio
>> make[8]: *** No targets specified and no makefile found. Stop.
>> make[7]: *** [igb_uio.ko] Error 2
>> make[6]: *** [igb_uio] Error 2
>> make[5]: *** [linuxapp] Error 2
>> make[4]: *** [librte_eal] Error 2
>> make[3]: *** [lib] Error 2
>> make[2]: *** [all] Error 2
>> make[1]: *** [x86_64-default-linuxapp-gcc_install] Error 2
>> make: *** [install] Error 2
> You probably don't have linux headers installed.
> We probably should check $(wildcard $(RTE_KERNELDIR)) in order to provide an
> error message.
> Do not hesitate to provide a patch for mk/rte.module.mk.
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] Unable to compile DPDK 1.5 on Debian GNU/Linux: lib/librte_eal/linuxapp/igb_uio
2013-11-04 20:53 ` Marc Sune
@ 2013-11-05 15:42 ` Cyril Cressent
2013-11-05 15:50 ` Marc Sune
0 siblings, 1 reply; 10+ messages in thread
From: Cyril Cressent @ 2013-11-05 15:42 UTC (permalink / raw)
To: Marc Sune; +Cc: dev
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] Unable to compile DPDK 1.5 on Debian GNU/Linux: lib/librte_eal/linuxapp/igb_uio
2013-11-05 15:42 ` Cyril Cressent
@ 2013-11-05 15:50 ` Marc Sune
0 siblings, 0 replies; 10+ messages in thread
From: Marc Sune @ 2013-11-05 15:50 UTC (permalink / raw)
To: Thomas Monjalon, dev
Dear Thomas,
Thank you that really was the problem. I am still puzzled why it
happend, since the headers were installed before. I will update the rest
of installations.
Probably it would be slightly better to check whether the build folder
contains the right Makefiles and scripts needed to print the right
error, otherwise the output of make is misleading.
As I said thank you and regards
marc
On 05/11/13 16:42, Cyril Cressent wrote:
> 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.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-11-05 15:49 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-04 12:58 [dpdk-dev] Unable to compile DPDK 1.5 on Debian GNU/Linux: lib/librte_eal/linuxapp/igb_uio Marc Sune
2013-11-04 14:21 ` Cyril Cressent
2013-11-04 14:48 ` Marc Sune
2013-11-04 15:02 ` Wiles, Roger Keith
2013-11-04 15:14 ` Marc Sune
2013-11-04 15:35 ` Cyril Cressent
2013-11-04 18:06 ` Thomas Monjalon
2013-11-04 20:53 ` Marc Sune
2013-11-05 15:42 ` Cyril Cressent
2013-11-05 15:50 ` Marc Sune
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).