* bug#54837: LLVM 3.* build failure
@ 2022-04-10 14:23 Guillaume Le Vaillant
2022-04-10 15:50 ` Maxime Devos
0 siblings, 1 reply; 5+ messages in thread
From: Guillaume Le Vaillant @ 2022-04-10 14:23 UTC (permalink / raw)
To: 54837
[-- Attachment #1: Type: text/plain, Size: 1356 bytes --]
The clamav package can't be built right know because it depends on
llvm-3.6 which fails to build. In fact, all the llvm-3.* packages fail
to build with the same error:
--8<---------------cut here---------------start------------->8---
The following derivation will be built:
/gnu/store/7rh78xkkglsx289s9j6fdxwfwakqdhv8-llvm-3.6.2.drv
building /gnu/store/7rh78xkkglsx289s9j6fdxwfwakqdhv8-llvm-3.6.2.drv...
ice-9/read.scm:126:4: In procedure read-expr*:
/gnu/store/kj78hgwyb11z2sxz4xfd3v9sd93xk7yc-llvm-3.6.2-builder:1:3078: Unknown # object: "#<"
builder for `/gnu/store/7rh78xkkglsx289s9j6fdxwfwakqdhv8-llvm-3.6.2.drv' failed with exit code 1
build of /gnu/store/7rh78xkkglsx289s9j6fdxwfwakqdhv8-llvm-3.6.2.drv failed
View build log at '/var/log/guix/drvs/7r/h78xkkglsx289s9j6fdxwfwakqdhv8-llvm-3.6.2.drv.gz'.
guix build: error: build of `/gnu/store/7rh78xkkglsx289s9j6fdxwfwakqdhv8-llvm-3.6.2.drv' failed
--8<---------------cut here---------------end--------------->8---
It looks like the problem comes from a gexp in the builder. There's
a gexp inside another gexp, but I don't know if that's the problem:
--8<---------------cut here---------------start------------->8---
#:phases (modify-phases #<gexp (modify-phases #<gexp-input #<gexp ...
--8<---------------cut here---------------end--------------->8---
The full builder file is in attachment.
[-- Attachment #2: kj78hgwyb11z2sxz4xfd3v9sd93xk7yc-llvm-3.6.2-builder --]
[-- Type: application/octet-stream, Size: 4339 bytes --]
(begin (use-modules (guix build cmake-build-system) (guix build utils)) (begin (define %build-inputs (quote (("source" . "/gnu/store/1dxjmdi4msbis0c06f8wsavpxms8iihf-llvm-3.6.2.src.tar.xz") ("cmake" . "/gnu/store/zga679c4nldah9l8dhd5a4hdy820hcyf-cmake-minimal-3.21.4") ("python" . "/gnu/store/j3cx0yaqdpw0mxizp5bayx93pya44dhn-python-wrapper-3.9.9") ("perl" . "/gnu/store/hy6abswwv4d89zp464fw52z65fkzr7h5-perl-5.34.0") ("libffi" . "/gnu/store/wgqhlc12qvlwiklam7hz2r311fdcqfim-libffi-3.3") ("zlib" . "/gnu/store/8qv5kb2fgm4c3bf70zcg9l6hkf3qzpw9-zlib-1.2.11") ("tar" . "/gnu/store/g2ajyl8xk9aarxrgjbng2hkj3qm2v0z2-tar-1.34") ("gzip" . "/gnu/store/iixwcv3k49ks1rf34pjgfzmzyhhgwng3-gzip-1.10") ("bzip2" . "/gnu/store/s3hl12jxz9ybs7nsy7kq7ybzz7qnzmsg-bzip2-1.0.8") ("xz" . "/gnu/store/c8isj4jq6knv0icfgr43di6q3nvdzkx7-xz-5.2.5") ("file" . "/gnu/store/4ic6244i3ca4b4rxc2wnrgllsidyishv-file-5.39") ("diffutils" . "/gnu/store/ahmmvw21p11ik80lg1f953y7fd8bqkjm-diffutils-3.8") ("patch" . "/gnu/store/z39hnrwds1dgcbpfgj8dnv2cngjb2xbl-patch-2.7.6") ("findutils" . "/gnu/store/39rsx3nl4c31952jybbjb8d6idr5hx7r-findutils-4.8.0") ("gawk" . "/gnu/store/690qz3fg334dpwn3pn6k59n4wc943p2b-gawk-5.1.0") ("sed" . "/gnu/store/wxgv6i8g0p24q5gcyzd0yr07s8kn9680-sed-4.8") ("grep" . "/gnu/store/xjwp2hsd9256icjjybfrmznppjicywf6-grep-3.6") ("coreutils" . "/gnu/store/d251rfgc9nm2clzffzhgiipdvfvzkvwi-coreutils-8.32") ("make" . "/gnu/store/55cbpsi18mahg131nmiya6km5b4mscfa-make-4.3") ("bash" . "/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8") ("ld-wrapper" . "/gnu/store/s2pg5k98fl2g2szg9dykxyd9zl3xihv9-ld-wrapper-0") ("binutils" . "/gnu/store/rc781v4k0drhaqn90xfwwpspki5x0bvf-binutils-2.37") ("gcc" . "/gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0") ("libc" . "/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33") ("libc:static" . "/gnu/store/4jdghmc65q7i7ib89zmvq66l0ghf7jc4-glibc-2.33-static") ("locales" . "/gnu/store/fnr1z6xsan0437r0yg48d0y8k32kqxby-glibc-utf8-locales-2.33") ("python" . "/gnu/store/b6j1qw1a5rkbfvcy7lc9fm95abbzpa4x-python-3.9.9") ("kernel-headers" . "/gnu/store/6mjww4iz4xdan74d5bbjfh7il8rngfkk-linux-libre-headers-5.10.35")))) (define %outputs (list (cons "out" ((@ (guile) getenv) "out")))) (define %output (assoc-ref %outputs "out")) (cmake-build #:source "/gnu/store/1dxjmdi4msbis0c06f8wsavpxms8iihf-llvm-3.6.2.src.tar.xz" #:system "x86_64-linux" #:outputs %outputs #:inputs %build-inputs #:search-paths (quote (("CMAKE_PREFIX_PATH" ("") ":" directory #f) ("SSL_CERT_DIR" ("etc/ssl/certs") #f directory #f) ("SSL_CERT_FILE" ("etc/ssl/certs/ca-certificates.crt") #f regular #f) ("GUIX_PYTHONPATH" ("lib/python3.9/site-packages") ":" directory #f) ("PYTHONTZPATH" ("share/zoneinfo") ":" directory #f) ("PERL5LIB" ("lib/perl5/site_perl") ":" directory #f) ("BASH_LOADABLES_PATH" ("lib/bash") ":" directory #f) ("C_INCLUDE_PATH" ("include") ":" directory #f) ("CPLUS_INCLUDE_PATH" ("include/c++" "include") ":" directory #f) ("LIBRARY_PATH" ("lib" "lib64") ":" directory #f) ("GUIX_LOCPATH" ("lib/locale") ":" directory #f))) #:phases (modify-phases #<gexp (modify-phases #<gexp-input #<gexp (modify-phases %standard-phases (add-after (quote unpack) (quote change-directory) (lambda _ (chdir "llvm"))) (add-after (quote install) (quote install-opt-viewer) (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (opt-viewer-out (assoc-ref outputs "opt-viewer")) (opt-viewer-share-dir (string-append opt-viewer-out "/share")) (opt-viewer-dir (string-append opt-viewer-share-dir "/opt-viewer"))) (mkdir-p opt-viewer-share-dir) (rename-file (string-append out "/share/opt-viewer") opt-viewer-dir))))) gnu/packages/llvm.scm:585:6 7f2a07072f60>:out> (delete (quote change-directory))) gnu/packages/llvm.scm:655:8 7f2a07072f30> (delete (quote install-opt-viewer))) #:configure-flags (list "-DCMAKE_SKIP_BUILD_RPATH=FALSE" "-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE" "-DBUILD_SHARED_LIBS:BOOL=TRUE" "-DLLVM_ENABLE_FFI:BOOL=TRUE" "-DLLVM_REQUIRES_RTTI=1" "-DLLVM_INSTALL_UTILS=ON") #:make-flags (quote ()) #:out-of-source? #t #:build-type "Release" #:tests? #t #:test-target "test" #:parallel-build? #t #:parallel-tests? #t #:validate-runpath? #t #:patch-shebangs? #t #:strip-binaries? #t #:strip-flags (quote ("--strip-debug")) #:strip-directories (quote ("lib" "lib64" "libexec" "bin" "sbin")))))
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#54837: LLVM 3.* build failure
2022-04-10 14:23 bug#54837: LLVM 3.* build failure Guillaume Le Vaillant
@ 2022-04-10 15:50 ` Maxime Devos
2022-04-10 16:42 ` Guillaume Le Vaillant
0 siblings, 1 reply; 5+ messages in thread
From: Maxime Devos @ 2022-04-10 15:50 UTC (permalink / raw)
To: Guillaume Le Vaillant, 54837
[-- Attachment #1: Type: text/plain, Size: 770 bytes --]
Guillaume Le Vaillant schreef op zo 10-04-2022 om 14:23 [+0000]:
> It looks like the problem comes from a gexp in the builder. There's
> a gexp inside another gexp, but I don't know if that's the problem:
>
> --8<---------------cut here---------------start------------->8---
> #:phases (modify-phases #<gexp (modify-phases #<gexp-input #<gexp ...
Suggestion:
Replace
(substitute-keyword-arguments (package-arguments llvm)
((#:phases phases)
`(modify-phases ,phases
(delete 'install-opt-viewer)))))))
by
(substitute-keyword-arguments (package-arguments llvm)
((#:phases phases)
#~(modify-phases #$phases
(delete 'install-opt-viewer)))))))
in llvm-3.9.1.
Greetings,
Maxime.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#54837: LLVM 3.* build failure
2022-04-10 15:50 ` Maxime Devos
@ 2022-04-10 16:42 ` Guillaume Le Vaillant
2022-04-10 17:07 ` Guillaume Le Vaillant
0 siblings, 1 reply; 5+ messages in thread
From: Guillaume Le Vaillant @ 2022-04-10 16:42 UTC (permalink / raw)
To: Maxime Devos; +Cc: 54837
[-- Attachment #1: Type: text/plain, Size: 2808 bytes --]
Maxime Devos <maximedevos@telenet.be> skribis:
> Guillaume Le Vaillant schreef op zo 10-04-2022 om 14:23 [+0000]:
>> It looks like the problem comes from a gexp in the builder. There's
>> a gexp inside another gexp, but I don't know if that's the problem:
>>
>> --8<---------------cut here---------------start------------->8---
>> #:phases (modify-phases #<gexp (modify-phases #<gexp-input #<gexp ...
>
> Suggestion:
>
> Replace
>
> (substitute-keyword-arguments (package-arguments llvm)
> ((#:phases phases)
> `(modify-phases ,phases
> (delete 'install-opt-viewer)))))))
>
> by
>
> (substitute-keyword-arguments (package-arguments llvm)
> ((#:phases phases)
> #~(modify-phases #$phases
> (delete 'install-opt-viewer)))))))
>
> in llvm-3.9.1.
Thanks, that solves the builder issue.
However there are other issues during the build phase:
--8<---------------cut here---------------start------------->8---
../../bin/llvm-tblgen: error while loading shared libraries: libLLVMTableGen.so: cannot open shared object file: No such file or directory
make[2]: *** [lib/IR/CMakeFiles/AttributeCompatFuncTableGen.dir/build.make:105: lib/IR/AttributesCompatFunc.inc.tmp] Error 127
make[2]: Leaving directory '/tmp/guix-build-llvm-3.9.1.drv-0/build'
make[1]: *** [CMakeFiles/Makefile2:5233: lib/IR/CMakeFiles/AttributeCompatFuncTableGen.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
../../bin/llvm-tblgen: error while loading shared libraries: libLLVMTableGen.so: cannot open shared object file: No such file or directory
make[2]: *** [lib/LibDriver/CMakeFiles/LibOptionsTableGen.dir/build.make:105: lib/LibDriver/Options.inc.tmp] Error 127
make[2]: Leaving directory '/tmp/guix-build-llvm-3.9.1.drv-0/build'
make[1]: *** [CMakeFiles/Makefile2:12101: lib/LibDriver/CMakeFiles/LibOptionsTableGen.dir/all] Error 2
../../../bin/llvm-tblgen: error while loading shared libraries: libLLVMTableGen.so: cannot open shared object file: No such file or directory
make[2]: *** [include/llvm/IR/CMakeFiles/intrinsics_gen.dir/build.make:123: include/llvm/IR/Attributes.inc.tmp] Error 127
make[2]: *** Waiting for unfinished jobs....
../../../bin/llvm-tblgen: error while loading shared libraries: libLLVMTableGen.so: cannot open shared object file: No such file or directory
make[2]: *** [include/llvm/IR/CMakeFiles/intrinsics_gen.dir/build.make:165: include/llvm/IR/Intrinsics.gen.tmp] Error 127
make[2]: Leaving directory '/tmp/guix-build-llvm-3.9.1.drv-0/build'
make[1]: *** [CMakeFiles/Makefile2:5153: include/llvm/IR/CMakeFiles/intrinsics_gen.dir/all] Error 2
make[2]: Leaving directory '/tmp/guix-build-llvm-3.9.1.drv-0/build'
--8<---------------cut here---------------end--------------->8---
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#54837: LLVM 3.* build failure
2022-04-10 16:42 ` Guillaume Le Vaillant
@ 2022-04-10 17:07 ` Guillaume Le Vaillant
2022-04-10 17:23 ` Guillaume Le Vaillant
0 siblings, 1 reply; 5+ messages in thread
From: Guillaume Le Vaillant @ 2022-04-10 17:07 UTC (permalink / raw)
To: Guillaume Le Vaillant; +Cc: 54837
[-- Attachment #1: Type: text/plain, Size: 1961 bytes --]
Guillaume Le Vaillant <glv@posteo.net> skribis:
> However there are other issues during the build phase:
>
> ../../bin/llvm-tblgen: error while loading shared libraries: libLLVMTableGen.so: cannot open shared object file: No such file or directory
> make[2]: *** [lib/IR/CMakeFiles/AttributeCompatFuncTableGen.dir/build.make:105: lib/IR/AttributesCompatFunc.inc.tmp] Error 127
> make[2]: Leaving directory '/tmp/guix-build-llvm-3.9.1.drv-0/build'
> make[1]: *** [CMakeFiles/Makefile2:5233: lib/IR/CMakeFiles/AttributeCompatFuncTableGen.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> ../../bin/llvm-tblgen: error while loading shared libraries: libLLVMTableGen.so: cannot open shared object file: No such file or directory
> make[2]: *** [lib/LibDriver/CMakeFiles/LibOptionsTableGen.dir/build.make:105: lib/LibDriver/Options.inc.tmp] Error 127
> make[2]: Leaving directory '/tmp/guix-build-llvm-3.9.1.drv-0/build'
> make[1]: *** [CMakeFiles/Makefile2:12101: lib/LibDriver/CMakeFiles/LibOptionsTableGen.dir/all] Error 2
> ../../../bin/llvm-tblgen: error while loading shared libraries: libLLVMTableGen.so: cannot open shared object file: No such file or directory
> make[2]: *** [include/llvm/IR/CMakeFiles/intrinsics_gen.dir/build.make:123: include/llvm/IR/Attributes.inc.tmp] Error 127
> make[2]: *** Waiting for unfinished jobs....
> ../../../bin/llvm-tblgen: error while loading shared libraries: libLLVMTableGen.so: cannot open shared object file: No such file or directory
> make[2]: *** [include/llvm/IR/CMakeFiles/intrinsics_gen.dir/build.make:165: include/llvm/IR/Intrinsics.gen.tmp] Error 127
> make[2]: Leaving directory '/tmp/guix-build-llvm-3.9.1.drv-0/build'
> make[1]: *** [CMakeFiles/Makefile2:5153: include/llvm/IR/CMakeFiles/intrinsics_gen.dir/all] Error 2
> make[2]: Leaving directory '/tmp/guix-build-llvm-3.9.1.drv-0/build'
It looks like llvm-12 has a workaround for this issue. I'll copy it to
llvm-3.9 and test that...
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#54837: LLVM 3.* build failure
2022-04-10 17:07 ` Guillaume Le Vaillant
@ 2022-04-10 17:23 ` Guillaume Le Vaillant
0 siblings, 0 replies; 5+ messages in thread
From: Guillaume Le Vaillant @ 2022-04-10 17:23 UTC (permalink / raw)
To: Guillaume Le Vaillant; +Cc: 54837
[-- Attachment #1: Type: text/plain, Size: 2158 bytes --]
Guillaume Le Vaillant <glv@posteo.net> skribis:
> Guillaume Le Vaillant <glv@posteo.net> skribis:
>
>> However there are other issues during the build phase:
>>
>> ../../bin/llvm-tblgen: error while loading shared libraries: libLLVMTableGen.so: cannot open shared object file: No such file or directory
>> make[2]: *** [lib/IR/CMakeFiles/AttributeCompatFuncTableGen.dir/build.make:105: lib/IR/AttributesCompatFunc.inc.tmp] Error 127
>> make[2]: Leaving directory '/tmp/guix-build-llvm-3.9.1.drv-0/build'
>> make[1]: *** [CMakeFiles/Makefile2:5233: lib/IR/CMakeFiles/AttributeCompatFuncTableGen.dir/all] Error 2
>> make[1]: *** Waiting for unfinished jobs....
>> ../../bin/llvm-tblgen: error while loading shared libraries: libLLVMTableGen.so: cannot open shared object file: No such file or directory
>> make[2]: *** [lib/LibDriver/CMakeFiles/LibOptionsTableGen.dir/build.make:105: lib/LibDriver/Options.inc.tmp] Error 127
>> make[2]: Leaving directory '/tmp/guix-build-llvm-3.9.1.drv-0/build'
>> make[1]: *** [CMakeFiles/Makefile2:12101: lib/LibDriver/CMakeFiles/LibOptionsTableGen.dir/all] Error 2
>> ../../../bin/llvm-tblgen: error while loading shared libraries: libLLVMTableGen.so: cannot open shared object file: No such file or directory
>> make[2]: *** [include/llvm/IR/CMakeFiles/intrinsics_gen.dir/build.make:123: include/llvm/IR/Attributes.inc.tmp] Error 127
>> make[2]: *** Waiting for unfinished jobs....
>> ../../../bin/llvm-tblgen: error while loading shared libraries: libLLVMTableGen.so: cannot open shared object file: No such file or directory
>> make[2]: *** [include/llvm/IR/CMakeFiles/intrinsics_gen.dir/build.make:165: include/llvm/IR/Intrinsics.gen.tmp] Error 127
>> make[2]: Leaving directory '/tmp/guix-build-llvm-3.9.1.drv-0/build'
>> make[1]: *** [CMakeFiles/Makefile2:5153: include/llvm/IR/CMakeFiles/intrinsics_gen.dir/all] Error 2
>> make[2]: Leaving directory '/tmp/guix-build-llvm-3.9.1.drv-0/build'
>
> It looks like llvm-12 has a workaround for this issue. I'll copy it to
> llvm-3.9 and test that...
Partial fix pushed in 81567f751bd31d972cf05013a177311b73425d7d; the
builds for llvm-3.7 and llvm-3.8 are still failing.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-04-10 17:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-10 14:23 bug#54837: LLVM 3.* build failure Guillaume Le Vaillant
2022-04-10 15:50 ` Maxime Devos
2022-04-10 16:42 ` Guillaume Le Vaillant
2022-04-10 17:07 ` Guillaume Le Vaillant
2022-04-10 17:23 ` Guillaume Le Vaillant
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.