From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id lTbGFxhtPGE+DAEAgWs5BA (envelope-from ) for ; Sat, 11 Sep 2021 10:47:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 0AnhEhhtPGGSdQAAbx9fmQ (envelope-from ) for ; Sat, 11 Sep 2021 08:47:20 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5E2B41BC12 for ; Sat, 11 Sep 2021 10:47:19 +0200 (CEST) Received: from localhost ([::1]:45554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOyfO-0000FR-Gm for larch@yhetil.org; Sat, 11 Sep 2021 04:47:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOyf8-0000FH-2c for guix-patches@gnu.org; Sat, 11 Sep 2021 04:47:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56237) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mOyf7-0003Yz-Rm for guix-patches@gnu.org; Sat, 11 Sep 2021 04:47:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mOyf7-0000eB-QF for guix-patches@gnu.org; Sat, 11 Sep 2021 04:47:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50517] [PATCH core-updates-frozen] gnu: psm: Fix building with GCC 10. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 11 Sep 2021 08:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50517 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50517@debbugs.gnu.org Cc: Felix Gruber X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16313500172469 (code B ref -1); Sat, 11 Sep 2021 08:47:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Sep 2021 08:46:57 +0000 Received: from localhost ([127.0.0.1]:39550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOyf2-0000dl-Ue for submit@debbugs.gnu.org; Sat, 11 Sep 2021 04:46:57 -0400 Received: from lists.gnu.org ([209.51.188.17]:48962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOyf1-0000de-9p for submit@debbugs.gnu.org; Sat, 11 Sep 2021 04:46:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOyf1-0000F4-1f for guix-patches@gnu.org; Sat, 11 Sep 2021 04:46:55 -0400 Received: from mout02.posteo.de ([185.67.36.66]:48657) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOyey-0003PD-Lo for guix-patches@gnu.org; Sat, 11 Sep 2021 04:46:54 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 977F4240104 for ; Sat, 11 Sep 2021 10:46:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1631350009; bh=lWqwhEk+6jgy6/tJwqwTq1/YKeh60th7v7TMiruXx54=; h=From:To:Cc:Subject:Date:From; b=MA4fb3hjJvm4OVsZAAqiuVV04rz0TcOoGLVwX0h9GXlAisKZUMaRtbB3kTGnp9x7P S14SysTqGc+UKv4A6Dnwb+sQ6fPDvuRi6fSSOrDJwCFJarhuCyAPDhZRA/L7G2OeF5 RGubP8QPRVyTNNh9/WDZF/XIbhnw7qFtR5GgEAXu/4OohkwpfnvhfnaBlYKdYd7GhB VJyIxQtPuuC8bvUe/bCiDMg6gFJXWZuB+OQudIe5hcD0sV8PG8g725amhGZClXRfNY FVxalTO4zuTd1tLidX+S/brBGsDz9hDX7wDp2eNfc2cyPDooJZuQr+++LHUU508osP DwNud+H9H8fTw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4H65vX1s01z6tm9; Sat, 11 Sep 2021 10:46:47 +0200 (CEST) From: Felix Gruber Date: Sat, 11 Sep 2021 08:46:34 +0000 Message-Id: <20210911084634.6997-1-felgru@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=felgru@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631350039; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Vm/STLubPdD9D8nQu8RHLNSV9YnS6lKLoOkdVUoycm8=; b=Kh6v4lbHMCyd3rkm7l3wmeYxk+JqkVRms1DBPaCAJZgLoepEFB+RjZUWsuC1LGRTYX1dWk HwT0L5kUtGEtbGii6pkmfTOUpbTQPfPGxSlqMAYRf2HEj+WRmFViQ+KbCN4mJh9K5niSw8 aJmMoXJNyx45PxlMvWJM2+nqL+pJqRgyqUpWbafwH0ef2hiyURXm7m9iE2UFDsbuCJb8xC KzsFVvGHgxmMLdeMrcjfSX7+QHiRJVDlnDs1dH1rO5+bFfgqZoPs9sr1yiGPXt0nTQdBUw B3JTinW4RK6phb5JBpnZ+Rn4ogUGHt+Nux9kgqly9JswUK38MHqLCfyjhGA6cQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631350039; a=rsa-sha256; cv=none; b=oOEEpJi96SdZPN22oW0k23AhaWu1caDbECelxWrmzRvOLK2BGM7uVw0EHZQis5OZ5f7+U0 YCIf5J3KUeaUP4Euo7eYo20VVNxxMOL6hIlSamx3KfGmc7941o3sP361O+n3yROtkPEV4o wF0OCTCnAYxxKtWGgY6s0IviY3kSakTZ+/Lzo9AAcORCzBhlZR3jwh1CivbkmTb91ZjMj8 n9gk3RsEBULTsK+QQj7KSGMUrdsPtEa8Ey3576HAx3zfY/Nwx2j2pp737okKrR8qhxJUSg tpxegn73DFI24S1FJxo1wm52b6vBCF1H8tw/b9W6kiWqPpEEMCKloVCt7t7cWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=MA4fb3hj; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=MA4fb3hj; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 5E2B41BC12 X-Spam-Score: -0.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: FKc5JALpJamW * gnu/packages/linux.scm (psm)[arguments]: Pass '-fcommon' to CFLAGS. I had to copy all the CFLAGS that were originally defined by the Makefile as they were otherwise all replaced by '-fcommon'. --- gnu/packages/linux.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 1305a80f56..122c2773fb 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -56,6 +56,7 @@ ;;; Copyright © 2021 Maxime Devos ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 Sarah Morgensen +;;; Copyright © 2021 Felix Gruber ;;; ;;; This file is part of GNU Guix. ;;; @@ -7256,6 +7257,11 @@ libraries, which are often integrated directly into libfabric.") (arguments '(#:make-flags `("PSM_USE_SYS_UUID=1" "CC=gcc" "WERROR=" ,(string-append "INSTALL_PREFIX=" %output) + ,(string-append "CFLAGS=-Wall -fpic -fPIC -D_GNU_SOURCE" + " -funwind-tables -O3 -g3" + " -DPSM_USE_SYS_UUID" + " -Wno-strict-aliasing -DNVALGRIND" + " -fcommon") ,(string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")) #:tests? #f #:phases (modify-phases %standard-phases -- 2.30.2