From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AFFA8A0487 for ; Thu, 4 Jul 2019 10:59:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 25AD92C52; Thu, 4 Jul 2019 10:59:45 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id AB6D12C38 for ; Thu, 4 Jul 2019 10:59:43 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x648rDDQ019347; Thu, 4 Jul 2019 01:59:40 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=Oy3rM5CpElHTZi2j5Tj7ErFviy1WcUK69fIK2xolI98=; b=Gc52GF/XzTvnKuDbmnTaedrN6dveNKFLUs9o60cxfsvqwgwBRiQtJjbJJpNszYR0RuQu D7qylkZ+V8REBTfpcuuJA43tJCRAD45/uwDci6cJuzkFx69XA9YRV5zqXjFj6Kj0U/LW xjiB/MQOFx64WP6etfWqEvKy1swVeFTyF9Pov8vITg+1UGNbkVR2ONeVtbpmtxmMadad wTNwuGFnsCfRLdwH0+WcQGrbz1vbkjlulJtJdVBjohZ3qrd5EKAlgsI26zY06mnJYsoE n3Feu+ZbKUAJrOtROT/kPv1Td7coBWC6UUixm0oJlY3qq5zwa/MmbxsbU3I2pmVGEznb 1g== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2tgtf74qgu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 04 Jul 2019 01:59:39 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 4 Jul 2019 01:59:38 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Thu, 4 Jul 2019 01:59:38 -0700 Received: from BG-LT7430.marvell.com (unknown [10.28.17.42]) by maili.marvell.com (Postfix) with ESMTP id C193D3F703F; Thu, 4 Jul 2019 01:59:36 -0700 (PDT) From: To: , , CC: , Pavan Nikhilesh Date: Thu, 4 Jul 2019 14:29:35 +0530 Message-ID: <20190704085935.3328-1-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-07-04_05:, , signatures=0 Subject: [dpdk-dev] [PATCH] event/octeontx2: add libatomic dependency for 32-bit clang 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" From: Pavan Nikhilesh When compiling with clang on 32-bit platforms, we are missing copies of 64-bit atomic functions. We can solve this by linking against libatomic for the drivers and libs which need those atomic ops. Signed-off-by: Pavan Nikhilesh --- drivers/event/octeontx2/meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/event/octeontx2/meson.build b/drivers/event/octeontx2/meson.build index bdb5beed6..ecd8fd84d 100644 --- a/drivers/event/octeontx2/meson.build +++ b/drivers/event/octeontx2/meson.build @@ -20,6 +20,11 @@ if not dpdk_conf.get('RTE_ARCH_64') extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast'] endif +# for clang 32-bit compiles we need libatomic for 64-bit atomic ops +if cc.get_id() == 'clang' and dpdk_conf.get('RTE_ARCH_64') == false + ext_deps += cc.find_library('atomic') +endif + foreach flag: extra_flags if cc.has_argument(flag) cflags += flag -- 2.22.0