Subject: bug#54619: closed (Re: bug#54619: [PATCH] gnu: lsof: Fix cross-compilation.)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 30 Mar 2022 09:55:02 +0000

Your bug report

#54619: [PATCH] gnu: lsof: Fix cross-compilation.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
54619: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=54619
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#54619: [PATCH] gnu: lsof: Fix cross-compilation.
From: Mathieu Othacehe <[email-masked]>
To: Brian Kubisiak <[email-masked]>
Cc: [email-masked]
Date: Wed, 30 Mar 2022 11:53:56 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello Brian,

Thanks for the explanation!

> If you have binfmt_misc + qemu set up on your machine, you may not see
> this error.

Oh right, that's probably why I didn't see those errors.

> The solution is to point LINUX_CONF_CC at the build machine's compiler
> instead of using the cross compiler for this step, which should build
> and execute the test program natively.

Pushed as a006b7d34757dbafc0d71d875613e6df521efe51.

Mathieu

Subject: [PATCH] gnu: lsof: Fix cross-compilation.
From: Brian Kubisiak <[email-masked]>
To: [email-masked]
Date: Mon, 28 Mar 2022 18:37:28 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/lsof (lsof)[arguments]: Add LINUX_CONF_CC environment
variable.
---
 gnu/packages/lsof.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/lsof.scm b/gnu/packages/lsof.scm
index 98bcdab468..f872eb8de8 100644
--- a/gnu/packages/lsof.scm
+++ b/gnu/packages/lsof.scm
@@ -54,6 +54,7 @@ (define-public lsof
          (replace 'configure
            (lambda _
              (setenv "LSOF_CC" ,(cc-for-target))
+             (setenv "LINUX_CONF_CC" "gcc")
              (setenv "LSOF_MAKE" "make")
 
              ;; By default, the makefile captures the output of 'uname -a'.
-- 
2.34.0