From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by dpdk.org (Postfix) with ESMTP id B1F9029CB for ; Thu, 22 Feb 2018 21:01:44 +0100 (CET) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9605CAEB8; Thu, 22 Feb 2018 20:01:43 +0000 (UTC) Message-ID: <1519329652.2458.5.camel@suse.de> From: Marco Varlese To: Hemant Agrawal , dev@dpdk.org Date: Thu, 22 Feb 2018 21:00:52 +0100 In-Reply-To: <200ffaa2-0e91-8d09-821e-39d1e7a8b81b@nxp.com> References: <1519309427.2738.11.camel@suse.de> <200ffaa2-0e91-8d09-821e-39d1e7a8b81b@nxp.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.4 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] DPDK 18.02 on ARM64 is broken X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Feb 2018 20:01:44 -0000 Dear Hemant, On Thu, 2018-02-22 at 22:58 +0530, Hemant Agrawal wrote: > Hi Marco/Gaetan, > > On 2/22/2018 7:53 PM, Marco Varlese wrote: > > Hi, > > > > I am trying to build the latest DPDK (18.02) but facing some issues > > on ARM64 > > platform. > > > > I'm using the option CONFIG_RTE_MAJOR_ABI to set the SONAME to > > 18.02. > > > > you mean you configured CONFIG_RTE_MAJOR_ABI=18.02, And did a SHARED > build. Right; however, the issue happens even by just using the SHARED option... no need to have the RTE_MAJOR_ABI to reproduce. > I am not seeing any error on my ubuntu m/c while doing shared build. > May > be I am missing something or it is different on suse. The exact same issue was reproduced by Thomas Monjalon who very kindly assisted me over #dpdk channel on IRC. I don't think he runs openSUSE distribution; howevere, he could confirm it just to be sure... > > > ===== START ===== > > The error is connected to building the librte_pmd_dpaa.so. Please, > > see below: > > [ 405s] /usr/lib64/gcc/aarch64-suse-linux/7/../../../../aarch64- > > suse- > > linux/bin/ld: warning: librte_bus_dpaa.so.18.02, needed by > > /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a-linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so, not found (try using -rpath or > > -rpath-link) > > can you check if "librte_bus_dpaa.so.18.02" is present in your > build? > > This is similar to rte_pmd_ixgbe.so.18.02 having dependency on > librte_bus_pci.so.18.02 > > Are you using some rpm build script? > > > [ 405s] /usr/lib64/gcc/aarch64-suse-linux/7/../../../../aarch64- > > suse- > > linux/bin/ld: warning: librte_mempool_dpaa.so.18.02, needed by > > /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a-linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so, not found (try using -rpath or > > -rpath-link) > > This is similar to previous, can you check the presence of > librte_mempool_dpaa.so.18.02 If you read my email fully, you'll see that I point out the fact that the .so are built... just go down at the bottom of my previous email. > > regards, > Hemant > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to > > `fman_if_reset_mcast_filt > > er_table@DPDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `qman_alloc_ > > pool_range@DP > > DK_18.02' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `rte_dpaa_po > > rtal_init@DPD > > K_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `fman_if_add > > _mac_addr@DPD > > K_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `fman_if_dis > > able_rx@DPDK_ > > 17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to > > `fman_if_set_fc_threshold > > @DPDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `qman_delete > > _cgr@DPDK_18. > > 02' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `qman_create > > _cgr@DPDK_18. > > 02' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `qman_dqrr_c > > onsume@DPDK_1 > > 7.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `qman_global > > _init@DPDK_17 > > .11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to > > `fman_if_promiscuous_disa > > ble@DPDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `per_lcore_d > > paa_io@DPDK_1 > > 8.02' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `dpaa_svr_fa > > mily@DPDK_18. > > 02' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `fman_if_cle > > ar_mac_addr@D > > PDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `fman_if_ena > > ble_rx@DPDK_1 > > 7.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `qman_init_f > > q@DPDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `per_lcore_h > > eld_bufs@DPDK > > _18.02' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `dpaa_logtyp > > e_pmd@DPDK_17 > > .11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `fman_if_set > > _maxfrm@DPDK_ > > 17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `fman_if_sta > > ts_get@DPDK_1 > > 7.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to > > `fman_dealloc_bufs_mask_h > > i@DPDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to > > `fman_if_get_fc_threshold > > @DPDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to > > `fman_if_loopback_disable > > @DPDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `qman_dequeu > > e@DPDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `dpaa_netcfg > > @DPDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to > > `fman_if_promiscuous_enab > > le@DPDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `bman_acquir > > e@DPDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to > > `fman_if_set_mcast_filter > > _table@DPDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to > > `fman_if_discard_rx_error > > s@DPDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `qman_set_vd > > q@DPDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to > > `rte_dpaa_portal_fq_init@ > > DPDK_18.02' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `qman_portal > > _poll_rx@DPDK > > _18.02' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `qman_modify > > _cgr@DPDK_18. > > 02' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `qman_create > > _fq@DPDK_17.1 > > 1' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `qman_query_ > > fq_frm_cnt@DP > > DK_18.02' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to > > `rte_dpaa_driver_register > > @DPDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `fman_ip_rev > > @DPDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `fman_if_get > > _fc_quanta@DP > > DK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `fman_if_sta > > ts_get_all@DP > > DK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `qman_enqueu > > e_multi@DPDK_ > > 17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `fman_if_set > > _fdoff@DPDK_1 > > 7.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `fman_if_set > > _ic_params@DP > > DK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `fman_if_get > > _fdoff@DPDK_1 > > 7.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `bman_global > > _init@DPDK_17 > > .11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `qman_alloc_ > > cgrid_range@D > > PDK_18.02' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to > > `fman_if_loopback_enable@ > > DPDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `fman_if_sta > > ts_reset@DPDK > > _17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `fman_if_set > > _bp@DPDK_17.1 > > 1' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to > > `qman_reserve_fqid_range@ > > DPDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to > > `qman_release_cgrid_range > > @DPDK_18.02' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `fman_if_set > > _fc_quanta@DP > > DK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to > > `fman_dealloc_bufs_mask_l > > o@DPDK_17.11' > > [ 405s] /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a- > > linuxapp-gcc- > > default/lib/librte_pmd_dpaa.so: undefined reference to `rte_dpaa_bp > > id_info@DPDK_ > > 17.11' > > [ 405s] collect2: error: ld returned 1 exit status > > ===== END ===== > > > > Despite the error saying that the librte_mempool_dpaa.so.18.02 > > cannot be found, > > I can see it being built somewhere earlier in the compilation > > process. Please, > > see below: > > ===== START ===== > > [ 216s] gcc -DVERSION="18.02" -L/home/abuild/rpmbuild/BUILD/dpdk- > > 18.02/arm64- > > armv8a-linuxapp-gcc-default/lib -Wl,--version- > > script=/home/abuild/rpmbuild/BUILD/dpdk- > > 18.02/drivers/mempool/dpaa2/rte_mempool_dpaa2_version.map -shared > > dpaa2_hw_mempool.o -z defs -lrte_bus_fslmc -lrte_eal -lrte_mempool > > -lrte_ring > > -Wl,-soname,librte_mempool_dpaa2.so.18.02 -o > > librte_mempool_dpaa2.so.18.02 > > [ 216s] gcc -DVERSION="18.02" -L/home/abuild/rpmbuild/BUILD/dpdk- > > 18.02/arm64- > > armv8a-linuxapp-gcc-default/lib -Wl,--version- > > script=/home/abuild/rpmbuild/BUILD/dpdk- > > 18.02/drivers/mempool/dpaa/rte_mempool_dpaa_version.map -shared > > dpaa_mempool.o > > -z defs -lrte_bus_dpaa -lrte_eal -lrte_mempool -lrte_ring -Wl,- > > soname,librte_mempool_dpaa.so.18.02 -o librte_mempool_dpaa.so.18.02 > > [ 216s] INSTALL-LIB librte_mempool_dpaa2.so.18.02 > > [ 216s] cp -f librte_mempool_dpaa2.so.18.02 > > /home/abuild/rpmbuild/BUILD/dpdk- > > 18.02/arm64-armv8a-linuxapp-gcc-default/lib > > [ 216s] ln -s -f librte_mempool_dpaa2.so.18.02 > > /home/abuild/rpmbuild/BUILD/dpdk-18.02/arm64-armv8a-linuxapp-gcc- > > default/lib/librte_mempool_dpaa2.so > > [ 217s] INSTALL-LIB librte_mempool_dpaa.so.18.02 > > [ 217s] cp -f librte_mempool_dpaa.so.18.02 > > /home/abuild/rpmbuild/BUILD/dpdk- > > 18.02/arm64-armv8a-linuxapp-gcc-default/lib > > [ 217s] ln -s -f librte_mempool_dpaa.so.18.02 > > /home/abuild/rpmbuild/BUILD/dpdk- > > 18.02/arm64-armv8a-linuxapp-gcc-default/lib/librte_mempool_dpaa.so > > ===== END ===== > > > > > > Cheers, > > > >