GNU bug report logs - #54619
[PATCH] gnu: lsof: Fix cross-compilation.

Previous Next

Package: guix-patches;

Reported by: Brian Kubisiak <brian <at> kubisiak.com>

Date: Tue, 29 Mar 2022 01:38:02 UTC

Severity: normal

Tags: patch

Done: Mathieu Othacehe <othacehe <at> gnu.org>

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: Mathieu Othacehe <othacehe <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#54619: closed ([PATCH] gnu: lsof: Fix cross-compilation.)
Date: Wed, 30 Mar 2022 09:55:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 30 Mar 2022 11:53:56 +0200
with message-id <87pmm3yde3.fsf_-_ <at> gnu.org>
and subject line Re: bug#54619: [PATCH] gnu: lsof: Fix cross-compilation.
has caused the debbugs.gnu.org bug report #54619,
regarding [PATCH] gnu: lsof: Fix cross-compilation.
to be marked as done.

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


-- 
54619: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=54619
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Brian Kubisiak <brian <at> kubisiak.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: lsof: Fix cross-compilation.
Date: Mon, 28 Mar 2022 18:37:28 -0700
* 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




[Message part 3 (message/rfc822, inline)]
From: Mathieu Othacehe <othacehe <at> gnu.org>
To: Brian Kubisiak <brian <at> kubisiak.com>
Cc: 54619-done <at> debbugs.gnu.org
Subject: Re: bug#54619: [PATCH] gnu: lsof: Fix cross-compilation.
Date: Wed, 30 Mar 2022 11:53:56 +0200
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


This bug report was last modified 3 years and 55 days ago.

Previous Next


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