From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 43EA4A0679 for ; Mon, 29 Apr 2019 09:25:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 144B61B1EE; Mon, 29 Apr 2019 09:25:20 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70083.outbound.protection.outlook.com [40.107.7.83]) by dpdk.org (Postfix) with ESMTP id D9CAC1B192 for ; Mon, 29 Apr 2019 09:25:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hgwN+o7SnxyN74Y7CmdMMfkI/ct+MJ8Rr7ZuVPtRbSE=; b=rUy+korHZJFnVUEnjNONxN3zotAg9RcXOqEYd7BpcVz3zqk+XdSHPgRknrJjPBfwLyu0aiQmm0Y8+BgqWUylH6t/nmJm0MwlqPwphk614HDBxFW/b8EE6xQVr2iZvZdd3L77PbkwYYK3SKIxkjM4mw+RUXkqRmprcdbhar1VBQI= Received: from AM0PR08MB4418.eurprd08.prod.outlook.com (20.179.35.207) by AM0PR08MB3042.eurprd08.prod.outlook.com (52.134.94.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1835.12; Mon, 29 Apr 2019 07:25:17 +0000 Received: from AM0PR08MB4418.eurprd08.prod.outlook.com ([fe80::21aa:85a4:d79:8f94]) by AM0PR08MB4418.eurprd08.prod.outlook.com ([fe80::21aa:85a4:d79:8f94%5]) with mapi id 15.20.1835.018; Mon, 29 Apr 2019 07:25:17 +0000 From: "Ruifeng Wang (Arm Technology China)" To: "bluca@debian.org" CC: "dev@dpdk.org" , nd , nd Thread-Topic: How to set up meson cross build? Thread-Index: AdT+WQadeQWF7lW2T3+4Iz7oDF2x3g== Date: Mon, 29 Apr 2019 07:25:16 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Ruifeng.Wang@arm.com; x-originating-ip: [113.29.88.7] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 20a9e702-8f62-4579-1e65-08d6cc73d408 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:AM0PR08MB3042; x-ms-traffictypediagnostic: AM0PR08MB3042: nodisclaimer: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-forefront-prvs: 0022134A87 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(136003)(39850400004)(346002)(376002)(366004)(199004)(189003)(2351001)(6506007)(316002)(966005)(54906003)(73956011)(33656002)(66476007)(6916009)(3846002)(66946007)(6116002)(76116006)(52536014)(66556008)(7736002)(64756008)(305945005)(66446008)(102836004)(26005)(6306002)(55016002)(97736004)(71200400001)(478600001)(71190400001)(55236004)(186003)(74316002)(476003)(6436002)(5640700003)(72206003)(4326008)(14454004)(30864003)(256004)(5660300002)(81166006)(66066001)(1730700003)(81156014)(486006)(9686003)(2906002)(8676002)(8936002)(68736007)(25786009)(53936002)(86362001)(7696005)(2501003)(99286004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR08MB3042; H:AM0PR08MB4418.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Ek7rMK6H6ej81vfSf1kQBBLJGkHAGK0r76xWJt/oAUHR+TtPkVHxvXhLgMbq0w4rNDss5RCQyJVPP+WPqtyW8zmAwJpKOfTnig6hEmc9+K9AG2h/z7P67jvr5HPrqAspSy1KuX/a0bxItUwXXPMiUvQZwOj2WdDlqJCuVdhmC5yd4FWL1MfgrX/7RNAuDdWIcE8hR7bvNQiLwuIaRzl8o++T3k5zvQPYNC937olA/FfeTVK1OFH17NaCOpBx0pRDPHBwlYBlTPXHXTdVRIg9y+M7VvI7pcCcDiAvJpxEY+eyQUU2oqfl8XtHRbassSoLMY0Si+uuguhkS6I7+KJU5WN5WYa7mHXXHT9YUr19kuSrdikLqAVB5P+X12SD3qwcexQNKLJXhry5TZKY7XINMVI0bKiGnJq9K39ZdOJulog= MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 20a9e702-8f62-4579-1e65-08d6cc73d408 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Apr 2019 07:25:16.9620 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3042 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] How to set up meson cross build? 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190429072516.BMJfCz-OExjd6uPlBChRbDaxA7s1nH-XKFlbldlS90o@z> Hi Luca, I'm setting up a cross compiling environment, and hit meson cross compiling= issue. Could you take a look and help? I have installed cross toolchain and numactl according to https://doc.dpdk.= org/guides/linux_gsg/cross_build_dpdk_for_arm64.html Currently, cross compiling with 'make' is successful, however meson cross c= ompiling always fail. Commands used for meson compiling: meson arm64-build --cross-file config/arm/arm64_armv8_linux_gcc ninja -C arm64-build Errors hit: aarch64-linux-gnu/bin/ld: lib/librte_eal.so.10.1: version node not found fo= r symbol numa_run_on_node_mask@@libnuma_1.2 aarch64-linux-gnu/bin/ld: failed to set dynamic section sizes: Bad value Have you ever hit such issue, or can you indicate how to proceed? Thanks. Below is full log: ruifeng@ruifeng-VirtualBox:~/dpdk$ ninja -C arm64-build ninja: Entering directory `arm64-build' [58/1354] Linking target lib/librte_eal.so.10.1. FAILED: lib/librte_eal.so.10.1 aarch64-linux-gnu-gcc -o lib/librte_eal.so.10.1 'lib/76b5a35@@rte_eal@sta/= librte_eal_common_eal_common_bus.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_= common_eal_common_cpuflags.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_common= _eal_common_class.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_comm= on_devargs.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_dev.= c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_errno.c.o' 'lib= /76b5a35@@rte_eal@sta/librte_eal_common_eal_common_fbarray.c.o' 'lib/76b5a3= 5@@rte_eal@sta/librte_eal_common_eal_common_hexdump.c.o' 'lib/76b5a35@@rte_= eal@sta/librte_eal_common_eal_common_hypervisor.c.o' 'lib/76b5a35@@rte_eal@= sta/librte_eal_common_eal_common_launch.c.o' 'lib/76b5a35@@rte_eal@sta/libr= te_eal_common_eal_common_lcore.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_co= mmon_eal_common_log.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_co= mmon_memalloc.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_m= emory.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_memzone.c= .o' 'lib/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_options.c.o' 'li= b/76b5a35@@rte_eal@sta/librte_eal_common_eal_common_proc.c.o' 'lib/76b5a35@= @rte_eal@sta/librte_eal_common_eal_common_string_fns.c.o' 'lib/76b5a35@@rte= _eal@sta/librte_eal_common_eal_common_tailqs.c.o' 'lib/76b5a35@@rte_eal@sta= /librte_eal_common_eal_common_thread.c.o' 'lib/76b5a35@@rte_eal@sta/librte_= eal_common_eal_common_timer.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_commo= n_eal_common_uuid.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_common_hotplug_= mp.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_common_malloc_elem.c.o' 'lib/7= 6b5a35@@rte_eal@sta/librte_eal_common_malloc_heap.c.o' 'lib/76b5a35@@rte_ea= l@sta/librte_eal_common_malloc_mp.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal= _common_rte_keepalive.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_common_rte_= malloc.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_common_rte_option.c.o' 'li= b/76b5a35@@rte_eal@sta/librte_eal_common_rte_reciprocal.c.o' 'lib/76b5a35@@= rte_eal@sta/librte_eal_common_rte_service.c.o' 'lib/76b5a35@@rte_eal@sta/li= brte_eal_common_arch_arm_rte_cpuflags.c.o' 'lib/76b5a35@@rte_eal@sta/librte= _eal_common_arch_arm_rte_cycles.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_c= ommon_arch_arm_rte_hypervisor.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_lin= ux_eal_eal_alarm.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_linux_eal_eal_cp= uflags.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_linux_eal_eal_debug.c.o' '= lib/76b5a35@@rte_eal@sta/librte_eal_linux_eal_eal_hugepage_info.c.o' 'lib/7= 6b5a35@@rte_eal@sta/librte_eal_linux_eal_eal_interrupts.c.o' 'lib/76b5a35@@= rte_eal@sta/librte_eal_linux_eal_eal_memalloc.c.o' 'lib/76b5a35@@rte_eal@st= a/librte_eal_linux_eal_eal_lcore.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_= linux_eal_eal_log.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_linux_eal_eal_t= hread.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_linux_eal_eal_timer.c.o' 'l= ib/76b5a35@@rte_eal@sta/librte_eal_linux_eal_eal_vfio.c.o' 'lib/76b5a35@@rt= e_eal@sta/librte_eal_linux_eal_eal_vfio_mp_sync.c.o' 'lib/76b5a35@@rte_eal@= sta/librte_eal_linux_eal_eal.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_linu= x_eal_eal_memory.c.o' 'lib/76b5a35@@rte_eal@sta/librte_eal_linux_eal_eal_de= v.c.o' -Wl,--no-undefined -Wl,--as-needed -Wl,-O1 -shared -fPIC -Wl,--start= -group -Wl,-soname,librte_eal.so.10 -Wl,--no-as-needed -pthread -lm -ldl -l= numa lib/librte_kvargs.so.1.1 -Wl,--end-group -Wl,--version-script=3D/home/= ruifeng/dpdk/lib/librte_eal/rte_eal_version.map '-Wl,-rpath,$ORIGIN/' -Wl,-= rpath-link,/home/ruifeng/dpdk/arm64-build/lib /home/ruifeng/mcbin_cross_compile/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-l= inux-gnu/bin/../lib/gcc/aarch64-linux-gnu/7.4.1/../../../../aarch64-linux-g= nu/bin/ld: lib/librte_eal.so.10.1: version node not found for symbol numa_r= un_on_node_mask@@libnuma_1.2 /home/ruifeng/mcbin_cross_compile/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-l= inux-gnu/bin/../lib/gcc/aarch64-linux-gnu/7.4.1/../../../../aarch64-linux-g= nu/bin/ld: failed to set dynamic section sizes: Bad value collect2: error: ld returned 1 exit status [59/1354] Compiling C object 'lib/76b5a35@@rte_cmdline@sta/librte_cmdline_c= mdline.c.o'. ninja: build stopped: subcommand failed. Regards, /Ruifeng