GNU bug report logs - #57954
[PATCH] gnu: clapack: Use position-independent code for use as a library.

Previous Next

Package: guix-patches;

Reported by: Nicolas Graves <ngraves <at> ngraves.fr>

Date: Tue, 20 Sep 2022 12:42:02 UTC

Severity: normal

Tags: patch

Done: Nicolas Graves <ngraves <at> ngraves.fr>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Nicolas Graves <ngraves <at> ngraves.fr>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#57954: closed ([PATCH] gnu: clapack: Use position-independent
 code for use as a library.)
Date: Wed, 28 Sep 2022 12:20:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 28 Sep 2022 14:19:39 +0200
with message-id <8735cbbsis.fsf <at> ngraves.fr>
and subject line Re: [bug#57954] Some details about why and see if there is no other solution.
has caused the debbugs.gnu.org bug report #57954,
regarding [PATCH] gnu: clapack: Use position-independent code for use as a library.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
57954: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57954
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Nicolas Graves <ngraves <at> ngraves.fr>
To: guix-patches <at> gnu.org
Cc: ngraves <at> ngraves.fr
Subject: [PATCH] gnu: clapack: Use position-independent code for use as a
 library.
Date: Tue, 20 Sep 2022 14:40:10 +0200
* gnu/packages/maths.scm (clapack): Use position-independent code for use as a library.
---
 gnu/packages/maths.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 72d5e9a83a..0c4b7ada03 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -968,6 +968,7 @@ (define-public clapack
     (build-system cmake-build-system)
     (arguments
      `(#:configure-flags '("-DCMAKE_C_FLAGS=-fcommon -O2")
+       #:make-flags '("-fPIC")
        #:phases
        (modify-phases %standard-phases
          ;; These tests use a lot of stack variables and segfault without
-- 
2.37.3



[Message part 3 (message/rfc822, inline)]
From: Nicolas Graves <ngraves <at> ngraves.fr>
To: Maxime Devos <maximedevos <at> telenet.be>, 57954-done <at> debbugs.gnu.org
Subject: Re: [bug#57954] Some details about why and see if there is no other
 solution.
Date: Wed, 28 Sep 2022 14:19:39 +0200
> ... it sounds like clapack could be replaced with lapack without any
> problems (and even removed), and our 'lapack' package already makes
> shared libraries, which seems like a simpler course of action.

You're absolutely right about this. I replaced clapack by lapack and
discarded the flag -lf2c during the build phase.

Everything works fine. I'm closing the issue.

The resulting packages are available in issue 58140.

-- 
Best regards,
Nicolas Graves


This bug report was last modified 2 years and 236 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.