From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02hn0234.outbound.protection.outlook.com [104.47.38.234]) by dpdk.org (Postfix) with ESMTP id B97E41B7A5 for ; Tue, 15 May 2018 11:07:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=PJf6piFSiqixGU5mmHPuac0FatURfUbha7QJmbYNL/g=; b=I8aPqyaMT6HNXpw+UXzwjgUytwi3ocRh388v1oIzo6ZAmCPRfAlOnyi35rsowIO7jTSVaFSl38gt2L3twlGuX4lQGzF1yoxSrub4JrK9ApTmV2BUpRxjqIVEAu9OD6rwR8SypwOrhuA596t2UDCOxR7AvxLTyo0xaxtJvAkECDE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (111.93.218.67) by CO2PR07MB2520.namprd07.prod.outlook.com (2603:10b6:102:13::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Tue, 15 May 2018 09:07:17 +0000 Date: Tue, 15 May 2018 14:37:01 +0530 From: Jerin Jacob To: Gavin Hu Cc: dev@dpdk.org Message-ID: <20180515090700.GA10539@jerin> References: <1526372924-28411-1-git-send-email-gavin.hu@arm.com> <1526372924-28411-2-git-send-email-gavin.hu@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1526372924-28411-2-git-send-email-gavin.hu@arm.com> User-Agent: Mutt/1.9.5 (2018-04-13) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0083.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1::23) To CO2PR07MB2520.namprd07.prod.outlook.com (2603:10b6:102:13::7) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020); SRVR:CO2PR07MB2520; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2520; 3:TRMjjb8CpPRGSV19V/3G30NTcNgt6eWIw0S/9BReFSLorneUMmxRTRZkdKxaEon8KTsCEy6wLKWbFfF3D2qP1CEd6lwQQfexgXO7ZmxV0FjqefdVm9Gk3A4ZZbvOpgetoaAVNYOnoedlxjlwMXF+Zb7YqKueX6JyQV9ac4NuoWmv4Sgnm+OodalRu87NLVO9dCpLP1pGWPKs1XfDAv0N+JQtkMcZACF1TeFUocEaFBqhg9ibJL3ADOfVOzdS8YvQ; 25:jzfoWmV9xba2KCL+QsHchBYKAR0DaP3QwnX21LRkgyOj7pB2dRQE749aYmQWiQfU6mAyyMsqPmXBimtwYa9TYAeGEY6RAF84rqIF7OLOGgw+nqzYszZ+W7zl4iQ42udH4jj0ux2BvobF9EnSXEiNb92yNT11raxrWjhD5OhMe2W5hGYePdegQBb6/yFHFyQ22PLGkIr240Wuex1LvzbcEoUgWk2y+5+TN9p/CQSMCdJm3ktafvwvwC5dpxpPu8lahvI11M8f0i3bhzqyi7fZS+tWC2Gorr1nriykVDeQySnmcLmBaDWx/f62rSSNjTApnHOoK2hazvFH8/LXhNtQEA==; 31:ldWOE4925MaHaDmWRQ5fehrLs104ezkUbFrM5bYqRsHX3q0+Fb6DVLXRCz0ZL/C3O7Yyryrgbk4Y0TjEaD7lZgFdD8FKPfi7dUN4Xv7Gi7XkmwclOrI8p5fdW+ZyAsY6e3C8TOpTL7RtDJXceyH7qtWsdZOH/M4vH7mDriRBG/IQTKY1gssCjJEGirNF7NtQWudsz+hY8eXBeLKgABHjEtFb1hFwJRCMplim7uwhLAs= X-MS-TrafficTypeDiagnostic: CO2PR07MB2520: X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2520; 20:d96PTtukAvatfBfU2d2NK0IYxMOYynZlOzuhM3rlaqUgid9q3e9KzgvfPxsFlaLNEfLmwwH4pvQVForNSEqBleLhx+rIj8rc2zPP6Sfo/GSBvek+EAb7Q0iCQV5grMHmGg6iWfdib8WrbzPvIicpkhaV0XYW3taIerNDq7MJO0l5cJ5VLezyNFxJbmZZX6h5pXPnD9SbrZv6N3TrJUB1/fWoSIv1KMwkQDi4Lu+Qz/qk/qhQr85yKAdgHrjchZUHRFyn2BW6wEuYOFmMK8N8oTJI1D5yOjwznHbFkP6nEb7AKNG+rTzGgSTf3gkc7rL1rCjFMyGbp304qVoFj/ZYTOchPHjDH5t6APD740zUK5Wi/X3cMcsdn2niL+8oU3DCQJjJvEBzKBr7y8k1iDsgLoQ6irD2SP7pe2x2z47DZm0ElLetyA1Ftu+UNT/SKx7fMIiHiw46dHJ6F91IPVfNul8QywlDwXvBYZ2jq0TCWjYg6YXcAxKveqb9zD13C7qNwcatRn82aoXgVZqg+dnD8RLpxzvCSDNMQ2DIFfJi706FWJPhojdjCHWZGwopCggRGGZYHbMAm8u4afnUOhvtxMds04F+fGo0jPvpDfRVZq0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(262104967686372)(66839620246622); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(2232076)(944501410)(52105095)(93006095)(3002001)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:CO2PR07MB2520; BCL:0; PCL:0; RULEID:; SRVR:CO2PR07MB2520; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2520; 4:LWtaPzwwFCUP8OEMA1fmgyZIbDmBOO3zYKM1ECoryLFcm/qDajXDsBfwUSLlDqXgg7Ce1VLeRugRv0OGO/hCxg74U1d12HpAnKZCXgMqXOanCKeliYD7vgHiZqkRt8SIDieI/m22Ydq/I8RclC/vkVX2qWnVWdv45NycbBB3KJQ9etK4MQz2kurw2i6uQsF5cafbIdaXyoV/Ytim4eaEkh81OHYAGtz2UfDZzEdKMAqpUd1fRJZMnN0STmt/+P+jUflmFhdHxEOWm7kgWu7ff6JjJj7ydQhxu5wNX2shxc7J97YgVH1O7DbGqhPQHoSnz3eGMuZh6RaQ+p1NcrP8PtTLi7wjwiefLjmQxpmTLKw5I40uIEVrfrXvAwKIQcIa X-Forefront-PRVS: 0673F5BE31 X-Forefront-Antispam-Report: SFV:SPM; SFS:(10009020)(979002)(396003)(346002)(376002)(39860400002)(39380400002)(366004)(189003)(13464003)(199004)(33896004)(33716001)(42882007)(2906002)(5660300001)(97736004)(76176011)(3846002)(44832011)(486006)(6496006)(47776003)(23726003)(6116002)(956004)(446003)(476003)(478600001)(16586007)(25786009)(26005)(316002)(1076002)(72206003)(52116002)(53546011)(16526019)(11346002)(386003)(58126008)(186003)(66066001)(966005)(68736007)(305945005)(4326008)(6246003)(33656002)(7736002)(53936002)(8936002)(5009440100003)(81166006)(81156014)(55016002)(6306002)(9686003)(8676002)(6916009)(6666003)(105586002)(229853002)(106356001)(50466002)(59010400001)(18370500001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1501; SCL:5; SRVR:CO2PR07MB2520; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR07MB2520; 23:f1CrB5fRA0ApT+5Rb0xjTi4FAP1hXPjpsvc6BzA2d?= =?us-ascii?Q?zlt43+Z22PcX/WyZnCTL/y4CY561z8uQVaExtQZouGxnPOvdFhqTxh+0vGbH?= =?us-ascii?Q?5iYtvsQlBKYswX+Nev/DWjRAbx5p9o65rWjdnqABvVlE6h959ogyhU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n/cKWr6WCugNb3Xk4F81RZ9a01F5/wHXhnvqYi89uKmbStIMt+wboIFB4IlPfFYso3jPPSTW/3WPeRKAR7EADrGlRbijnTXjir6WMKNh45pYGqqg+YugBQCo/NyBtXhBDsUZ96Eic4PrMP+osKi4s5XO56JzqRQHDNnBbdmlMvoafXtxUwC4yXf1M9ettsBV5Udvpbq2i8XpaYhPjftdG9KiPWaG1bF0jO X-MS-Office365-Filtering-Correlation-Id: 381cbb78-efca-4c60-32b1-08d5ba4342c7 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2018 09:07:17.7625 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 381cbb78-efca-4c60-32b1-08d5ba4342c7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2520 Subject: Re: [dpdk-dev] [PATCH 1/4] app: add LDFLAGS -latomic to link atomic lib 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: Tue, 15 May 2018 09:07:22 -0000 -----Original Message----- > Date: Tue, 15 May 2018 04:28:41 -0400 > From: Gavin Hu > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH 1/4] app: add LDFLAGS -latomic to link atomic lib > X-Mailer: git-send-email 2.1.4 > > For ARM64 platform, libdpdk.a includes the librte_pmd_octeontx_ssovf.a, > which requires the libatomic.a support.The atomic lib is built-in in the > gcc toolchain, but for clang it has to be explicitly linked. > For more details, please refer to https://clang.llvm.org/docs/Toolchain.html > > ~/dpdk/build/lib/librte_pmd_octeontx_ssovf.a(timvf_worker.o): In function `timvf_timer_cancel_burst': > timvf_worker.c:(.text+0x80): undefined reference to `__atomic_fetch_add_8' > /home/gavin/arm_repo/dpdk/build/lib/librte_pmd_octeontx_ssovf.a(timvf_worker.o): In function `timvf_timer_arm_burst_sp': > timvf_worker.c:(.text+0x200): undefined reference to `__atomic_fetch_add_8' > timvf_worker.c:(.text+0x244): undefined reference to `__atomic_store_2' > timvf_worker.c:(.text+0x278): undefined reference to `__atomic_fetch_add_4' > timvf_worker.c:(.text+0x30c): undefined reference to `__atomic_store_2' > > Signed-off-by: Gavin Hu > Reviewed-by: Honnappa Nagarahalli Following patch is part of upstream. Are you testing with following patch/upstream. commit 55fbc92d7800100628579643c9ee2770614fef10 Author: Pavan Nikhilesh Date: Wed May 9 02:56:00 2018 +0530 event/octeontx: fix build with clang 6 Clang 6 & 7 fail to naturally align packed structs due to this clang can't use 8byte atomic primitives and splits them into lesser atomic primitives. To use lesser atomic primitives we need to link libatomic (-latomic), instead supply alignment attribute to the compiler. timvf_worker.c:(.text+0x498): undefined reference to `__atomic_fetch_add_8' timvf_worker.c:(.text+0x525): undefined reference to `__atomic_store_2' timvf_worker.c:(.text+0x557): undefined reference to `__atomic_fetch_add_4' timvf_worker.c:(.text+0x5de): undefined reference to `__atomic_store_2' Fixes: f874c1eb1519 ("event/octeontx: create and free timer adapter") Reported-by: Andrew Rybchenko Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob > --- > mk/rte.app.mk | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/mk/rte.app.mk b/mk/rte.app.mk > index 438f99d..bca8325 100644 > --- a/mk/rte.app.mk > +++ b/mk/rte.app.mk > @@ -51,6 +51,7 @@ endif > > # Link only the libraries used in the application > LDFLAGS += --as-needed > +LDFLAGS += -latomic > > # default path for libs > _LDLIBS-y += -L$(RTE_SDK_BIN)/lib > -- > 2.1.4 >