From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01hn0246.outbound.protection.outlook.com [104.47.33.246]) by dpdk.org (Postfix) with ESMTP id B2478D49C for ; Tue, 15 May 2018 13:38:55 +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=LGQFE0FH4jJk00kV0nkxfyVtaYl6f/e6hXj3cWBKd+s=; b=Busah4y2VgDMgVsfdJEMhCSCaEb/6O9t9u5PRJiiOTXpqTzJd3EewjiYNWPn/Fi9rIV8YVHzg31qUtaKTVdnvWLhkrClV/d9WQfFjRlFs1eOrJCHeQAxZ2556bHIxQ1G3I9Di19Cs4QfBSeASAGA9hmPsGNja8mNg0C85eWCL3w= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (111.93.218.67) by SN2PR07MB2526.namprd07.prod.outlook.com (2603:10b6:804:6::26) 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 11:38:52 +0000 Date: Tue, 15 May 2018 17:08:46 +0530 From: Jerin Jacob To: Gavin Hu Cc: dev@dpdk.org Message-ID: <20180515113845.GA18911@jerin> References: <1526372924-28411-1-git-send-email-gavin.hu@arm.com> <1526376227-25534-1-git-send-email-gavin.hu@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1526376227-25534-1-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: CO2PR06CA0070.namprd06.prod.outlook.com (2603:10b6:104:3::28) To SN2PR07MB2526.namprd07.prod.outlook.com (2603:10b6:804:6::26) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:SN2PR07MB2526; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 3:R1hn9R3HYmZf+kB3ShjktnAiN8qrW0heQknxrOw5UGQvFCbOd+90QcG6Mmyf8iy4DBCZ6UiPaVj9Dd9gdIVWkCvrJ+0FdnojVggdtw7JaX/4yM+MRHCDQpWIBahYmq0VOHY1aXhlJr3AAj0drcdjbU26NdlmHEj7DM9j7kc0d8y932n/7QrVcis1IenoOeryfErk6B7FIQZjFIwMtpFbE7D97PV1IbMfkIustg2tZ4/GV75rYub0aEcjArQN7V1X; 25:MESczrw4KAnpXaOdDNsHAtGYE8b2VLUfxqbHmt9j4VhTUaHjO/tQtPocf5mGGpq9BzH6HdRaPkN8/z9EhhUKt6iohFKgL4tcFrjNB0fPug3yDEI2Cm/x9iYG9admuMcg0KeiIOAP4B1WsPYuKcv0+SwqdNN05zKyMhm1uv+H1CElSejg4at51aFGZWOZCunYgUXG8CE7gKUYwNGOojU6a1ocNTs0e80+oIF3TgbJwkH+dxZ/RTUE4ul3Y7APAOrzafgVNaIgi6693KmSJ97bLNC+LnR5/NlLeF1A0YySIfg9WK9Ccn8Ld2/yr7uMTits57E170WlYoO7pqEf63Pekw==; 31:fnxHcB5CMtMFyqwArbzklhWjO4dGQUTKCpE9q4oCIACtEW+SvlUn4MMCIWrWyNEVp12EHx0qY8XPOvPtJzpLFDSpDlxoQCz8S8wdXsQmLWT3yFEr93gRri8kBNK+xmJDyNv95MiCASXf/lKsNtPFi4QqGKnKIb8uBwoXdyA5COf6qwCwGTVSFiyvyA/VxmQoz0jv9isEfjDxrxTXkYukkDnloJWJOnpt/7cEKeGkMLE= X-MS-TrafficTypeDiagnostic: SN2PR07MB2526: X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 20:n3pkNHNIAqmbTSoWNXw/QTUOKZsHxqB4jY2U8Spctbf/7xk4vL4uGZcDAojoMPxhU6rfgVSGS49pqRNNvDdzzguKiosTh6gV+0uyKa7AggI+jZmEqTfvB+ROiZq3MYa2SQPzGmyqNphBfxfRleVRZhd5kMog6pVQ14FsiBID3Oos4Y/iL+jarGW4x3CgPOw+ELeuD7UT5nl8aSK4HPIFYHrftAB7oc3ztuxtw63uwRx3IVt8l/z31fNcoxtloA3OnxmvHEZd3NPTa1y+9CoFvFy5E6UhQZ0d7oNDublwGbargjoV1hIIJ9ApHMvT38iLGc76yjDjQ7F216CPEAjbLb9bgmTLKNRWij4z7aKuP9PCi99CWAgmbHogPIItOmtNONjnUvxaLYv0s2yhUK7y5cdnKPmSBkNK43Yc8zhyBl8KvMGnT01yHyor1YbalftHznlrYQMmopkgyKSnbMjMeFOPxQoIys7Xx47W6Bty08b5/ytNAgeyoy12BeSqqY5tm01Chp/vIXjZf/i/s0FxL1wELGsypfQwkJ+T7w9cA3BE1aeKt331psaKrHKKVN+gTavKU3KoaZ0r8IKTRk7YMzl/tGvU5oC4Z/wO/9U+ZHk= 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)(8121501046)(5005006)(3002001)(10201501046)(3231254)(2232076)(944501410)(52105095)(93006095)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:SN2PR07MB2526; BCL:0; PCL:0; RULEID:; SRVR:SN2PR07MB2526; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 4:zxqKZGpYr/oy47si4bBuBAxp9mDWKvXtBQrrmu4h6jeRcOYour2OpWUQ+ssd3ARS6i0vAkBqqzUZPltgiQrX8O3xp15zzm85duH+2vkVQLm8ldbJJSvIOeRlCjrdKPZr+IAN12feElBnkbH/gRFvtYIkZPDb34frObfX+F9MedYI4V+GqdyYFJDkrCAbmBVfvgcR+tS1ThiUxeklEWYW1mk66JU2t5PR5zFx+ga04/pRGkD28NrJcu7PtQLIrxT0LtpJviFeEtIbWFLV/uqxzujXkzyy20sShltAir+xZ9xEE09ayWqQ5iK7S7o+uWcg9B6Jg1rrE9iJ92icI+UuZ46+iHmwbrD3AV/Wy7m/BN+YSsr3GDhFYVPCdw53WUKs X-Forefront-PRVS: 0673F5BE31 X-Forefront-Antispam-Report: SFV:SPM; SFS:(10009020)(396003)(39380400002)(366004)(346002)(376002)(39840400004)(189003)(13464003)(199004)(1076002)(6916009)(5660300001)(6116002)(23726003)(3846002)(8676002)(97736004)(81156014)(81166006)(6246003)(50466002)(47776003)(66066001)(9686003)(486006)(446003)(11346002)(8936002)(4326008)(956004)(55016002)(6306002)(44832011)(476003)(33656002)(53936002)(105586002)(5009440100003)(52116002)(7736002)(316002)(386003)(6496006)(16586007)(58126008)(72206003)(53546011)(33716001)(106356001)(6666003)(42882007)(68736007)(2906002)(16526019)(186003)(33896004)(26005)(25786009)(966005)(76176011)(305945005)(478600001)(229853002)(59010400001)(18370500001); DIR:OUT; SFP:1501; SCL:5; SRVR:SN2PR07MB2526; 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; SN2PR07MB2526; 23:Sde8xHaXIR14XAZxs8htLaBQ6UOE5cag/a0AqbXHY?= =?us-ascii?Q?21Pzw4GE9sZNy0xF1qjMmN1j2a4/IOmWeyyCErJulDZ36tCCygb1Wz2KOVNJ?= =?us-ascii?Q?QJ7iOUHa9HSv52/5TLL2UKj4iL9O7csyQd5WaUtmrVrqpJIcLd7noDVpW5Cv?= =?us-ascii?Q?2oyFMNPeciCqFJTysxgdM8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= =?us-ascii?Q?6cNu3Htru5lHn3nsCyuagj52xrn75PPlinYKHOs8FbRG2FOKxjNFaj4sbihJ?= =?us-ascii?Q?/boJ+9xfhrdCN13IBW5aAktBQPX8K6+DHuBGgKuVivE6tED6pzS2O6275l1+?= =?us-ascii?Q?iJqoSrKYNH3j4eYGKugwIdakFTCTGWml+UagAfHbshVVErct6qM51LFw6aUK?= =?us-ascii?Q?Lo5RjdfRz8wlBHJTucDwvsliInrS23ecEoxKyOQAcu08zYM2aIkjts4eDoKG?= =?us-ascii?Q?R9GNB9vd2Wj21/JSU+q3YFRie34nvCr+aFwJuW3pnLjrFkuV4pqeQkr2G+bx?= =?us-ascii?Q?N3+I8036R1mY0LttZI4onH37IC5be8rKzIXw7QzDgvS0NmXL3K1am7gdwoTY?= =?us-ascii?Q?g6lE8WAbxgk7sQ/hUtwQVccSCcDEFzFzZc56goInxnswBUiLyXJRo0UtJYBF?= =?us-ascii?Q?SlqHZsmmxZddw=3D=3D?= X-Microsoft-Antispam-Message-Info: ciX/U7W87pFC1cllLaSbXRcvswaAXL8b1/MUPj1gf7MhNdypFNjYiZiv2mJ4ps7WmPXuIh38bNSeo681wpjVEZs4n5RCFozjjW5N9T+D+lHhgDnyQwofucWeLD2863qxOux1QOVlZHKTQ50K50KbV65GVDkdrTz8ZKXNf2dhafO9HnlW32ZUBWr8+LpbGvbdUPLSJVdwSKpq+Nky9cS7OhB6xnzumjIqg7mjZNCCbj/Gn5v2rh/Tx6Q1D2zmREzhgdWSen/72AOZwqOITmV4CoiyO87p2gaEHXHteoE0Jm0OUtx14KDmbgaOId/DZINBYzOJWoaCTxNWOXKP5zsMGc1/yrK7jRFEOCxEFeoMwOz0T4sE4xBV4XWh4XQSvGLDxGs10SqwiaqNjPyfT6bie6hxXeuGHIiKAQW1AV9Y95+bIdTthpIMVMDcHymDprakNRFr50IRjU3YXgL7aG9ftxMq7e9XKACOTegO0pwtvhu9KPgDuYxbX40HBCR1CFvqT3rl9KrEJpALjhsiw1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ZfA6HAWlYwxZbM4tK9cb/NJPPQgYWUrs52N6A6ieS1KjAlCl2nvlxBz5VPmXn9GJ++iFQXKBoRYbQfNLp X-MS-Office365-Filtering-Correlation-Id: ec185f5d-fa3b-457a-b32b-08d5ba586fff X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2018 11:38:52.8897 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ec185f5d-fa3b-457a-b32b-08d5ba586fff X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2526 Subject: Re: [dpdk-dev] [PATCH v2 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 11:38:56 -0000 -----Original Message----- > Date: Tue, 15 May 2018 05:23:44 -0400 > From: Gavin Hu > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v2 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 comments are not addressed in v2. https://dpdk.org/ml/archives/dev/2018-May/101799.html https://dpdk.org/ml/archives/dev/2018-May/101802.html > --- > 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 >