WSL: Building SageMath fails on WSL
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
The build script is
wget http://www.mirrorservice.org/sites/www.sagemath.org/src/sage-7.5.1.tar.gz
tar -xzf ./sage-7.5.1.tar.gz
cd sage-7.5.1
make
- Expected results
Compilation of SageMath
- Actual results (with terminal output if applicable)
The error message is
[gcc-5.4.0] /home/walkingrandomly/github/sagemath/sage-7.5.1/local/var/tmp/sage/build/gcc-5.4.0/gcc-build/./gcc/as: 32: /home/walkingrandomly/github/sagemath/sage-7.5.1/local/var/tmp/sage/build/gcc-5.4.0/gcc-build/./gcc/as: Cannot fork
Full details at https://gist.github.com/mikecroucher/5a37c402d74774de15f015c3efd77139#file-gistfile1-txt
A subsequent make results in
make build/make/Makefile
make[1]: Entering directory `/home/walkingrandomly/github/sagemath/sage-7.5.1'
make[1]: `build/make/Makefile' is up to date.
make[1]: Leaving directory `/home/walkingrandomly/github/sagemath/sage-7.5.1'
build/bin/sage-logger \
"cd build/make && ./install 'all'" logs/install.log
./install: fork: Cannot allocate memory
- Your Windows build number
Windows 10 Home. Version 1607. OS Build: 14393.693
- Steps / All commands required to reproduce the error from a brand new installation
You’ll probably need apt-get install build-essentials and maybe others.
wget http://www.mirrorservice.org/sites/www.sagemath.org/src/sage-7.5.1.tar.gz
tar -xzf ./sage-7.5.1.tar.gz
cd sage-7.5.1
make
- Strace of the failing command
Don’t have it…sorry. See below.
OK. So this is odd.
While trying to get the strace, I started getting errors for EVERY command I tried. Even an ls resulted in cannot allocate memory.
I restarted Bash for Windows and started up a new make command. Currently running fine. Will update later.
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 25 (1 by maintainers)
/proc/vmstatis #1071 and is just a soft fail.