Repository navigation
Description
Please use the following bug reporting template to help produce actionable and reproducible issues. Please try to ensure that the reproduction is minimal so that the team can go through more bugs!
- A brief description
I've tried to install/compile the following well known "common-lisp" distributions: SBCL, ECL, CCL, CLISP.
I didn't manage to get one of them working. - Expected results
To see a prompt, obviously ;) - Actual results (with terminal output if applicable)
kfp@AURORA:~$ ecl
ecl: error while loading shared libraries: libecl.so.16.1: cannot enable executable stack as shared object requires: Invalid argument
kfp@AURORA:~$ clisp
/usr/lib/clisp-2.49/base/lisp.run: error while loading shared libraries: libavcall.so.0: cannot enable executable stack as shared object requires: Invalid argument
kfp@AURORA:~$ sbcl
WARNING:
Couldn't re-execute SBCL with proper personality flags (/proc isn't mounted? setuid?)
Trying to continue anyway.
This is SBCL 1.3.0, an implementation of ANSI Common Lisp.
More information about SBCL is available at http://www.sbcl.org/.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
(hangs) ^Z
[1]+ Angehalten sbcl
kfp@AURORA:/ccl$ ./lx86cl64/ccl$ #### terminates after about 10s without output
kfp@AURORA:
SBCL and CLISP may be installed with apt or manually from the sites below:
SBCL: http://www.sbcl.org/
ECL: https://common-lisp.net/project/ecl/static/files/
CCL: http://ccl.clozure.com/
CLISP: http://www.gnu.org/software/clisp/
- Your Windows build number
14393.105 - Steps / All commands required to reproduce the error from a brand new installation
e.g. sudo apt install clisp
or sudo apt install sbcl - Strace of the failing command
- Required packages and commands to install
ggc, autoconf, make, [svn]
See our contributing instructions for assistance.
BTW: Great thing :)
Activity
bvnierop commentedon Sep 28, 2016
I just ran into this as well.
mobluse commentedon Sep 28, 2016
Same problem with in maxima, xmaxima, and wxmaxima that I believe use Common Lisp.
I use Build 14931.1000.
o8vm commentedon Oct 20, 2016
same problem
$ clisp
/usr/lib/clisp-2.49/base/lisp.run: error while loading shared libraries: libavcall.so.0: cannot enable executable stack as shared object requires: Invalid argument
pdiazs commentedon Nov 16, 2016
I have the same problem . Just to say that this invalidates the use of maxima and wxmaxima and represents a limitation in using Texmacs
qjojo commentedon Nov 20, 2016
I can second this, sbcl complains about the existence of /proc/sys/binfmt_misc
benhillis commentedon Nov 21, 2016
@showtimesynergy - Can you give me some repro steps I can follow to see this if this still reproduces? I have a binfmt_misc related fix I want to validate.
qjojo commentedon Nov 21, 2016
Ben Hillis (@benhillis) The only time it mentions it is during install via
sudo apt-get install sbclattempting to run sbcl after this displays the following and hangs
benhillis commentedon Nov 22, 2016
@showtimesynergy - I'm no longer seeing the error about binfmt and I'm seeing the sbcl entry under /proc/sys/fs/binfmt_misc.
However when running sbcl it looks like the issue has to do with a call to personality(ADDR_NO_RANDOMIZE) which disabling randomizing of the address space.
stehufntdev commentedon Dec 12, 2016
Support for ADDR_NO_RANDOMIZE should be out in an insider build soon. Locally I confirmed that it resolved the sbcl warning but it still hung so we'll need to investigate further. Please give us feedback on the user voice page so we can prioritize common lisp - https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/category/161892-bash
mobluse commentedon Jan 5, 2017
There was no Lisp-related topic that you could vote on so I added one: https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/17629492-maxima-and-common-lisp-should-work
oldk1331 commentedon Mar 8, 2017
Do not install SBCL from Ubuntu repo, they are too old. Recent version of
SBCL (1.3.12, 1.3.15) works on WSL, but can not dump images.
See:
https://sourceforge.net/p/sbcl/mailman/message/35708531/
https://sourceforge.net/p/sbcl/mailman/message/35708604/
danieltanfh95 commentedon Apr 25, 2017
MKCL works.
bhaible commentedon Jun 19, 2017
Recent versions of clisp (from its hg repository) and of libffcall (from https://alpha.gnu.org/gnu/libffcall/) should no longer produce the "cannot enable executable stack as shared object requires" error.
sngeth commentedon Jul 21, 2017
Still see this error when starting clisp using (1:2.49-9ubuntu1) latest package provided by Ubuntu 16.04. Running OS Build 15063.483
Tried to install 2.49 from source and i had to configure the makefile without libsigsegv as it errorered about that. After that I ran make and it blew up with this :-(
*** - UNIX error 5 (EIO): I/O errorMakefile:1397: recipe for target 'interpreted.mem' failed5 remaining items
jstarks commentedon Nov 22, 2017
Nope, this is a different problem. I'll see if that's an easy fix.
jstarks commentedon Dec 19, 2017
This should be fixed in insider build 17063.
terminalcommand commentedon Feb 3, 2018
SBCL is unfortunately still not fully functional.
On the plus side, it doesn't show the /proc not mounted error anymore.
But the line starting with a * (star) does not come, I can type statements e.g. (+ 3 2) but they are not evaluated. If I hit C-C it goes into the debugger and gets trapped in a debug loop.
However in the interim, I've found a solution. I installed the windows version of SBCL and then made an alias like this:
alias sbcl=sbcl.exeNow I can use sbcl inside WSL, albeit as a windows executable.
GabrielDosReis commentedon Feb 10, 2018
I confirmed that I build CLISP and ECL successfully, and used those lisps to build OpenAxiom.
However, SBCL remains broken. There are new analysis in this thread
It sounds like WSL might have a weak support for SIGSEGV?
oldk1331 commentedon Feb 10, 2018
As I reported in Mar 8, 2017, SBCL (1.3.12, 1.3.15) can run in WSL, but can't dump image (
save-lisp-and-die), thus can't be built. According to jstarks, this bug seems to be fixed in next version? Has anyone tried in Windows Insider? Anyway, I'll find out when Windows 1803 get released next month.Just FYI, there seems to be a regression in recent SBCL versions: starting with SBCL 1.3.21, the prebuilt windows binaries can't run in WSL, it hangs.
GabrielDosReis commentedon Feb 10, 2018
I am running 17093.
The previous fixes allow building ECL and CLISP. I don't think SBCL was fixed. See the thread on the SBCL list I referenced earlier, it has useful analysis.
bhaible commentedon Feb 10, 2018
> It sounds like WSL might have a weak support for SIGSEGV?
I can't confirm this. CLISP relies on SIGSEGVs as well for its GC (via libsigsegv), and in the current release branch it builds fine and passes its test suite on WSL (Windows build 16299). That is, it catches many many SIGSEGVs and proceeds without problems, just as on real Linux.
therealkenc commentedon Feb 10, 2018
If SBCL is still problematic, it would be helpful to open an new issue following the template, especially the repro steps from clean Ubuntu install part. This one is fixedinsiderbuilds because "executable stack and EIO failures" were addressed (plus
ADDR_NO_RANDOMIZEcirca late 2016).There might be problems with SIGSEGV handling per #2555 (message) et al. But bear in mind the "pretty sure" caveat in that message over there, and the timeframe of the post. I don't use SBCL and I haven't confirmed whether it is relevant. Sounds from the post above that
libsigsegvcould be just fine. I only know mcontext_t.uc_mcontext doesn't make it into the handler on WSL last time I checked (which isn't recently).oldk1331 commentedon May 1, 2018
Gabriel Dos Reis (@GabrielDosReis) I'm using Windows 1803, just built FriCAS with SBCL-1.4.5 (bundled by Ubuntu 18.04) and SBCL-1.4.7 without problems.
I think this SBCL problem is fixed.