GNU bug report logs -
#36272
[PATCH] gnu: rust: fix building bootstrap chain
Previous Next
Reported by: Ivan Petkov <ivanppetkov <at> gmail.com>
Date: Tue, 18 Jun 2019 03:01:02 UTC
Severity: normal
Tags: patch
Done: Ivan Petkov <ivanppetkov <at> gmail.com>
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 36272 in the body.
You can then email your comments to 36272 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#36272
; Package
guix-patches
.
(Tue, 18 Jun 2019 03:01:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ivan Petkov <ivanppetkov <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Tue, 18 Jun 2019 03:01:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
This patch fixes building rust versions 1.30 and onwards:
* Thanks to a newer GDB version being present, we no longer need to patch the
debug-info tests to the older (and now incorrect) format.
* Downgrade to llvm <at> 6 for older compilers, which don't support the newer llvm <at> 8.
—Ivan
[0001-gnu-rust-remove-debug-info-patch-thanks-to-newer-gdb.patch (application/octet-stream, attachment)]
[0002-gnu-rust-downgrade-older-versions-to-llvm-6.patch (application/octet-stream, attachment)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#36272
; Package
guix-patches
.
(Tue, 18 Jun 2019 03:07:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 36272 <at> debbugs.gnu.org (full text, mbox):
I tried deleting the gnu/packages/patches/rust-1.30-gdb-llvm.patch file since
it is now unused, but after doing so the build fails with a cryptic backtrace.
Anyone have any ideas why?
--Ivan
Backtrace:
In srfi/srfi-1.scm:
592:29 19 (map1 (#<<service> type: #<service-type mingetty ced…> …))
592:29 18 (map1 (#<<service> type: #<service-type mingetty ced…> …))
592:29 17 (map1 (#<<service> type: #<service-type mingetty ced…> …))
592:29 16 (map1 (#<<service> type: #<service-type syslog 42b50…> …))
592:17 15 (map1 (#<<service> type: #<service-type guix 27825a0…> …))
In ice-9/eval.scm:
196:43 14 (_ #(#(#(#<directory (gnu tests install) c9f01e0>) #) #))
293:34 13 (_ #(#(#(#<directory (gnu tests install) c9f01e0>) #) #))
293:34 12 (_ #(#(#(#(#<directory (gnu packages package-…> …)) …) …))
174:20 11 (_ #(#(#(#(#<directory (gnu packages package-…> …)) …) …))
177:49 10 (lp (#<procedure 1839e280 at ice-9/eval.scm:282:4 (e…> …))
177:49 9 (lp (#<procedure 1839e260 at ice-9/eval.scm:282:4 (e…> …))
177:49 8 (lp (#<procedure 1839e240 at ice-9/eval.scm:282:4 (e…> …))
177:32 7 (lp (#<procedure 1839e220 at ice-9/eval.scm:182:7 (env)>))
In unknown file:
6 (force #<promise #<procedure 5b90da0 at ice-9/eval.scm:…>)
In ice-9/eval.scm:
293:34 5 (_ #(#(#<directory (gnu packages package-management…> …)))
In ice-9/boot-9.scm:
829:9 4 (catch git-error #<procedure 183a1ac0 at ice-9/eval.sc…> …)
In ice-9/eval.scm:
293:34 3 (_ #(#(#(#<directory (guix git-download) 253daa0> #)) #))
In srfi/srfi-1.scm:
466:18 2 (fold #<procedure 17fb2340 at ice-9/eval.scm:336:13 (a…> …)
In ice-9/eval.scm:
293:34 1 (_ #(#(#<directory (guix git-download) 253daa0> "/…") …))
In unknown file:
0 (lstat "/home/ivan/import/guix-rust-upgrade/gnu/package…")
ERROR: In procedure lstat:
In procedure lstat: No such file or directory: "/home/ivan/import/guix-rust-upgrade/gnu/packages/patches/rust-1.30-gdb-llvm.patch"
Information forwarded
to
guix-patches <at> gnu.org
:
bug#36272
; Package
guix-patches
.
(Tue, 18 Jun 2019 06:52:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 36272 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Ivan,
On Mon, 17 Jun 2019 20:06:37 -0700
Ivan Petkov <ivanppetkov <at> gmail.com> wrote:
> I tried deleting the gnu/packages/patches/rust-1.30-gdb-llvm.patch file since
> it is now unused, but after doing so the build fails with a cryptic backtrace.
>
> Anyone have any ideas why?
Hmm, I've had spooky things like that when I didn't run "make" in the guix
directory after the change before trying to use it.
Not sure why that is--since guile is supposed to compile on demand--, but it
happened.
So try running "make" in guix.
Otherwise "grep -r gdb-llvm ." to find left-overs, if any.
If nothing else helps, rm -rf ~/.cache/guile
[Message part 2 (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#36272
; Package
guix-patches
.
(Wed, 19 Jun 2019 05:44:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 36272 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Danny,
> On Jun 17, 2019, at 11:51 PM, Danny Milosavljevic <dannym <at> scratchpost.org> wrote:
>
> So try running "make" in guix.
I always run make before any ./pre-inst-env invocation, and that’s what raises the error.
> Otherwise "grep -r gdb-llvm ." to find left-overs, if any.
No results (besides those in .git). Maybe it’s because there are items in the store which
have references to it and guix is getting confused somewhere? Unfortunately, I don’t
know enough to stipulate further...
> If nothing else helps, rm -rf ~/.cache/guile
Unfortunately this didn’t help either :(
I’m willing to get this merged in as is for now, get rust to build again, and clean up my store
with `guix gc` before trying to delete the patch file again. Maybe things will work then.
Also attaching one more patch update, this time for bumping to llvm <at> 8 for the latest
rust version!
—Ivan
[0003-gnu-rust-use-llvm-8.patch (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#36272
; Package
guix-patches
.
(Wed, 19 Jun 2019 11:11:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 36272 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Ah, maybe the sha checksum of the origin is used as a key to a cache for the
origin.
Try changing a digit in it (in the call to rust-bootstapped-package in rust-1.30).
[Message part 2 (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#36272
; Package
guix-patches
.
(Wed, 19 Jun 2019 16:02:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 36272 <at> debbugs.gnu.org (full text, mbox):
> On Jun 19, 2019, at 4:10 AM, Danny Milosavljevic <dannym <at> scratchpost.org> wrote:
>
> Ah, maybe the sha checksum of the origin is used as a key to a cache for the
> origin.
> Try changing a digit in it (in the call to rust-bootstapped-package in rust-1.30).
Still no dice.
I even tried commenting out the rust package definitions entirely and the issue still
occurs when running `make` after `make clean`, so I don’t think its related to the
package definitions themselves...
—Ivan
Reply sent
to
Ivan Petkov <ivanppetkov <at> gmail.com>
:
You have taken responsibility.
(Sat, 29 Jun 2019 01:47:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Ivan Petkov <ivanppetkov <at> gmail.com>
:
bug acknowledged by developer.
(Sat, 29 Jun 2019 01:47:01 GMT)
Full text and
rfc822 format available.
Message #25 received at 36272-done <at> debbugs.gnu.org (full text, mbox):
I’ve merged this in as f5de2b9a3e0070ec431e01c279192e6d93d6a1c8.
I’ll come back a bit later and see if removing the patch file works…
—Ivan
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 27 Jul 2019 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 246 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.