From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0049.outbound.protection.outlook.com [104.47.34.49]) by dpdk.org (Postfix) with ESMTP id 3B33F5A6A for ; Thu, 11 May 2017 08:00:04 +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=TLOdgZlec7CIzf31Yf6PXUxgGCiodf8YVRMbWu2fSe8=; b=X4FaCcQGayZX2d/RSeXEPZpawx1o1m+nqL3PDraNAbmAk0UZU89KrZasUhvAde1k6UljCvpk+GPynSGECPNeT0lC+fkdC5YPEjRr5JDIfPI97ZQJZzeGhrT0o1ZsvY5dZvAyZNsk3mXgHhsAFwhejbkhY+o43ZCKAaxJUJtpYkQ= Authentication-Results: caviumnetworks.com; dkim=none (message not signed) header.d=none;caviumnetworks.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin (111.93.218.67) by BLUPR0701MB1713.namprd07.prod.outlook.com (10.163.85.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11; Thu, 11 May 2017 05:59:57 +0000 Date: Thu, 11 May 2017 11:29:39 +0530 From: Jerin Jacob To: Ashwin Sekhar T K Cc: thomas@monjalon.net, maciej.czekaj@caviumnetworks.com, viktorin@rehivetech.com, jianbo.liu@linaro.org, bruce.richardson@intel.com, pablo.de.lara.guarch@intel.com, konstantin.ananyev@intel.com, dev@dpdk.org Message-ID: <20170511055728.GG3057@jerin> References: <20170510101643.30556-1-ashwin.sekhar@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170510101643.30556-1-ashwin.sekhar@caviumnetworks.com> User-Agent: Mutt/1.8.2 (2017-04-18) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BMXPR01CA0045.INDPRD01.PROD.OUTLOOK.COM (10.174.214.31) To BLUPR0701MB1713.namprd07.prod.outlook.com (10.163.85.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f9f4c581-f391-4c73-ea03-08d49832f664 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BLUPR0701MB1713; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 3:KzXPRfb7aCQamSs1pKJO7IGPOgpKkD7JhLu2E4ZLBDcF+LpRN+H8HpWzDzRmZFlq0qMgMOAR+wLd0glNBqWkVPmF0K3Rtb/5DH1bDY/sX4dvyTRawwoi1/SxrO4hzE1dSgv49EzNosno/l/xVfossy4tHUr+OijalcDBdLZPzh9VdZgAtg5k2A6CaRmNCZzdDwAURYZ0bAeUblMmJfH3BgtrKLFxaCMvNVeQVUoToNIXJrPblTunzTncB+EDY1SzIoCoa7u40bXtlMcZIlzmTp13t85G2/KtW2cDe6MyZ7POoVpduhNnGwFQWK0DVsebztpi6GeqaY1+WAO6ey9RGA==; 25:OmkP9IO6Iq6hHW+fvg+Lu/kwVSqVCKiyoC8A39UGhbmLXDK2kDv35AHTn6545oEqFhXCBYNIMLHqwwVX0z21J+JMKqt40WitXCrwevR+8yULkd6nPqFTDSZXY51NHapCqel77qB3pKobP4zgvB5l9yCyVABYzAfTGMm2tyCi//yQE9wJu9Q/qcb7AxMElNyt3T2U2NEJqHCizpDnalMslw2mxHazVgtjY5CNUFhEKzWV3s5Zwx2Uy+8pf7QAu2qFAYnDLObf/mVo2gbi/EvMfmc5nllmPOU+AxjCGMzy/sZmArkTirf3pi6WFxBD23weifBv0kwpvYrUFVTNDkvVQnRemaSlid/9BxX2ndMmEN8iAeQ+YhKt8YF6el474FUmhfLiCEWfHXytr5MBnlaO5T5zYGpoqGIzrUelYCKOKTJLEI0eArhT986aofTXJ49qtKxyDKUPLB7Yj19YMOZRO+etK+tFegp43hhhGG4pJ1A= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 31:UAvIe2tquoQ6RNxjGudNXrm/sDWjet/Yn/siw+uIoMw+Oca3pVcZcRGBn1I3c7DJPpUj3mYevuuoeU4tlPV9p/MZ62PCYfgoAzruUTNj07Hi7yqZiuUDkR3HSeWHeCR/AP5Ic/uDm+dVGFQHkuLStXsBHTVH0g+1sCu4HYfyjLX1adFVpZgqGlLSDrCf8pKRHb9L6dYmpGDs4wsxL+cETGfnXU4tsx05+IplWWqUG7fkgmIjqB1fdRlx4HFl3bzQD1LCGPiBE7D46/u/Qs7W0A==; 20:GB0wCHCppD5S7YSlpG1utVuF9S3vqeW3zXUyRQH0nIRolTeNb5Rhd6T7NXSI76ukGBl+zQ+8T9MNzQ14Ue0j+OZchJ3uiliwza7H1TDnriWJjnobLeKdVmoXJmMVOAtCdDRa6nuTSZl6MDO5P2dQm7/yeQvJZSbqziB9Y9I8Wht5M1liSxK3NCIEdnqi+cL8inwefZDL2R30lPlLTXvVY6SGk5Mcf+g/g5jY4xjjm0uiofg1LR9lsvej7kGWfF77UUM1qcGdJpMdGKJY7UcF0q9f4kYSyRPP4tQwNxMOEV6q1WGDDHANc4fSJ43qr4fxCyeebtL5DZzgOOBR3m/yWBuyQ9HHiD4rXHq1ppi7lTpv5lBeJvVbhxP7+Tp+RrlugpuaTfhsTAA38EW3ZVc7eAubWlecAHX2Lg/4ihFLKf1BkST2qq+zpL8Y75BoW7JdF6oMsXyPIe+bxZTkitSfOtcGha/TVrQ0UnPou4RSXbLLTCiN4yOpZA3xVyWpUBpZ+2nN1PeKXK+CibmQq7QkGTG8r39HpyBQ/vJ6GkIFlvfGgwhVzMw+yBF+0QaHljCFTOlW69APoPV64dEJCQPskkwqBfdYpBXuBKFnfbpNrD0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(10201501046)(3002001)(6041248)(20161123555025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(6072148); SRVR:BLUPR0701MB1713; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1713; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 4:v6jpIpt8xSqPTAqR29jYZfUNCHyq+/o5vhSfaj+zOcKa7GHk2wUnUEZceP0+7+5ZjcVGcO/FMXD6TJWD0SrdJRTyfTZeKuXkoQiZEa/Pp9MCzXi+SCnEWIr8INg/7yWBWUu/wXK2YH7TYOYxtwMTqo6Uta46wUDyip5xdbtq49WrN+/FijSC9ma1U49VYWa+t0LRoF3TNp9dZBNQsUGL3mpwbRde0UmKjyV3VnqLXYMGATKp9ExgslGqpEMrG3euyQchn4AzGloDZIm/Y+ugfr1OK75YRJhK/QYxJ6cdhvLC/qgtTr3abvF0CDkg+7eE0+E8NjSFb5pBj2OEWNXV7HUxZe2HQVndNq5+1s/z7MALI9MYwIjJBUSt9J9PxYayHAZ96WkGPqeblXgPeOcFkVOHZ/g1QP4SDQDWdJ4kUKh3Cavwb0EikHfsGDmCbGTDRQBpxZXrIMnaMvtsN6hHwYIH4kcqMlwCtT59I+pkdhfNnCvKO4xsXDvjooCqjJYtjc16GE+KssffP++ZcfCmunY2GukSHZ6OhLHPHxin9R0OIukWaJsmPduShwzXABWndCzSeZfGavm49wutP5IU3S3BbttwtSH5FHk3hDJYEcy/T56MApNkkBeXIvPXSM48WgIaWUADLZgcpNjoKXdjFOyb9a1H6bCi0441XT6iKAn+b7XzR9hZlLCQiMdbvMdKKEC6GgpG+ihLZu2kF09Hn3EkE9oL7ns4hDYfQbG+qg+eJIsry8vG9yB0eFaqO5DsYlZ+6syoQImna4BRliJAzXkZkMg35iNMD5L0Af3AwlhTH5Aqj75VxUO/hC7A+bmQ X-Forefront-PRVS: 0304E36CA3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39450400003)(39410400002)(39400400002)(13464003)(189998001)(305945005)(7736002)(25786009)(66066001)(83506001)(2906002)(2950100002)(4001350100001)(42186005)(23726003)(33716001)(6496005)(478600001)(72206003)(5660300001)(47776003)(229853002)(6666003)(6636002)(33656002)(55016002)(76176999)(53936002)(50986999)(81166006)(3846002)(6116002)(8676002)(6862004)(4326008)(50466002)(42882006)(5009440100003)(6246003)(110136004)(9686003)(1076002)(38730400002)(54356999)(18370500001)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1713; H:jerin; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1713; 23:z6SwwJIHCLnxICs8F1G4MZuDbswIWK81MG8M4uF?= =?us-ascii?Q?oYtwmtq61P0jA6wgsvRST/RVvpnm7aJkpxx9hVbzkvZIrmFK+RDzlkdZ8nS/?= =?us-ascii?Q?EB/vBl73y9pYnM51W4ANQ3ZMrMG3dSBHqUGrNrDCGNIQpzGsfvILrJ4je/o2?= =?us-ascii?Q?w5638pwVhIUH5kS5RCZ87132LpjH/yaW8fXnThhaaCPXPa/c78GqXABdMi10?= =?us-ascii?Q?JaRipKlMMPotpv4N2YckzjZgGIgZjSbqc4hQtqHqQAPk1/bMZbZclL3/x86P?= =?us-ascii?Q?2JB4/pDBdX5EAK8vcbQJXFoLOpZoOTQpx4PceWTnYx69XKoVeBbNb1mrgOic?= =?us-ascii?Q?Dq3DzA2ie7SlWaa3ejHEH6+2C9j4KFI9h9Bp4t6npq/mymuMb6mkVLBz2Edn?= =?us-ascii?Q?mu4tdNyGVa6BEyPxG9PQ9rU1u3lH3clr+iuWgd5+m5t0lztgEJbtiJCkempM?= =?us-ascii?Q?pLQDZji09B+QjWlE1Yhmev88cJdDScqz1FoOn/G3kocqCZZoy9jsVY3wEtlC?= =?us-ascii?Q?ZijUPonYKarylYqF0Urlui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E4CIwAA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2017 05:59:57.9435 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1713 Subject: Re: [dpdk-dev] [PATCH 0/6] add clang compilation support for armv8a linuxapp 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, 11 May 2017 06:00:05 -0000 -----Original Message----- > Date: Wed, 10 May 2017 03:16:37 -0700 > From: Ashwin Sekhar T K > To: thomas@monjalon.net, jerin.jacob@caviumnetworks.com, > maciej.czekaj@caviumnetworks.com, viktorin@rehivetech.com, > jianbo.liu@linaro.org, bruce.richardson@intel.com, > pablo.de.lara.guarch@intel.com, konstantin.ananyev@intel.com > Cc: dev@dpdk.org, Ashwin Sekhar T K > Subject: [dpdk-dev] [PATCH 0/6] add clang compilation support for armv8a > linuxapp > X-Mailer: git-send-email 2.13.0.rc1 > > This series of patches adds the clang compilation support for armv8a linuxapp. > > Patch 1 is basically for removing the usage of assembly directive ".arch armv8-a+crc" > as this is not understood by clang. For removing these directives, compilation of > armv8a crc32 support is made conditional and is only done for machines which has > the crc extensions. Doing this avoids the need for having the ".arch armv8-a+crc" > directives in the code. > > Patch 2 adds the arm64-armv8a-linuxapp-clang defconfig. > > Patch 3, 4, 5 and 6 are for fixing the compilation errors/warnings. There is warning on LD with clang. Could you please check it? INSTALL-MAP dpdk-pdump.map LD testpmd /usr/bin/ld: build/lib/librte_eal.a(eal_thread.o)(.debug_info+0x37): R_AARCH64_ABS64 used with TLS symbol per_lcore__lcore_id /usr/bin/ld: build/lib/librte_eal.a(eal_thread.o)(.debug_info+0x54): R_AARCH64_ABS64 used with TLS symbol per_lcore__socket_id /usr/bin/ld: build/lib/librte_eal.a(eal_thread.o)(.debug_info+0x6a): R_AARCH64_ABS64 used with TLS symbol per_lcore__cpuset /usr/bin/ld: build/lib/librte_eal.a(eal_thread.o)(.debug_info+0xd2): R_AARCH64_ABS64 used with TLS symbol rte_gettid.per_lcore__thread_id /usr/bin/ld: build/lib/librte_eal.a(eal_interrupts.o)(.debug_info+0x38e): R_AARCH64_ABS64 used with TLS symbol per_lcore__epfd /usr/bin/ld: build/lib/librte_eal.a(eal_common_errno.o)(.debug_info+0x50): R_AARCH64_ABS64 used with TLS symbol rte_strerror.per_lcore_retval /usr/bin/ld:build/lib/librte_eal.a(eal_common_errno.o)(.debug_info+0x91): R_AARCH64_ABS64 used with TLS symbol per_lcore__rte_errno INSTALL-APP testpmd $ clang -v Ubuntu clang version 3.6.0-2ubuntu1 (tags/RELEASE_360/final) (based on LLVM 3.6.0) Target: aarch64-unknown-linux-gnu Thread model: posix Found candidate GCC installation: /usr/bin/../lib/gcc/aarch64-linux-gnu/4.9 Found candidate GCC installation: /usr/bin/../lib/gcc/aarch64-linux-gnu/4.9.2 Found candidate GCC installation: /usr/bin/../lib/gcc/aarch64-linux-gnu/5.0.1 Found candidate GCC installation: /usr/lib/gcc/aarch64-linux-gnu/4.9 Found candidate GCC installation: /usr/lib/gcc/aarch64-linux-gnu/4.9.2 Found candidate GCC installation: /usr/lib/gcc/aarch64-linux-gnu/5.0.1 Selected GCC installation: /usr/bin/../lib/gcc/aarch64-linux-gnu/4.9 Candidate multilib: .;@m64 Selected multilib: .;@m64 > > Ashwin Sekhar T K (6): > hash: compile armv8a CRC32 support conditionally > config: add clang support for armv8a linuxapp > net/thunderx: fix compile errors for armv8a clang > acl: fix warning seen with armv8a clang > eal/arm: fix warnings seen with armv8a clang > eal: fix warning seen with armv8a clang > > config/defconfig_arm64-armv8a-linuxapp-clang | 56 ++++++++++++++++++++++ > drivers/net/thunderx/base/nicvf_plat.h | 2 +- > lib/librte_acl/Makefile | 5 +- > .../common/include/arch/arm/rte_byteorder.h | 2 +- > lib/librte_eal/linuxapp/eal/Makefile | 4 ++ > lib/librte_hash/Makefile | 2 + > lib/librte_hash/rte_crc_arm64.h | 4 -- > lib/librte_hash/rte_hash_crc.h | 2 +- > 8 files changed, 69 insertions(+), 8 deletions(-) > create mode 100644 config/defconfig_arm64-armv8a-linuxapp-clang > > -- > 2.13.0.rc1 >