From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by dpdk.org (Postfix) with ESMTP id A78C71F3 for ; Mon, 14 Jul 2014 06:43:01 +0200 (CEST) Received: by mail-vc0-f182.google.com with SMTP id hq11so6307690vcb.13 for ; Sun, 13 Jul 2014 21:43:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=62tjaL17Y26sz+cRHaFO3DruSxhXuC6fSd6N/DZLzRI=; b=ybNkAw4XCszzVi6YRlSGNTUCeGCcZaz1VNCph1rOWMdHUIUPtPNKwfj81ELcPdv1nA XmFsPvGw7jPnw5kOjDG70YPy1/YQhG/drdAmuWQbKj7LrFbhyVmOrL3jaDRpEcv8Tp88 +j+u+wenTOAh9bsG+b+7bnqwl+4g7r8GJ+ljIm15CbXQpaEqvGiOKHiaJ1phsMNz4gwV 59Fc2waV2/9Hmdt4WWP/1Xi+zIuFaNtEK5GWoDwP5aJu8muItOrkTNu0lNIUrEiXLpjw 1rZe791Ykmd4Pc8DKa3odiKRP7xSBazios38KogFm9S4gTeznmt2dN6gbAFiapjCWeIT Lq/Q== MIME-Version: 1.0 X-Received: by 10.52.248.146 with SMTP id ym18mr11928874vdc.8.1405313021661; Sun, 13 Jul 2014 21:43:41 -0700 (PDT) Received: by 10.220.137.148 with HTTP; Sun, 13 Jul 2014 21:43:41 -0700 (PDT) In-Reply-To: <697F8B1B48670548A5BAB03E8283550F2D3000F3@PGSMSX107.gar.corp.intel.com> References: <697F8B1B48670548A5BAB03E8283550F2D300085@PGSMSX107.gar.corp.intel.com> <697F8B1B48670548A5BAB03E8283550F2D3000F3@PGSMSX107.gar.corp.intel.com> Date: Mon, 14 Jul 2014 13:43:41 +0900 Message-ID: From: BYEONG-GI KIM To: "Choi, Sy Jong" , Dpdk-ovs@lists.01.org, dev@dpdk.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Error while compiling DPDK 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: Mon, 14 Jul 2014 04:43:02 -0000 Dear Choi, Of course I used "export RTE_TARGET=3Dx86_64-default-linuxapp-gcc" when I w= as trying to compile it. By the way, the compilation went off to one more step, there was another error message though; =3D=3D Build lib/librte_eal/linuxapp/kni LD /home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-gcc/build/lib/librte_e= al/linuxapp/kni/built-in.o CC [M] /home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-gcc/build/lib/librte_e= al/linuxapp/kni/ixgbe_main.o /home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-gcc/build/lib/librte_ea= l/linuxapp/kni/ixgbe_main.c: In function 'ixgbe_del_mac_filter': /home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-gcc/build/lib/librte_ea= l/linuxapp/kni/ixgbe_main.c:525:3: error: implicit declaration of function 'compare_ether_addr' [-Werror=3Dimplicit-function-declaration] if (!compare_ether_addr(addr, adapter->mac_table[i].addr) && ^ cc1: all warnings being treated as errors make[10]: *** [/home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-gcc/build/lib/librte_e= al/linuxapp/kni/ixgbe_main.o] Error 1 make[9]: *** [_module_/home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-gcc/build/lib/= librte_eal/linuxapp/kni] Error 2 make[8]: *** [sub-make] Error 2 make[7]: *** [rte_kni.ko] Error 2 make[6]: *** [kni] 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 Honestly, I've never been able to compile DPDK successfully... I had been trying to compile it on CentOS 6.5, and was failed. Then I changed OS from CentOS to Fedora, but there are still lots of errors. Best regards Byeong-Gi KIM 2014-07-14 13:32 GMT+09:00 Choi, Sy Jong : > Hi Mr. Kim, > > > > If you are compiling x86_64-default-linuxapp-gcc > > The RTE_TARGET=3Dx86_64-default-linuxapp-gcc > > > > I have manage to compile DPDK r1.6.0 with the following OS and kernel > version > > CentOS with customer kernel > > Linux localhost.localdomain 3.3.1 #1 SMP Tue Jan 7 22:44:17 MYT 2014 > x86_64 x86_64 x86_64 GNU/Linux > > > > Ubuntu 14.04 > > Linux choi-desktop 3.13.0-30-generic #55-Ubuntu SMP Fri Jul 4 21:40:53 UT= C > 2014 x86_64 x86_64 x86_64 GNU/Linux > > > > May I know, have you been able to compile DPDK previously? > > > > Regards, > > Choi, Sy Jong > > Platform Application Engineer > > > > *From:* BYEONG-GI KIM [mailto:kimbyeonggi@gmail.com] > *Sent:* Monday, July 14, 2014 11:29 AM > *To:* Choi, Sy Jong; dev@dpdk.org; Dpdk-ovs@lists.01.org > > *Subject:* Re: [dpdk-dev] Error while compiling DPDK > > > > Dear Choi > > > > I used x86_64-default-linuxapp-gcc. > > > > I also checked x86_64-native-linuxapp-gcc after exporting > RTE_TARGET=3Dx86_64-native-linuxapp-gcc, but there was a message "make[1= ]: > Nothing to be done for `install'." while trying to install it. > > > > Best regards > > > > Byeong-Gi KIM > > > > 2014-07-14 11:40 GMT+09:00 Choi, Sy Jong : > > Hi Mr. Kim, > > May confirm which environment are you using? > x86_64-default-linuxapp-gcc or > x86_64-native-linuxapp-gcc > > > > > > Regards, > Choi, Sy Jong > > -----Original Message----- > > *From: *BYEONG-GI KIM [kimbyeonggi@gmail.com] > *Sent: *Monday, July 14, 2014 10:05 AM Malay Peninsula Standard Time > *To: *Masaru Oki; dev@dpdk.org; Dpdk-ovs@lists.01.org > *Subject: *Re: [dpdk-dev] Error while compiling DPDK > > Here is the error message in English; > > =3D=3D Build lib/librte_eal/linuxapp > =3D=3D Build lib/librte_eal/linuxapp/igb_uio > LD > > /home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-gcc/build/lib/librte= _eal/linuxapp/igb_uio/built-in.o > CC [M] > > /home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-gcc/build/lib/librte= _eal/linuxapp/igb_uio/igb_uio.o > Building modules, stage 2. > MODPOST 1 modules > CC > > /home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-gcc/build/lib/librte= _eal/linuxapp/igb_uio/igb_uio.mod.o > LD [M] > > /home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-gcc/build/lib/librte= _eal/linuxapp/igb_uio/igb_uio.ko > INSTALL-MODULE igb_uio.ko > =3D=3D Build lib/librte_eal/linuxapp/eal > CC eal.o > gcc: error: =E2=80=93g: No such file or directory > make[7]: *** [eal.o] Error 1 > make[6]: *** [eal] 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 > > > > 2014-07-14 11:02 GMT+09:00 Masaru Oki : > > > > I'm sorry for the Korean characteristics. It was shown because My > Fedora > > OS > > > is set to use Korean as a default language. > > > > Try env LANG=3DC make install ... > > > > > > 2014-07-14 10:24 GMT+09:00 BYEONG-GI KIM : > > > >> Dear choi, > >> > >> Thank you for the reply. > >> > >> I've been trying to install DPDK while changing the command as you > >> mentioned, i.e., I used T=3Dx86_64-default-linuxapp-gcc, but error was > still > >> shown; > >> > >> > >> [root@compute DPDK-1.6.0]# make install T=3Dx86_64-default-linuxapp-gc= c > >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Installing x86_= 64-default-linuxapp-gcc > >> Configuration done > >> =3D=3D Build scripts > >> =3D=3D Build scripts/testhost > >> HOSTCC testhost.o > >> HOSTLD testhost > >> INSTALL-HOSTAPP testhost > >> =3D=3D Build lib > >> =3D=3D Build lib/librte_eal > >> =3D=3D Build lib/librte_eal/common > >> SYMLINK-FILE include/rte_atomic.h > >> SYMLINK-FILE include/rte_branch_prediction.h > >> SYMLINK-FILE include/rte_byteorder.h > >> SYMLINK-FILE include/rte_common.h > >> SYMLINK-FILE include/rte_cycles.h > >> SYMLINK-FILE include/rte_debug.h > >> SYMLINK-FILE include/rte_eal.h > >> SYMLINK-FILE include/rte_errno.h > >> SYMLINK-FILE include/rte_launch.h > >> SYMLINK-FILE include/rte_lcore.h > >> SYMLINK-FILE include/rte_log.h > >> SYMLINK-FILE include/rte_memcpy.h > >> SYMLINK-FILE include/rte_memory.h > >> SYMLINK-FILE include/rte_memzone.h > >> SYMLINK-FILE include/rte_pci.h > >> SYMLINK-FILE include/rte_pci_dev_ids.h > >> SYMLINK-FILE include/rte_per_lcore.h > >> SYMLINK-FILE include/rte_prefetch.h > >> SYMLINK-FILE include/rte_random.h > >> SYMLINK-FILE include/rte_rwlock.h > >> SYMLINK-FILE include/rte_spinlock.h > >> SYMLINK-FILE include/rte_tailq.h > >> SYMLINK-FILE include/rte_interrupts.h > >> SYMLINK-FILE include/rte_alarm.h > >> SYMLINK-FILE include/rte_string_fns.h > >> SYMLINK-FILE include/rte_cpuflags.h > >> SYMLINK-FILE include/rte_version.h > >> SYMLINK-FILE include/rte_tailq_elem.h > >> SYMLINK-FILE include/rte_eal_memconfig.h > >> SYMLINK-FILE include/rte_malloc_heap.h > >> SYMLINK-FILE include/rte_hexdump.h > >> SYMLINK-FILE include/arch/rte_atomic.h > >> =3D=3D Build lib/librte_eal/linuxapp > >> =3D=3D Build lib/librte_eal/linuxapp/igb_uio > >> LD > >> > >> > /home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-gcc/build/lib/librte_= eal/linuxapp/igb_uio/built-in.o > >> CC [M] > >> > >> > /home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-gcc/build/lib/librte_= eal/linuxapp/igb_uio/igb_uio.o > >> Building modules, stage 2. > >> MODPOST 1 modules > >> CC > >> > >> > /home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-gcc/build/lib/librte_= eal/linuxapp/igb_uio/igb_uio.mod.o > >> LD [M] > >> > >> > /home/stack/dpdk/DPDK-1.6.0/x86_64-default-linuxapp-gcc/build/lib/librte_= eal/linuxapp/igb_uio/igb_uio.ko > >> INSTALL-MODULE igb_uio.ko > >> =3D=3D Build lib/librte_eal/linuxapp/eal > >> CC eal.o > >> gcc: error: =E2=80=93g: =EA=B7=B8=EB=9F=B0 =ED=8C=8C=EC=9D=BC=EC=9D=B4= =EB=82=98 =EB=94=94=EB=A0=89=ED=84=B0=EB=A6=AC=EA=B0=80 =EC=97=86=EC=8A=B5= =EB=8B=88=EB=8B=A4 > >> make[7]: *** [eal.o] =EC=98=A4=EB=A5=98 1 > >> make[6]: *** [eal] =EC=98=A4=EB=A5=98 2 > >> make[5]: *** [linuxapp] =EC=98=A4=EB=A5=98 2 > >> make[4]: *** [librte_eal] =EC=98=A4=EB=A5=98 2 > >> make[3]: *** [lib] =EC=98=A4=EB=A5=98 2 > >> make[2]: *** [all] =EC=98=A4=EB=A5=98 2 > >> make[1]: *** [x86_64-default-linuxapp-gcc_install] =EC=98=A4=EB=A5=98 = 2 > >> make: *** [install] =EC=98=A4=EB=A5=98 2 > >> > >> I'm sorry for the Korean characteristics. It was shown because My Fedo= ra > >> OS > >> is set to use Korean as a default language. > >> > >> I set two environmental variables following the > >> intel-dpdk-programmers-guide.pdf as below: > >> > >> export RTE_SDK=3D/home/stack/dpdk/DPDK-1.6.0 > >> export RTE_TARGET=3Dx86_64-native-linuxapp-gcc > >> > >> What should I do in order to install DPDK successfully?... > >> > >> Thanks in advance. > >> > >> Best regards > >> > >> Byeong-Gi KIM > >> > >> > >> > >> > >> 2014-07-14 10:00 GMT+09:00 Choi, Sy Jong : > >> > >> > Hi Mr. Kim, > >> > > >> > Please do not compile with "T=3Dx86*gcc" because it will compile BSD= app > >> > too, which cause the error. > >> > > >> > Please complile only the configuration you need. This should remove > the > >> > error. > >> > > >> > > >> > Regards, > >> > Choi, Sy Jong > >> > > >> > > >> > -----Original Message----- > >> > *From: *BYEONG-GI KIM [kimbyeonggi@gmail.com] > >> > *Sent: *Monday, July 14, 2014 08:25 AM Malay Peninsula Standard Time > >> > *To: *Dpdk-ovs@lists.01.org; dev@dpdk.org > >> > *Subject: *[dpdk-dev] Error while compiling DPDK > >> > >> > > >> > Hello. > >> > > >> > An error occured while compiling DPDK 1.6.0r2 as below: > >> > > >> > [root@compute dpdk-1.6.0r2]# make install T=3Dx86_64*gcc > >> > ...Installing... > >> > /ovdk/dpdk/dpdk-1.6.0r2/lib/librte_eal/bsdapp/eal/eal.c: In function > >> > =E2=80=98rte_eal_init=E2=80=99: > >> > /ovdk/dpdk/dpdk-1.6.0r2/lib/librte_eal/bsdapp/eal/eal.c:873:2: error= : > >> > format =E2=80=98%p=E2=80=99 expects argument of type =E2=80=98void *= =E2=80=99, but argument 5 has type > >> > =E2=80=98pthread_t=E2=80=99 [-Werror=3Dformat=3D] > >> > RTE_LOG(DEBUG, EAL, "Master core %u is ready (tid=3D%p)\n", > >> > ^ > >> > > >> > The current OS is Fedora20. What should I do?... > >> > > >> > Best regards > >> > > >> > Byeong-Gi KIM > >> > > >> > > > > > > >