DPDK patches and discussions
 help / color / mirror / Atom feed
From: Marc Sune <marc.sune@bisdn.de>
To: dev@dpdk.org
Subject: [dpdk-dev] Unable to compile DPDK 1.5 on Debian GNU/Linux: lib/librte_eal/linuxapp/igb_uio
Date: Mon, 04 Nov 2013 13:58:56 +0100	[thread overview]
Message-ID: <52779A10.4010007@bisdn.de> (raw)

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

             reply	other threads:[~2013-11-04 12:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-04 12:58 Marc Sune [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52779A10.4010007@bisdn.de \
    --to=marc.sune@bisdn.de \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).