GNU bug report logs - #41713
'%current-target-system' influences native inputs in 'bag-grafts'

Previous Next

Package: guix;

Reported by: Ludovic Courtès <ludo <at> gnu.org>

Date: Thu, 4 Jun 2020 16:53:02 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41713 in the body.
You can then email your comments to 41713 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#41713; Package guix. (Thu, 04 Jun 2020 16:53:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Courtès <ludo <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 04 Jun 2020 16:53:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: bug-guix <at> gnu.org
Subject: Package referenced with ‘ungexp-native’
 gets cross-compiled
Date: Thu, 04 Jun 2020 18:52:27 +0200
As reported by Mathieu in <https://issues.guix.gnu.org/41350>:

--8<---------------cut here---------------start------------->8---
$ cat ~/src/guix-debugging/graft-cross-compilation.scm
(use-modules (gnu) (guix)
             (gnu packages gtk))

(with-store store
  (run-with-store store
    (mlet* %store-monad ((target (set-current-target "aarch64-linux-gnu"))
                         (drv (lower-object
                               (computed-file "test"
                                              #~(begin
                                                  (mkdir #$output)
                                                  #+guile-rsvg)))))
      (return (derivation->output-path drv)))))
$ ./pre-inst-env guile ~/src/guix-debugging/graft-cross-compilation.scm
Backtrace:
In guix/gexp.scm:
   243:18 19 (_ _)
   1061:2 18 (_ _)
    921:2 17 (_ _)
    782:4 16 (_ _)
In guix/store.scm:
  1899:12 15 (_ #<store-connection 256.99 7ff08bb752d0>)
   1336:2 14 (map/accumulate-builds #<store-connection 256.99 7ff08bb752d0> _ _)
In srfi/srfi-1.scm:
   586:17 13 (map1 ((#<package guile-rsvg <at> 2.18.1-0.05c6a2f gnu/packages/gtk.scm:941 7ff080bf2f00> "out")))
In guix/store.scm:
   1295:8 12 (call-with-build-handler #<procedure build-accumulator (continue store things mode)> _)
  2017:24 11 (run-with-store #<store-connection 256.99 7ff08bb752d0> _ #:guile-for-build _ #:system _ #:target _)
In guix/gexp.scm:
   785:13 10 (_ _)
In guix/store.scm:
   1851:8  9 (_ _)
In guix/gexp.scm:
   243:18  8 (_ _)
In guix/store.scm:
  1886:38  7 (_ #<store-connection 256.99 7ff08bb752d0>)
In guix/packages.scm:
  1072:16  6 (package-derivation _ #<package guile-rsvg <at> 2.18.1-0.05c6a2f gnu/packages/gtk.scm:941 7ff080bf2f00> _ #:graft? _)
  1393:16  5 (thunk)
   1280:6  4 (bag-grafts #<store-connection 256.99 7ff08bb752d0> #<<bag> name: "guile-rsvg-2.18.1-0.05c6a2f" system: "x86_64-linux" target: #f build-inputs: (("source" #<origin "https://gitlab.com…>)
  1260:45  3 (fold-bag-dependencies #<procedure 7ff0867da880 at guix/packages.scm:1280:29 (package grafts)> _ _ #:native? _)
  1072:16  2 (package->bag _ _ _ #:graft? _)
  1183:21  1 (thunk)
In ice-9/boot-9.scm:
  1669:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1669:16: In procedure raise-exception:
ERROR:
  1. &package-cross-build-system-error: #<package gobject-introspection <at> 1.62.0 gnu/packages/glib.scm:416 7ff0839365a0>
--8<---------------cut here---------------end--------------->8---

This is on 4960a955f8f77cc4c35d0db749cd6f3de8787bff-ish.

Ludo’.




Changed bug title to ''%current-target-system' influences native inputs in 'bag-grafts'' from 'Package referenced with ‘ungexp-native’ gets cross-compiled' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 06 Jun 2020 21:42:02 GMT) Full text and rfc822 format available.

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sat, 06 Jun 2020 21:43:01 GMT) Full text and rfc822 format available.

Notification sent to Ludovic Courtès <ludo <at> gnu.org>:
bug acknowledged by developer. (Sat, 06 Jun 2020 21:43:01 GMT) Full text and rfc822 format available.

Message #12 received at 41713-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: 41713-done <at> debbugs.gnu.org
Subject: Re: bug#41713: Package referenced with ‘ungexp-native’ gets cross-compiled
Date: Sat, 06 Jun 2020 23:42:40 +0200
Ludovic Courtès <ludo <at> gnu.org> skribis:

> $ cat ~/src/guix-debugging/graft-cross-compilation.scm
> (use-modules (gnu) (guix)
>              (gnu packages gtk))
>
> (with-store store
>   (run-with-store store
>     (mlet* %store-monad ((target (set-current-target "aarch64-linux-gnu"))
>                          (drv (lower-object
>                                (computed-file "test"
>                                               #~(begin
>                                                   (mkdir #$output)
>                                                   #+guile-rsvg)))))
>       (return (derivation->output-path drv)))))
> $ ./pre-inst-env guile ~/src/guix-debugging/graft-cross-compilation.scm

[...]

>    1280:6  4 (bag-grafts #<store-connection 256.99 7ff08bb752d0> #<<bag> name: "guile-rsvg-2.18.1-0.05c6a2f" system: "x86_64-linux" target: #f build-inputs: (("source" #<origin "https://gitlab.com…>)
>   1260:45  3 (fold-bag-dependencies #<procedure 7ff0867da880 at guix/packages.scm:1280:29 (package grafts)> _ _ #:native? _)
>   1072:16  2 (package->bag _ _ _ #:graft? _)
>   1183:21  1 (thunk)
> In ice-9/boot-9.scm:
>   1669:16  0 (raise-exception _ #:continuable? _)
>
> ice-9/boot-9.scm:1669:16: In procedure raise-exception:
> ERROR:
>   1. &package-cross-build-system-error: #<package gobject-introspection <at> 1.62.0 gnu/packages/glib.scm:416 7ff0839365a0>

Fixed:

  https://git.savannah.gnu.org/cgit/guix.git/commit/?id=b49caaa2b7f624c3395c8e872638282bcc420502

It took me a while to come up with a reduced test case.

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#41713; Package guix. (Sun, 07 Jun 2020 07:12:01 GMT) Full text and rfc822 format available.

Message #15 received at 41713 <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Othacehe <othacehe <at> gnu.org>
To: 41713 <at> debbugs.gnu.org
Cc: ludo <at> gnu.org
Subject: Re: bug#41713: Package referenced with ‘ungexp-native’ gets cross-compiled
Date: Sun, 07 Jun 2020 09:10:52 +0200
Hey Ludo,

> Fixed:
>
>   https://git.savannah.gnu.org/cgit/guix.git/commit/?id=b49caaa2b7f624c3395c8e872638282bcc420502

Nice, thanks a lot for fixing this!

Mathieu




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 05 Jul 2020 11:24:04 GMT) Full text and rfc822 format available.

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

Previous Next


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