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 E8FD541E92; Tue, 14 Mar 2023 17:22:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7BAB340F18; Tue, 14 Mar 2023 17:22:06 +0100 (CET) Received: from mail.lysator.liu.se (mail.lysator.liu.se [130.236.254.3]) by mails.dpdk.org (Postfix) with ESMTP id 2654440A7E for ; Tue, 14 Mar 2023 17:22:05 +0100 (CET) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id BC44DE809 for ; Tue, 14 Mar 2023 17:22:04 +0100 (CET) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id BAED1E33E; Tue, 14 Mar 2023 17:22:04 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on hermod.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED,AWL autolearn=disabled version=3.4.6 X-Spam-Score: -1.4 Received: from [192.168.1.59] (h-62-63-215-114.A163.priv.bahnhof.se [62.63.215.114]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id B4AACE808; Tue, 14 Mar 2023 17:22:03 +0100 (CET) Message-ID: Date: Tue, 14 Mar 2023 17:22:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Content-Language: en-US To: "dev@dpdk.org" Cc: =?UTF-8?Q?Mattias_R=c3=b6nnblom?= From: =?UTF-8?Q?Mattias_R=c3=b6nnblom?= Subject: PIE static library builds Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP 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 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? Regards, Mattias