From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 103E241E92; Tue, 14 Mar 2023 17:30:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DFBAB40F18; Tue, 14 Mar 2023 17:30:03 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 77CD440A7E for ; Tue, 14 Mar 2023 17:30:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678811402; x=1710347402; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=H0ACJdg1DImB7d19RqeQWI+0OAQsYwwca2D5SIWciqE=; b=hopftHkGNz9ryT5/tqhRYqSrHvz23H3XPsDoUCdlY+rSwiehWY7blWJG 2fzs3PgMgCUQcJcUG8V5nhBbEQ3wyA+zkaQLFjRgdSLh2r2WPUm8sJeSb KrxKGwT0oTKj9p6+wm3UZJ0JCFBaCzMqDyXhS+EIBEtBYE2j+vHe4QLEn vhPNizhAMRh1GsKYtsHcJSbvCBH/bi66IZsUbqFZ1b6aXqapFmmTvfOny PLIWBNK/J/jhtm+cXpnqXNBk/mwpIHAzNJqIUB+LJ3iuIXGXu+K5PQdY+ ha5HVHEaS1i+HDKysYwfjyBWNVL32NBomI7xTMkpYm79+hIPdacOgq9YT Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10649"; a="317872803" X-IronPort-AV: E=Sophos;i="5.98,260,1673942400"; d="scan'208";a="317872803" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2023 09:29:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10649"; a="853269505" X-IronPort-AV: E=Sophos;i="5.98,260,1673942400"; d="scan'208";a="853269505" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga005.jf.intel.com with ESMTP; 14 Mar 2023 09:29:58 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 14 Mar 2023 09:29:57 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Tue, 14 Mar 2023 09:29:57 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.40) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Tue, 14 Mar 2023 09:29:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k0TGAtHk5Iv3KxsbPojlX1m0kU4mgCTxU91vrA+R1r60kEGQUWnrEEt7xoaz6v5yDYofSehesvSV+wLsEx8/0EqjqdXbfylQ915sVts5DGHsptUv1S2hv4hDd93zYqTN72UKip1tpoDe08c0rVisS+9VwktAl91IaX8+aYaN4oQLQxMGiO4x0ic+piRCAmVDhLTac08Z+3Iq4djYodpfMB5rVb8qD0H6jDtq0ElPBl5l89flDPknm8K9zDstAEHtD75N2jk8ooaz/gWCPDy7mlGlExZhsYsk2gbj1IgfstM/Zroc5D8jhHL3vztiUkThvR87oNLj0n6zgST4Xfu43g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=s03qlgM3ukFhI4NvREc84ehzsPTmZn5wIXyHL75bPPQ=; b=AHiPhV/6tbsORnHgGqyBItAmE1muNKLxW709psVlvl8msMQRgCQqQpGrbjjwSzD/tJ1MKgZP0l9yqu4U3TNhPO5gsSnpfOVCdfqR3c2cKR4kzcCwx7mX0jrhMeV5IxUoXRhNfw6EK0kaI4WgC+OQcLY8CFxlCU1ka3jnMlJtxfZFrDWXygmWAORHeVEP0dPjxJ6jQMQLGxHZgVqbrP1qIsIMzHMligkOwBbGGB/rB6od4zv+KDaZVlxBTAXuGoa4wMtQS3DzgBEGBBpgfZ4w1jUnC5M8kbHFnyY8jjXqZ1vwVADn7NnRnqf71W6/CIYcntnYObqPoYVyIcMyQtPTAg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by CH3PR11MB7275.namprd11.prod.outlook.com (2603:10b6:610:14c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.26; Tue, 14 Mar 2023 16:29:55 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::18d0:ac53:aa1d:d19c]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::18d0:ac53:aa1d:d19c%5]) with mapi id 15.20.6178.024; Tue, 14 Mar 2023 16:29:49 +0000 Date: Tue, 14 Mar 2023 16:29:43 +0000 From: Bruce Richardson To: Mattias =?iso-8859-1?Q?R=F6nnblom?= CC: "dev@dpdk.org" , Mattias =?iso-8859-1?Q?R=F6nnblom?= Subject: Re: PIE static library builds Message-ID: References: Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-ClientProxiedBy: LO4P123CA0386.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18f::13) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|CH3PR11MB7275:EE_ X-MS-Office365-Filtering-Correlation-Id: ee45a586-319e-441d-7afb-08db24a954a0 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5L5KtdY2GEI0Xi7JdhdQeeT8D+UmGPaNhcO4T2I00Fq3JQncM4T71ZsSr+0WlgvzbjhCA/gMD80N58oyFuClYpwhXRegY0cvomleO2KSLoEqZ9/6LhbyLtP1nSoDxEBE5yAyqj7s9l8at7VrbiA8TbJ2J/4D7XQSKBOimHgGD4tWIhlq59I1xJmDYWaLDY3QTRjAP9xPzu5kEoehik5mO9jmXjahdrYekq+qWDkeZsIeh8CMC8oT+dwFkbk6fJyRMdfhqfq/CszcK6d8E/OoXGeS9WQ1cLQ7CMyOjUaz9vnoGfnSXMfTgrgcN7PJNHEazWBxcMZZdqB7kvZ5WAywCnqakMK3rWa13ihTAFFV1AcBdU+VsC08/ThH1Ca/axZGPtXAC6xqWDza1FhDYhVrI7MNf1jZTRngfsqqiu9M3IdfOK9gpH2ybHanDXjU33JCKoQNlN0ysJymgT/3UNsqMf2C7TbfeFEA12berSwF+1aTEstPcrzesEsciaNJ9Rzje/5YHn/0xQieiavT9dcCP5miSb0fhvSKPKcr0Q+jjXLvdTr11+pRpH5w/3h4lTt0/BbJvguHcI8RJdQxsP2aQk8VjAc4khjplo6NwPTacXqVfbH/jT35kWEbKkrJYuxb/KkqAERfS1X8N5Sm0EfciDprL/eqwg8ozbio/Sv2UcdE2E6Qq+WQHFbbQ1K+DrZq X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(346002)(39860400002)(376002)(396003)(136003)(366004)(451199018)(316002)(54906003)(478600001)(6486002)(5660300002)(2906002)(8936002)(4744005)(8676002)(66556008)(66476007)(44832011)(4326008)(6916009)(66946007)(41300700001)(3480700007)(82960400001)(86362001)(296002)(38100700002)(186003)(6512007)(6506007)(26005)(83380400001)(6666004)(67856001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?Q?A5FmrxADqWVCETlpJVr8b/UDYrwnFieueJ2xT5Sbamb/N34FbSTGqujdKw?= =?iso-8859-1?Q?FQXtZw/TAWVdeMtCJrD+8k1VU3yJIcbU8RhajurDkiCFknq7Hatce7TcBH?= =?iso-8859-1?Q?aRxHW+q3cdE+ZmqkNBLIxwLpcs8TbD4IhE85aDOXfWPHcmOAE8QvlVQT+8?= =?iso-8859-1?Q?pBxcVMe2iBKHMKu9TLDPLII+AJg2hi67kLEMSQzK8EaRKacdYrfVDMvDFD?= =?iso-8859-1?Q?hTGOTKeEcpyFZWstixAEYhTeG+DACs2z9Rm9Ks4XyUD0qMK4H5jMKMIgmu?= =?iso-8859-1?Q?+XzPDoQjaa2WibVKZVwl0G+sEIp5/032hyzhI2VrTI2XvjtFJyJIYd2WTA?= =?iso-8859-1?Q?nXW9aa1TJYiRSHpeqUEFlvDBOBXmCyMEFXzl3MdqnKFUHOxmBByYysXPps?= =?iso-8859-1?Q?o4V7bfI0EYIFbUXWFIua5tFF7h2W5LdqgWm/ZHpD4p8rDjochPT7nDqtiR?= =?iso-8859-1?Q?FbvEwGbAASFw/RYkQyKCB0/+91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?iso-8859-1?Q?fT4R0sWShvS62HW+fZWf5l/5QGeTVXUn19Obm6X8wf88PQpsp5l9RJCEPI?= =?iso-8859-1?Q?VAqEuP3m8DG0EyqO4HJjrQxNA4A7bQqxg0KQZq5aE7tYLgn1rXF0H2JMmX?= =?iso-8859-1?Q?Cj+6cUHS00yhUWdX+3s5RxX59vcq9O05Q/XU9Yvg/jvr3M67H0n9IZ1m70?= =?iso-8859-1?Q?JDPjcOp8jyQ5egrlyLZ3VoDR/RFe/+2+MMH0VaMiKGt+ANcfxwduciDANG?= =?iso-8859-1?Q?RIHC1VDvnClTb1AgmIujezor9YB9hEPsTorD1sQd80CPRoXeVeP2utEA?= =?iso-8859-1?Q?=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: ee45a586-319e-441d-7afb-08db24a954a0 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2023 16:29:49.2496 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1eDseQETWrerzTw1sYr2FZTNTod5JMXTQMURK0DgQpWn5Ig7IssSr+AzONnDV7H4nuFqdl/pIvb4aXewPv5FkrGm+h3zBVBsScSbtxuSz34= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB7275 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Tue, Mar 14, 2023 at 05:22:02PM +0100, Mattias Rönnblom wrote: > Hi. > > Is the "b_staticpic" meson build option supposed to work with DPDK? > > Setting it to "false" (default is "true") causes link failures on Ubuntu > 22.04, with GCC 9 and 11, on v23.03rc1 and v22.11: > > /usr/bin/ld: lib/librte_eal.a.p/eal_common_eal_common_errno.c.o: relocation > R_X86_64_TPOFF32 against `per_lcore_retval.1' can not be used when making a > shared object; recompile with -fPIC > /usr/bin/ld: failed to set dynamic section sizes: bad value > collect2: error: ld returned 1 exit status > > Does something per-lcore/TLS-related require PIC builds, even for static > libraries? > I don't think that is the issue. The "issue" is that DPDK always does both static and shared builds from the same object files, so without -fPIC the shared library parts of the build fails. To support not using staticpic, we'd have to disable building the .so's in those cases, or each C file built twice. /Bruce