Compile errors Ubuntu on WSL with Conda

108 views
Skip to first unread message

Rutger Moody

unread,
Jun 26, 2022, 7:09:36 AM6/26/22
to sage-devel

I'm trying to compile sage9.6 on Ubuntu installed on Windows11 via WSL using Conda according to these instructions: https://doc.sagemath.org/html/en/installation/conda.html#sec-installation-conda 

Apparently Conda wants to install and compile Python3.10.3 as after step: ./configure --prefix=$CONDA_PREFIX I see: python3-3.10.3: no suitable system package; standard, will be installed as an SPKG

Then when I do : make I get error compiling Python to the effect of : sys/auxv.h not found when compiling Modules/faulthandler.c

Now I read here that there's a patch for this : https://github.com/python/cpython/commit/6fd9737373f2bed03f409440b4fd50b9f8f121cb

The problem is that when i apply these changes in the source the next make just overwrites my changes. So I get the same error again.

In Makefile I see something like:

/# Preemptively download all source tarballs of normal packages. download: export SAGE_ROOT= (pwd) & \ export PATH= SAGE_ROOT/build/bin: PATH & \ sage-package download :all:

Suggesting that maybe there is a way to patch the Python source and run make again without overwriting. But so far nothing works.

Is there a way to solve this problem? Many thanks in advance!!

===============================================================

config.log
install.log
python3-3.10.3.log

Matthias Koeppe

unread,
Jun 26, 2022, 4:13:32 PM6/26/22
to sage-devel
Try "./configure --with-python=$CONDA_PREFIX/bin/python --prefix=$CONDA_PREFIX"    

Matthias Koeppe

unread,
Jun 26, 2022, 5:48:22 PM6/26/22
to sage-devel
On Sunday, June 26, 2022 at 4:09:36 AM UTC-7 rutge...@gmail.com wrote:

The problem is that when i apply these changes in the source the next make just overwrites my changes. 

Rutger Moody

unread,
Jun 27, 2022, 2:02:46 PM6/27/22
to sage-devel
Thanks a lot! That worked.
But only to lead to many other errors , some of them I've solved but they keep on coming..
Very frustrating but I kind of expected that... It seems like it's almost impossible to compile this from source unless perhaps with a specially prepared computer..
Is it OK if I post other questions like this on this forum?

Matthias Koeppe

unread,
Jun 27, 2022, 2:30:40 PM6/27/22
to sage-devel
On Monday, June 27, 2022 at 11:02:46 AM UTC-7 rutge...@gmail.com wrote:
Is it OK if I post other questions like this on this forum?

Of course, that's what the forum is for.
 

Matthias Koeppe

unread,
Jun 27, 2022, 4:04:21 PM6/27/22
to sage-devel
You might be interested in the Python update in https://trac.sagemath.org/ticket/34090, which contains the patch that you mentioned

On Monday, June 27, 2022 at 11:02:46 AM UTC-7 rutge...@gmail.com wrote:

Matthias Koeppe

unread,
Jun 28, 2022, 2:20:06 PM6/28/22
to sage-devel
I've opened https://trac.sagemath.org/ticket/34098 for an update to the documentation
Reply all
Reply to author
Forward
0 new messages