From owner-freebsd-net@FreeBSD.ORG Mon Sep 29 06:30:21 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4A2F31AA for ; Mon, 29 Sep 2014 06:30:21 +0000 (UTC) Received: from mail-vc0-x234.google.com (mail-vc0-x234.google.com [IPv6:2607:f8b0:400c:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 079A9696 for ; Mon, 29 Sep 2014 06:30:20 +0000 (UTC) Received: by mail-vc0-f180.google.com with SMTP id hq12so4000908vcb.39 for ; Sun, 28 Sep 2014 23:30:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=lR1SEFKNDZUGLKrnBZbrMjEo+cTn6UOq/g0z77naF9A=; b=C8jl2g12IR1bH0GJ6iPaLdVyza6aqxhX1YMmwr9HMaOT8xNCTiL1WCEHSGQtjdnZpY 0fqQdMYIvy8liHo9MGbOYwf69rqXOE6qANVrjNxs+4KIUOWUEBzVQa+fkrFq3zPJUVy1 qHFXnogVXp5FvlbXFcH6afhu0uHBpKKwsvs2txGRshGgpVF+ILysvPkAbtUiMabT47X2 9LyEBB1ZhzF176nRq8CSl60LLk72YQFpXJH20VOQrhWj7lp4BJrXNtS7xymhi8XjHvmc 7uyPY4SHE8AfzqWzQGO5H0DQb0O12j2F4neapJ3/tpJclrc68ivE5aNma2Flb9vKWnsu 4j+w== X-Received: by 10.220.105.148 with SMTP id t20mr28703352vco.11.1411972220077; Sun, 28 Sep 2014 23:30:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.167.193 with HTTP; Sun, 28 Sep 2014 23:29:50 -0700 (PDT) In-Reply-To: References: From: Long Tran Date: Mon, 29 Sep 2014 01:29:50 -0500 Message-ID: Subject: Re: Compiling netmap in Ubuntu 14.04 in VMWare To: Andreas Nilsson Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "Gurkan, Deniz" , FreeBSD Net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2014 06:30:21 -0000 Hi Andreas, I'm sorry. I redirected the output of make command to a file but forgot to redirect the error. This is the error: make -C /lib/modules/3.13.0-29-generic/build M=/home/kl/Workspaces/netmap/LINUX CONFIG_NETMAP=m CONFIG_E1000=m CONFIG_E1000E=m CONFIG_IXGBE=m CONFIG_IGB=m CONFIG_BNX2X=m CONFIG_MLX4=m CONFIG_VIRTIO_NET=m \ EXTRA_CFLAGS='-I/home/kl/Workspaces/netmap/LINUX -I/home/kl/Workspaces/netmap/LINUX/../sys -I/home/kl/Workspaces/netmap/LINUX/../sys/dev -DCONFIG_NETMAP -Wno-unused-but-set-variable' \ O_DRIVERS="e1000/ e1000e/ igb/ ixgbe/" modules make[1]: Entering directory `/usr/src/linux-headers-3.13.0-29-generic' *make[3]: *** No rule to make target `/home/kl/Workspaces/netmap/LINUX/e1000/e1000_main.o', needed by `/home/kl/Workspaces/netmap/LINUX/e1000/e1000.o'. Stop.make[2]: *** [/home/kl/Workspaces/netmap/LINUX/e1000] Error 2make[1]: *** [_module_/home/kl/Workspaces/netmap/LINUX] Error 2* make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-29-generic' make: *** [build] Error 2 I searched in the Makefile but couldn't find the module_install. Also, it seems like the Makefile contains only the rules for building the modules, not installing them. Thank you, On Sun, Sep 28, 2014 at 3:50 PM, Andreas Nilsson wrote: > > On Sun, Sep 28, 2014 at 10:09 AM, Long Tran > wrote: > >> Hello, >> >> I am trying to compile netmap on my VM Ubuntu 14.04 but getting this >> error: >> >> make -C /lib/modules/3.13.0-29-generic/build >> M=/home/kl/Workspaces/netmap/LINUX CONFIG_NETMAP=m CONFIG_E1000=m >> CONFIG_E1000E=m CONFIG_IXGBE=m CONFIG_IGB=m CONFIG_BNX2X=m CONFIG_MLX4=m >> CONFIG_VIRTIO_NET=m \ >> EXTRA_CFLAGS='-I/home/kl/Workspaces/netmap/LINUX >> -I/home/kl/Workspaces/netmap/LINUX/../sys >> -I/home/kl/Workspaces/netmap/LINUX/../sys/dev -DCONFIG_NETMAP >> -Wno-unused-but-set-variable' \ >> O_DRIVERS="e1000/ e1000e/ igb/ ixgbe/" modules >> make[1]: Entering directory `/usr/src/linux-headers-3.13.0-29-generic' >> make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-29-generic' >> >> I have downloaded the linux source code and copy the drivers in the intel >> directory to this directory before compiling: >> /lib/modules/3.13.0-29-generic/build/drivers/net/ethernet/intel/ >> >> Is that the problem with my vm or am I missing any steps to compile the >> netmap? >> >> Thank you, >> Long Tran. >> > > Are sure you getting an error? I see no error in the output. What happens > if you type make again? What happens when you run the install target ( I > don't remember the name, if it is install modules_install, but it should be > in the notes (or Makefile obviously). > > Best regards > Andeas > -- *Long Tran* Research Assistant MS in Network Communications and Technology Project Management University of Houston