From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM05-DM3-obe.outbound.protection.outlook.com (mail-eopbgr730044.outbound.protection.outlook.com [40.107.73.44]) by dpdk.org (Postfix) with ESMTP id C87BC4CC3; Fri, 31 Aug 2018 19:11:27 +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:X-MS-Exchange-SenderADCheck; bh=Hbpl6BjuOlpcenzEA1u7ejamGWvmacoH4K413dMI6jE=; b=i0U2X2lIC89r27Mm/5pO2Eyk+Qp2cTYgZ9uVjZgvkbeJonXlihsFN42gW5UHEFjKtwqzwUxY5hEz+MrgOcHOES4Yq19N8+Syy2tLVIThNL9TE+Sa0zc22zzBWU+7CC30zJtry4WbUpuC19FquokMW+ZtDkgqIsC8LGBUYozJBk0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (115.113.156.3) by BYAPR07MB5000.namprd07.prod.outlook.com (2603:10b6:a03:5b::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.14; Fri, 31 Aug 2018 17:08:49 +0000 Date: Fri, 31 Aug 2018 22:38:34 +0530 From: Jerin Jacob To: Ferruh Yigit Cc: bugzilla@dpdk.org, dev@dpdk.org, Santosh Shukla , Ajit Khaparde , Thomas Monjalon , alialnu@mellanox.com Message-ID: <20180831170833.GA17435@jerin> References: <51a2b556-8ffb-74bc-a4da-42edbc554d00@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <51a2b556-8ffb-74bc-a4da-42edbc554d00@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [115.113.156.3] X-ClientProxiedBy: BM1PR01CA0084.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1::24) To BYAPR07MB5000.namprd07.prod.outlook.com (2603:10b6:a03:5b::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f56656e5-893d-46c6-7cb0-08d60f646d8c X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB5000; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB5000; 3:wtkrdlA4PuZ4nFOFEYITE5pPzAF+WIAkw3t84OzHtd/fGN3ftqmg7pXts4NQiVR80zEV0iYioVk9gwzq2WAl3vPzCDnQkj/D622fuXu9h9mClqWOiXbEQ5IVnDaFlPBHz7RBgk1gOB4MNfCVKk8/CD8ZSRCk95CbCzR9uUinAmCiLNtVB2ydUc8GeOokba9/dRtgPK2eQ6JeArI0NQuUVkurDjxR4QLt/v936NoHYKOL8jhIsMT3a00RVSYmqc2W; 25:2RIU4TSIzAb+q1DIwTCeX+Pyner9aeaRuUGO3ui3wDW+VXwIjqRZzlNfQGqiNPveBH1Js6G5MgRlYUu6Q5hzBX+zkYP2/L3JurJGMi6rM1nb+DKNwdkf4SBKzCcuzlm7HOOgv4rgAlMscS4crQ0d55cOoBqR1rNB+9Olz4lI/d9XAv7UvBAjFEs3l/9IJN2CWIwQkltWbwAdacGFPSRHrWRxINoaiwiWgiq/FTEiJr3vlKurB5D6vOBZTzwvQLQxDKK4ySbjgcZHlJj0/1ZgEYc/uSW7ZoM9/OT3PsAOVQYShTUvQ3JIXAMpyInu1JYwHXfTsPDGGz/eqAShYyJF0w==; 31:oTno1+XFsDlfxnjmNiVjuBqwa3UkRLo9jBRyuwMRLfgZL75XZNH+4F/T4fuIuDYf2Mc9mpnaqg2wmlY2klJIcwBHNdZ6O89wxua7tC0pHJ1ipdHjO0GfmRrRWDpLJj8vnE+AO4L+Htt71oWuIJ6h8s3DuKCRXCrPabZ+geYPTH7DjhN25HMRRWY7yTpCcVKH/1RBkBHLT8XHSDWTAU7fzS8i9GJYaZOyXmBsgOWwzHc= X-MS-TrafficTypeDiagnostic: BYAPR07MB5000: X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB5000; 20:Fjf0AOuZPsJhQiFbNgl0eSIa0HDhOSr73o4CdImW9TjjNigM1aq/OPpn2M75NO8ezMXQDrsJYC7mLWqQHm6z4fmpW9+D9RRNxEafV1UjdaJ9AIAuvdzWX4Hq3Ieps0jL3RQvLDzT2EPL2fmmgnaZJXGq2JvlqRU9aY46IOHIvTv6v0izo6JR2tpjg8iwgabdYSpE9EXXUmcHXDLC6GFdbewSNcZrsjVXOxc49Kj36HANDxipb5wf2pY3xMA1wMSRY+LGNqns2qu7yVQGuB9gUi52M1kgiYiLsI3SnwLaBf0m5xhCN/buxvyKfXull3DMtEQooy2/FJaNJkCSEdrTefT6q7p5vtcHdWeW4mpsDhT89tUnfJO4MllmZKLX5wX9rAzyXp/FiOICLpdzgivFAIbM0zTx4vjPEfA62zG6eyntZc/YWQffA23NsBT4QVaxRWjedn5/IJwVWPIm+SoOheSW6VRYiqYGmh4cSUl+ZRXw1CSDmrSI8y6bX9nLZkNmCOdZ8Cz+CVdta6gh5kfBgIRktpsrCNKUhhAAlX42uBHzQUo90hXKEs/Bq99206Hm69E4pIzAOfQEyLUuxX6alW9QYpAmh7ixyJ6qep25ylw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(208715162771679)(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016); SRVR:BYAPR07MB5000; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB5000; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB5000; 4:+vpyHXT3s0OOIPffSRe0HT4CbE1xUazG/Ji4olensSneh9VrQVMwlxkngKcH4R8E1qrjOMJmEyZeIcpe7PSlHvZlPASm8O/b6asDoLFSx1ICQchyT0qZYvzSa56poiOXJEJUm1EBt20aishjt6a6hBGojaMBR4BCrdSRaB0gcli3VaYH5PWRKJocglhC8dETd+K7YJlr/+9mQYByKfWcJ6k3Wvc7HxKxUAnUmlhkwUnFISzX+lqoBWLb5oBQ5L2WMJIH2DPPCmCmpkHryr0bY59un70ygqywkhHTAOMGbBsuu7nQm+9y2Kpkb6dcuYeye/Je61Crxq8GLyphkvMWadFaetaJTHNv7ORYIk5HD/4= X-Forefront-PRVS: 07817FCC2D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(346002)(39860400002)(376002)(366004)(136003)(189003)(13464003)(199004)(44832011)(23676004)(316002)(55236004)(47776003)(229853002)(186003)(53546011)(72206003)(966005)(52116002)(42882007)(105586002)(106356001)(33716001)(478600001)(14444005)(53936002)(476003)(305945005)(6666003)(7736002)(16526019)(11346002)(2486003)(33896004)(26005)(5660300001)(6916009)(486006)(6306002)(54906003)(446003)(66066001)(9686003)(386003)(52146003)(956004)(58126008)(55016002)(2870700001)(81156014)(81166006)(1076002)(4326008)(6496006)(76176011)(25786009)(68736007)(50466002)(3846002)(6116002)(2906002)(6246003)(33656002)(97736004)(8676002)(8936002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB5000; 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: =?utf-8?B?MTtCWUFQUjA3TUI1MDAwOzIzOjNMdG1GMkV6R1RYSVdtYzc2dGZOLzJoVUts?= =?utf-8?B?Zk91M0NMT01nakFGYkVlamk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dH4USMxL0KtmjhPn6IBg==; 5:u65yGaZTl0zZ+/r2tj4X0ASJBFkCq+PA4xaRd4TL2KJ2sqFMJTxV7h7x14hu4upjz26amwvq8zjBq2c4Qcv7fuQiDlVfEwPzGypbOAQrSowf3p+Edc6Bt82EEsCglAh7q+U/oa8DyJ6Ykl4UC0MgyhLIWSYMNp5cYGub03ujqyE=; 7:B7cyqU3tjADWpfYboC2TdKxbFq9lZNlcsmssbKd9sEftwVl0fIK7OtpmPExSU1H//IJM7FfxPzjAw9ZLc719qrNTe6CAA/XMjxfmoa0Xe+YGPXTM7l9vSX4RlJ9IgQ8xilJnpz8yEaL65W5CEXdNPkDDjq3otzryy5/Lf2t6CPqnQ29XzRTyLXGbM1wSJ+0L0Q1wEyQ6NPH/qsNIO9AqWRuM7i8fri4lSeEjK1lY+efLYxVkT3HSBsajlUcuUw7x SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Aug 2018 17:08:49.1229 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f56656e5-893d-46c6-7cb0-08d60f646d8c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB5000 Subject: Re: [dpdk-dev] [Bug 87] build dpdk and example with different gcc version issue 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: Fri, 31 Aug 2018 17:11:28 -0000 -----Original Message----- > Date: Fri, 31 Aug 2018 11:04:06 +0100 > From: Ferruh Yigit > To: bugzilla@dpdk.org, dev@dpdk.org, Jerin Jacob > , Santosh Shukla > > CC: Ajit Khaparde , Thomas Monjalon > > Subject: Re: [dpdk-dev] [Bug 87] build dpdk and example with different gcc > version issue > User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 > Thunderbird/52.9.1 > > > On 8/31/2018 4:28 AM, bugzilla@dpdk.org wrote: > > https://bugs.dpdk.org/show_bug.cgi?id=87 > > > > Bug ID: 87 > > Summary: build dpdk and example with different gcc version > > issue > > Product: DPDK > > Version: unspecified > > Hardware: x86 > > OS: FreeBSD > > Status: CONFIRMED > > Severity: minor > > Priority: Low > > Component: other > > Assignee: dev@dpdk.org > > Reporter: xuemingx.zhang@intel.com > > Target Milestone: --- > > > > we try different gcc version,results are as follows: > > > > 1、Compiled successfully > > # gmake install -j1 T=x86_64-native-bsdapp-gcc CC=gcc48 > > # gmake examples -j1 T=x86_64-native-bsdapp-gcc CC=gcc48 > > > > 2、Compiled successfully > > # gmake install -j1 T=x86_64-native-bsdapp-gcc > > # gmake examples -j1 T=x86_64-native-bsdapp-gcc > > > > 3、Compiled successfully > > # gmake install -j1 T=x86_64-native-bsdapp-gcc > > # gmake examples -j1 T=x86_64-native-bsdapp-gcc CC=gcc48 > > > > 4、Compile failed > > # gmake install -j1 T=x86_64-native-bsdapp-gcc CC=gcc48 > > # gmake examples -j1 T=x86_64-native-bsdapp-gcc > > error message: > > ================== Build examples for x86_64-native-bsdapp-gcc == > > bbdev_app > > CC main.o > > LD bbdev > > /usr/local/bin/ld: cannot find -lrte_common_octeontx > > collect2: error: ld returned 1 exit status > > gmake[4]: *** [/root/meijuan/dpdk/mk/rte.app.mk:365: bbdev] Error 1 > > gmake[3]: *** [/root/meijuan/dpdk/mk/rte.extapp.mk:15: all] Error 2 > > gmake[2]: *** [/root/meijuan/dpdk/mk/rte.extsubdir.mk:22: bbdev_app] > > Error 2 > > gmake[1]: *** [/root/meijuan/dpdk/mk/rte.sdkexamples.mk:26: x86_64- > > native-bsdapp-gcc_examples] Error 2 > > gmake: *** [/root/meijuan/dpdk/mk/rte.sdkroot.mk:96: examples] Error 2 > > > > Hi Jerin, Santosh, > > This is because rte_common_octeontx is not compiled when gcc 4.8.5 used [1], and > when compiling examples with gcc 5.4 it assumes rte_common_octeontx compiled and > tries to link app with it which fails. > > These specific compiler version conditions shouldn't break build for others. > > To assign defect you guys, can you please bu sure registered into Bugzilla? I assigned to me. It is more of DPDK build infrastructure issue not the driver issue. Is it a real use case ? I don't think, there is a straight forward way to fix this. I think, I have two options. 1) Have something like below to detect the presence of library file. it looks ugly to me. Do we have any better solution? diff --git a/mk/rte.app.mk b/mk/rte.app.mk index de33883be..f998141c7 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -7,6 +7,16 @@ include $(RTE_SDK)/mk/internal/rte.install-pre.mk include $(RTE_SDK)/mk/internal/rte.clean-pre.mk include $(RTE_SDK)/mk/internal/rte.build-pre.mk +ifeq ("$(wildcard $((RTE_SDK_BIN)/lib/librte_pmd_octeontx_ssovf*))","") +CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF=d +endif +ifeq ("$(wildcard $((RTE_SDK_BIN)/lib/librte_mempool_octeontx*))","") +CONFIG_RTE_LIBRTE_OCTEONTX_MEMPOOL=d +endif +ifeq ("$(wildcard $((RTE_SDK_BIN)/lib/librte_pmd_octeontx*))","") +CONFIG_RTE_LIBRTE_OCTEONTX_PMD=d +endif + 2) Actually rte_common_octeontx does not really using any of the fancy feature of gcc 4.8.5. There was bug in gcc 4.8.5 on aarch64 which cause compiler to emit "internal compiler error". So it a bug in the compiler not in the driver. I don't think, any production DPDK system is using gcc 4.8.5 on arm64. So one option to revert 4f760550a0935632cf262d6955ac4d25bc260545 change to fix the issue. Adding Ali Alnubani for his comments as he was using buggy gcc 4.8.5 compiler on arm64 Thoughts? > > Thanks, > ferruh > > [1] > https://git.dpdk.org/dpdk/tree/mk/toolchain/gcc/rte.toolchain-compat.mk?h=v18.08#n84 > https://git.dpdk.org/dpdk/tree/drivers/common/Makefile?h=v18.08#n7