GNU bug report logs -
#32894
Exception in validate-runpath phase
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Fri, 19 Nov 2021 09:51:17 -0500
with message-id <17794981-26CE-4A76-8EF5-11E71A290131 <at> lepiller.eu>
and subject line Exception in validate-runpath phase
has caused the debbugs.gnu.org bug report #32894,
regarding Exception in validate-runpath phase
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
32894: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32894
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Hi,
I'm trying to create a new package for openjdk versions we don't have
yet. While building openjdk 10 on top of core-updates (because gcc on
master has a bug that prevents building openjdk 9 and 10), I get a
stacktrace at the end of the validate-runpath phase:
starting phase `validate-runpath'
validating RUNPATH of 74 binaries in
"/gnu/store/bdgbs6nsb1kzxpqmcxajjkvvkmk5kn72-openjdk-10+46/lib"...
Backtrace:
11 (primitive-load "/gnu/store/cyxf063m59nb288xnpy94gr4chq…")
In ice-9/eval.scm:
191:35 10 (_ _)
In srfi/srfi-1.scm:
863:16 9 (every1 #<procedure 77aaa0 at /gnu/store/p9wwyq2jfq2pi…> …)
In
/gnu/store/p9wwyq2jfq2piwyc01qgsxm3hsxg2bnv-module-import/guix/build/gnu-build-system.scm:
799:28 8 (_ _)
557:16 7 (validate-runpath #:validate-runpath? _ # _ #:outputs _)
In
/gnu/store/p9wwyq2jfq2piwyc01qgsxm3hsxg2bnv-module-import/guix/build/utils.scm:
536:23 6 (every* #<procedure validate (directory)> _)
536:23 5 (every* #<procedure validate-needed-in-runpath (file #…> …)
In ice-9/boot-9.scm:
829:9 4 (catch srfi-34 #<procedure 1023d40 at /gnu/store/p9wwy…> …)
In
/gnu/store/p9wwyq2jfq2piwyc01qgsxm3hsxg2bnv-module-import/guix/build/gremlin.scm:
305:26 3 (_)
In unknown file:
2 (remove #<procedure libc-library? (lib)> (#))
1 (find #<procedure 1023b80 at /gnu/store/p9wwyq2jfq2piw…> …)
0 (string-prefix? "libanl.so" 3659183287175258 #<undefin…> …)
ERROR: In procedure string-prefix?:
In procedure string-prefix?: Wrong type argument in position 2
(expecting string): 3659183287175258
I tried to investigate the issue and I have found that that running
(validate-needed-in-runpath "/gnu/...") sometimes fails on some files.
More specifically, it always succeeds on *.so files and on most
*.debuginfo files, but it fails on these files:
/gnu/store/bdgbs6nsb1kzxpqmcxajjkvvkmk5kn72-openjdk-10+46/lib/libjsound.debuginfo
/gnu/store/bdgbs6nsb1kzxpqmcxajjkvvkmk5kn72-openjdk-10+46/lib/libjimage.debuginfo
/gnu/store/bdgbs6nsb1kzxpqmcxajjkvvkmk5kn72-openjdk-10+46/lib/libjaas_unix.debuginfo
/gnu/store/bdgbs6nsb1kzxpqmcxajjkvvkmk5kn72-openjdk-10+46/lib/libawt_xawt.debuginfo
with the following backtrace:
scheme@(guix build gremlin)> (validate-needed-in-runpath
"/gnu/store/bdgbs6nsb1kzxpqmcxajjkvvkmk5kn72-openjdk-10+46/lib/libjsound.debuginfo")
ERROR: In procedure string-prefix?:
In procedure string-prefix?: Wrong type argument in position 2
(expecting string): 1
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
scheme@(guix build gremlin) [1]> ,bt
In ice-9/boot-9.scm:
829:9 4 (catch srfi-34 #<procedure 374dd40 at
guix/build/gremlin.scm:285:2 ()> #<procedure 374dd20 at
guix/build/gremlin.scm:285:2 (key c)> _)
In guix/build/gremlin.scm:
305:26 3 (_)
In unknown file:
2 (remove #<procedure libc-library? (lib)> (1))
1 (find #<procedure 374db80 at guix/build/gremlin.scm:251:8
(libc-lib)> ("libanl.so" "libcrypt.so" "libc.so" "libdl.so" "libm.so"
"libnsl.so" "libp?" ?))
0 (string-prefix? "libanl.so" 1 #<undefined> #<undefined>
#<undefined> #<undefined>)
Similarly for libawt_xawt, with the following error message:
In procedure string-prefix?: Wrong type argument in position 2
(expecting string): 3659183287175258
Then, running:
(elf-dynamic-info (call-with-input-file "libjsoundalsa.debuginfo"
(compose parse-elf get-bytevector-all)))
$79 = #<<elf-dynamic-info> soname: #f needed: () rpath: () runpath: ()>
(elf-dynamic-info (call-with-input-file "libjsound.debuginfo" (compose
parse-elf get-bytevector-all)))
$80 = #<<elf-dynamic-info> soname: #f needed: (1) rpath: () runpath: ()>
(elf-dynamic-info (call-with-input-file "libawt_xawt.debuginfo" (compose
parse-elf get-bytevector-all)))
$81 = #<<elf-dynamic-info> soname: #f needed: (3659183287175258) rpath:
() runpath: ()>
shows that the number in the exception comes from the needed field. I
think it should be empty. You can find these three files for comparison
at:
http://89.234.186.109/guix/libawt_xawt.debuginfo
http://89.234.186.109/guix/libjsoundalsa.debuginfo
http://89.234.186.109/guix/libjsound.debuginfo
Thank you.
[Message part 3 (message/rfc822, inline)]
[Message part 4 (text/plain, inline)]
Since then, we have openjdk 10, and much more recent versions. I don't remember what fixed the issue, but I haven't seen it since then, so closing :)
[Message part 5 (text/html, inline)]
This bug report was last modified 3 years and 187 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.