Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712626 - dev-lisp/sbcl-2.0.1: fails to compile on musl (/.../run-sbcl.sh:line <snip>: /.../sbcl: No such file or directory)
Summary: dev-lisp/sbcl-2.0.1: fails to compile on musl (/.../run-sbcl.sh:line <snip>: ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PATCH
: 828937 (view as bug list)
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2020-03-15 09:26 UTC by Toralf Förster
Modified: 2022-04-12 04:35 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.42 KB, text/plain)
2020-03-15 09:27 UTC, Toralf Förster
Details
dev-lisp:sbcl-2.0.1:20200315-002752.log (dev-lisp:sbcl-2.0.1:20200315-002752.log,4.34 KB, text/plain)
2020-03-15 09:27 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,97.12 KB, text/plain)
2020-03-15 09:27 UTC, Toralf Förster
Details
environment (environment,97.67 KB, text/plain)
2020-03-15 09:27 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.96 KB, application/x-bzip)
2020-03-15 09:27 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,26.30 KB, application/x-bzip)
2020-03-15 09:27 UTC, Toralf Förster
Details
sbcl-musl-fix (sbcl-2.0.10.ebuild.patch,1.47 KB, patch)
2021-04-11 00:42 UTC, Jake Lilly
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-03-15 09:26:58 UTC
+ echo (lisp-implementation-type)
+ sh /var/tmp/portage/dev-lisp/sbcl-2.0.1/work/sbcl-binary/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger
/var/tmp/portage/dev-lisp/sbcl-2.0.1/work/sbcl-binary/run-sbcl.sh: line 57: /var/tmp/portage/dev-lisp/sbcl-2.0.1/work/sbcl-binary/src/runtime/sbcl: No such file or directory
+ echo No working host Common Lisp implementation.
No working host Common Lisp implementation.
+ echo See ./INSTALL, the SOURCE DISTRIBUTION section

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200311-204810

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.2.0 *
 [2] x86_64-gentoo-linux-musl-9.3.0
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.41.1
  [2]   rust-1.41.1 *
The following VMs are available for generation-2:

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 14 Mar 2020 23:50:12 +0000
emerge -qpvO dev-lisp/sbcl
[ebuild  N    ] dev-lisp/sbcl-2.0.1  USE="unicode zlib -debug -doc -pax_kernel -source -threads"
Comment 1 Toralf Förster gentoo-dev 2020-03-15 09:27:01 UTC
Created attachment 619374 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-15 09:27:04 UTC
Created attachment 619376 [details]
dev-lisp:sbcl-2.0.1:20200315-002752.log
Comment 3 Toralf Förster gentoo-dev 2020-03-15 09:27:07 UTC
Created attachment 619378 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-15 09:27:09 UTC
Created attachment 619380 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-15 09:27:12 UTC
Created attachment 619382 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-15 09:27:15 UTC
Created attachment 619384 [details]
temp.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-16 16:12:21 UTC
The first attempt to tinderbox a musl image failed at all.

I'll mass close therefore all filed bug reports of the last days related to this tinderbox image.

Please feel free to re-open if you think that the bug is real in musl and not fixed by the musl overlay.
Comment 8 Jake Lilly 2021-04-11 00:39:30 UTC
I ran into this recently, and I noticed the binary used in the compile phase complains of a missing fcntl64 symbol when using musl. I was able to work around this in my own overlay by using ecl to compile sbcl, instead of the binary. I'm not all that familiar with lisp, so not sure if its the best way or not. I will add an attachment to show the diff in the ebuild I used.

ldd /var/tmp/portage/dev-lisp/sbcl-2.0.10/work/sbcl-binary/src/runtime/sbcl:
	/lib64/ld-linux-x86-64.so.2 (0x7f04280fa000)
 	libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7f04280fa000)
	libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f04280fa000)
	libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f04280fa000)
	libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f04280fa000)
Error relocating src/runtime/sbcl: fcntl64: symbol not found
Comment 9 Jake Lilly 2021-04-11 00:42:45 UTC
Created attachment 699102 [details, diff]
sbcl-musl-fix
Comment 10 Toralf Förster gentoo-dev 2021-12-14 10:11:42 UTC
*** Bug 828937 has been marked as a duplicate of this bug. ***