[dpdk-dev] Unable to compile DPDK 1.5 on Debian GNU/Linux: lib/librte_eal/linuxapp/igb_uio

Marc Sune marc.sune at bisdn.de
Mon Nov 4 13:58:56 CET 2013


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 at 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 at bertha:~/dpdk$ git log
commit 17bfb0a487f62206179e730b6f5a2c1c6b8e891c
Author: Thomas Monjalon <thomas.monjalon at 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 at 6wind.com>
     Acked-by: Olivier Matz <olivier.matz at 6wind.com>

commit 62d4841dcab283e87a52be01ff31ce27ec766caa


marc at 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 at 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 at 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 at 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



More information about the dev mailing list