Subject: naev build failure: validate-runpath failed
From: Maxime Devos <[email-masked]>
To: bug-guix <[email-masked]>
Date: Sun, 20 Aug 2023 01:25:38 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

When doing "guix shell naev", things ended with:

/gnu/store/nl8fl0agic9a5dw9i1m701p3yn6x6sw9-naev-0.10.4/bin/naev: 
stripping RUNPATH to 
("/gnu/store/xhxn5yk0kzh3rscirf0n1cvwnns7xn4h-sdl2-2.26.2/lib" 
"/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib" 
"/gnu/store/yd7rq0ffac7dz3jf5ggwhwcsnjjpk8pm-physfs-3.0.2/lib" 
"/gnu/store/q19fw4nsjj9j67pz2siyasgwfq4kwfzy-enet-1.3.17/lib" 
"/gnu/store/3dv9xf07gnmc4gpm0a4h0g7j58dx3l05-freetype-2.13.0/lib" 
"/gnu/store/m6pdn0b70gncsfv0jpxnfipqf4cfimw4-libunibreak-5.0/lib" 
"/gnu/store/g9cpfynzy3ryv9jprgvwf3g2mnd5p11q-libxml2-2.9.14/lib" 
"/gnu/store/i7f40vxcp8gi05pzcf75s3hvv8m2gv0i-pcre2-10.40/lib" 
"/gnu/store/bh4a659scn0s6k6cdrglaick97hwzmyg-luajit-2.1.0-beta3-0.6c4826f/lib" 
"/gnu/store/mx4grjwli5pq7x6hm21hf5fj3n5vbp45-glpk-5.0/lib" 
"/gnu/store/z6mqi9i61yz7xd2zwxfp7kcx6kgyzb99-suitesparse-5.13.0/lib" 
"/gnu/store/z9aavic2jyvp6jyfxnl9ka3i8vfk5phc-openblas-0.3.20/lib" 
"/gnu/store/s5b4c69463j32bpd9fxaa9xaaz3i8jyp-openal-1.22.2/lib" 
"/gnu/store/zrqbilnrakxw4gpv0ix982kq5aigh4iy-libvorbis-1.3.7/lib") 
(removed ("/gnu/store/nl8fl0agic9a5dw9i1m701p3yn6x6sw9-naev-0.10.4/lib" 
"/gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib/lib" 
"/gnu/store/zkxvwia0z25409k1kmm0jqzfk9prc8fx-libpng-1.6.37/lib" 
"/gnu/store/slzq3zqwj75lbrg4ly51hfhbv2vhryv5-zlib-1.2.13/lib" 
"/gnu/store/83rrhh4gwc48awsp1ahfjlq44ijha3y8-libwebp-1.2.4/lib" 
"/gnu/store/aghzw4wmbdl3lxn4aww4ndfspmhzizp6-libogg-1.3.5/lib" 
"/gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/11.3.0/../../.."))
phase `shrink-runpath' succeeded after 0.0 seconds
starting phase `validate-runpath'
validating RUNPATH of 1 binaries in 
"/gnu/store/nl8fl0agic9a5dw9i1m701p3yn6x6sw9-naev-0.10.4/bin"...
/gnu/store/nl8fl0agic9a5dw9i1m701p3yn6x6sw9-naev-0.10.4/bin/naev: error: 
depends on 'libSDL2_image-2.0.so.0', which cannot be found in RUNPATH 
("/gnu/store/xhxn5yk0kzh3rscirf0n1cvwnns7xn4h-sdl2-2.26.2/lib" 
"/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib" 
"/gnu/store/yd7rq0ffac7dz3jf5ggwhwcsnjjpk8pm-physfs-3.0.2/lib" 
"/gnu/store/q19fw4nsjj9j67pz2siyasgwfq4kwfzy-enet-1.3.17/lib" 
"/gnu/store/3dv9xf07gnmc4gpm0a4h0g7j58dx3l05-freetype-2.13.0/lib" 
"/gnu/store/m6pdn0b70gncsfv0jpxnfipqf4cfimw4-libunibreak-5.0/lib" 
"/gnu/store/g9cpfynzy3ryv9jprgvwf3g2mnd5p11q-libxml2-2.9.14/lib" 
"/gnu/store/i7f40vxcp8gi05pzcf75s3hvv8m2gv0i-pcre2-10.40/lib" 
"/gnu/store/bh4a659scn0s6k6cdrglaick97hwzmyg-luajit-2.1.0-beta3-0.6c4826f/lib" 
"/gnu/store/mx4grjwli5pq7x6hm21hf5fj3n5vbp45-glpk-5.0/lib" 
"/gnu/store/z6mqi9i61yz7xd2zwxfp7kcx6kgyzb99-suitesparse-5.13.0/lib" 
"/gnu/store/z9aavic2jyvp6jyfxnl9ka3i8vfk5phc-openblas-0.3.20/lib" 
"/gnu/store/s5b4c69463j32bpd9fxaa9xaaz3i8jyp-openal-1.22.2/lib" 
"/gnu/store/zrqbilnrakxw4gpv0ix982kq5aigh4iy-libvorbis-1.3.7/lib")
error: in phase 'validate-runpath': uncaught exception:
misc-error #f "RUNPATH validation failed" () #f
phase `validate-runpath' failed after 0.0 seconds
Backtrace:
            8 (primitive-load "/gnu/store/sn2h16sbwsy2mcr1wvsjh0ds6m0…")
In guix/build/gnu-build-system.scm:
     908:2  7 (gnu-build #:source _ #:outputs _ #:inputs _ #:phases . #)
In ice-9/boot-9.scm:
   1752:10  6 (with-exception-handler _ _ #:unwind? _ # _)
In srfi/srfi-1.scm:
     634:9  5 (for-each #<procedure 7fffeeeedac0 at guix/build/gnu-b…> …)
In ice-9/boot-9.scm:
   1752:10  4 (with-exception-handler _ _ #:unwind? _ # _)
In guix/build/gnu-build-system.scm:
    929:23  3 (_)
    570:10  2 (validate-runpath #:validate-runpath? _ # _ #:outputs _)
In ice-9/boot-9.scm:
   1685:16  1 (raise-exception _ #:continuable? _)
   1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
RUNPATH validation failed

Looking at ci.guix.gnu.org, this appears to be reproducible
<https://ci.guix.gnu.org/build/1316906/log/raw>.

Looking at
<https://ci.guix.gnu.org/build/1656956/details>,
it appears that the build failure was introduced between
1105c95e448cc807214a5414c27c33458dc35d9e and 
d1aba42ad4e1909faa21d484975c5954c778e002.