Re: [sage-devel] .configure stalls

2021-06-21 Thread Frédéric Chapoton

This *very ugly hack* of pip-installing numpy allowed me to compile sage 
and get a seemingly working sage. I agree that this is in no way a 
satisfactory solution.
Le lundi 21 juin 2021 à 18:26:26 UTC+2, dim...@gmail.com a écrit :

> On Mon, Jun 21, 2021 at 4:45 PM Frédéric Chapoton  
> wrote:
> >
> > I did it again (see below) and it allowed the compilation of sage to 
> start.
> >
> > ~/sage$ sage -pip install --upgrade --force-reinstall numpy
> > Collecting numpy
> > Downloading 
> numpy-1.20.3-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.4 
> MB)
> > || 15.4 MB 2.9 MB/s
> > Installing collected packages: numpy
> > Attempting uninstall: numpy
> > Found existing installation: numpy 1.20.3
> > Uninstalling numpy-1.20.3:
> > Successfully uninstalled numpy-1.20.3
> > Successfully installed numpy-1.20.3
>
> I don't know how these manylinux2010 wheels are meant to work, but
> here obviously one either had it
> built for the dumbest possible CPU (most probably not the case here)
> or adjust the processor capabilities during the installation,
> something I have no idea how it could work.
>
> Does building sagelib error out just like before?
>
> >
> > Le lundi 21 juin 2021 à 14:35:03 UTC+2, dim...@gmail.com a écrit :
> >>
> >> On the other hand, what did
> >> "sage -pip install numpy" actually do? Did it fetch a binary from the 
> net?
> >> Did it fetch source and built?
> >> On Monday, June 21, 2021 at 1:08:07 PM UTC+1 Dima Pasechnik wrote:
> >>>
> >>> On Mon, Jun 21, 2021 at 10:50 AM Frédéric Chapoton  
> wrote:
> >>> >
> >>> > Hello,
> >>> >
> >>> > So now I am back at the numpy issue when building sagelib, that I 
> sort of "fixed" before by a forced and ugly "sage -pip install numpy".
> >>> >
> >>> > Is my computer just too old ? I add information about it at the end 
> of my message.
> >>> >
> >>> > make --no-print-directory sagelib-SAGE_VENV-no-deps
> >>> > cd '/home/chapoton/sage/build/pkgs/sagelib' && . 
> '/home/chapoton/sage/src/bin/sage-src-env-config' && . 
> '/home/chapoton/sage/src/bin/sage-env-config' && . 
> '/home/chapoton/sage/src/bin/sage-env' && . 
> '/home/chapoton/sage/build/bin/sage-build-env-config' && . 
> '/home/chapoton/sage/build/bin/sage-build-env' && 
> SAGE_SPKG_WHEELS=/home/chapoton/sage/local/var/lib/sage/wheels 
> SAGE_INST_LOCAL=/home/chapoton/sage/local sage-logger -p 
> '/home/chapoton/sage/build/pkgs/sagelib/spkg-install' 
> '/home/chapoton/sage/logs/pkgs/sagelib-9.4.beta2.log'
> >>> > [sagelib-9.4.beta2] Discovering Python/Cython source code
> >>> > [sagelib-9.4.beta2] distributions = ['']
> >>> > [sagelib-9.4.beta2] Discovered Python/Cython sources, time: 19.60 
> seconds.
> >>> > [sagelib-9.4.beta2] running build
> >>> > [sagelib-9.4.beta2] Generating auto-generated sources
> >>> > [sagelib-9.4.beta2] Building interpreters for fast_callable
> >>> > [sagelib-9.4.beta2] -> First build of interpreters
> >>> > [sagelib-9.4.beta2] running build_cython
> >>> > [sagelib-9.4.beta2] Enabling Cython debugging support
> >>> > [sagelib-9.4.beta2] 
> 
> >>> > [sagelib-9.4.beta2] Traceback (most recent call last):
> >>> > [sagelib-9.4.beta2] File "setup.py", line 96, in 
> >>> > [sagelib-9.4.beta2] code = setup(
> >>> > [sagelib-9.4.beta2] File 
> "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/__init__.py",
>  
> line 153, in setup
> >>> > [sagelib-9.4.beta2] return distutils.core.setup(**attrs)
> >>> > [sagelib-9.4.beta2] File 
> "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/core.py",
>  
> line 148, in setup
> >>> > [sagelib-9.4.beta2] dist.run_commands()
> >>> > [sagelib-9.4.beta2] File 
> "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
>  
> line 967, in run_commands
> >>> > [sagelib-9.4.beta2] self.run_command(cmd)
> >>> > [sagelib-9.4.beta2] File 
> "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
>  
> line 986, in run_command
> >>> > [sagelib-9.4.beta2] cmd_obj.run()
> >>> > [sagelib-9.4.beta2] File 
> "/home/chapoton/sage/build/pkgs/sagelib/src/sage_setup/command/sage_build.py",
>  
> line 37, in run
> >>> > [sagelib-9.4.beta2] build.run(self)
> >>> > [sagelib-9.4.beta2] File 
> "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/command/build.py",
>  
> line 135, in run
> >>> > [sagelib-9.4.beta2] self.run_command(cmd_name)
> >>> > [sagelib-9.4.beta2] File 
> "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
>  
> line 313, in run_command
> >>> > [sagelib-9.4.beta2] self.distribution.run_command(command)
> >>> > [sagelib-9.4.beta2] File 
> "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
>  
> line 986, in run_command
> >>> > [sagelib-9.4.beta2] cmd_obj.run()
> >>> > [sagelib-9.4.beta2] File 
> "/home/chapoton/sage/build/pkgs/sag

[sage-devel] Re: Help with merge conflict

2021-06-21 Thread Volker Braun
As you said, module_list.py has been deleted in the meantime

First: abort your previous merge

git merge --abort

Then merge:

git checkout public/optional_spkg/differential_algebra-13268
git merge trac/develop
git add src/module_list.py
git commit



On Monday, June 21, 2021 at 10:37:17 PM UTC+2 adamn...@gmail.com wrote:

> Hello,
>
> I am trying to merge the branch 
> public/optional_spkg/differential_algebra-13268 into current version of 
> Sage but am running into issues. Pulling returned a merge conflict:
>
> CONFLICT (modify/delete): src/module_list.py deleted in HEAD and modified 
> in 81aef63dc5e33948f1f37a995ac09189d0a99eda. Version 
> 81aef63dc5e33948f1f37a995ac09189d0a99eda of src/module_list.py left in tree.
>
> I interpret this message as meaning module_list.py was removed from the 
> develop branch after the last commit to the 13268 branch (which was bout 2 
> years ago). module_list.py is listed as being for 'pkg-config setup'. Is 
> this no longer necessary? Does something need to be updated so that 13268 
> is compatible with the current version of Sage?
>
> I tried deleting module_list.py, but that didn't seem to work. After 
> comitting, git said I could no longer merge files, and running 'make build' 
> returned the errors:
>
> make[1]: *** [Makefile:39: all-build] Error 1
> make: *** [Makefile:16: build] Error 2
>
> I don't know how to handle these errors. Is it perhaps an issue of my 
> inexperience with git?
>
> Any help would be greatly appreciated!
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/1e49e87f-088e-4059-9950-3731645dadacn%40googlegroups.com.


[sage-devel] Help with merge conflict

2021-06-21 Thread Adam Petrucci
Hello,

I am trying to merge the branch 
public/optional_spkg/differential_algebra-13268 into current version of 
Sage but am running into issues. Pulling returned a merge conflict:

CONFLICT (modify/delete): src/module_list.py deleted in HEAD and modified 
in 81aef63dc5e33948f1f37a995ac09189d0a99eda. Version 
81aef63dc5e33948f1f37a995ac09189d0a99eda of src/module_list.py left in tree.

I interpret this message as meaning module_list.py was removed from the 
develop branch after the last commit to the 13268 branch (which was bout 2 
years ago). module_list.py is listed as being for 'pkg-config setup'. Is 
this no longer necessary? Does something need to be updated so that 13268 
is compatible with the current version of Sage?

I tried deleting module_list.py, but that didn't seem to work. After 
comitting, git said I could no longer merge files, and running 'make build' 
returned the errors:

make[1]: *** [Makefile:39: all-build] Error 1
make: *** [Makefile:16: build] Error 2

I don't know how to handle these errors. Is it perhaps an issue of my 
inexperience with git?

Any help would be greatly appreciated!

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/7e1bbafe-5f92-4cc0-9adb-a452181a2dcbn%40googlegroups.com.


Re: [sage-devel] .configure stalls

2021-06-21 Thread Dima Pasechnik
On Mon, Jun 21, 2021 at 4:45 PM Frédéric Chapoton  wrote:
>
> I did it again (see below) and it allowed the compilation of sage to start.
>
> ~/sage$ sage -pip install --upgrade --force-reinstall numpy
> Collecting numpy
>   Downloading 
> numpy-1.20.3-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.4 
> MB)
>  || 15.4 MB 2.9 MB/s
> Installing collected packages: numpy
>   Attempting uninstall: numpy
> Found existing installation: numpy 1.20.3
> Uninstalling numpy-1.20.3:
>   Successfully uninstalled numpy-1.20.3
> Successfully installed numpy-1.20.3

I don't know how these manylinux2010 wheels are meant to work, but
here obviously one  either had it
built for the dumbest possible CPU (most probably not the case here)
or adjust the processor capabilities during the installation,
something I have no idea how it could work.

Does building sagelib error out just like before?

>
> Le lundi 21 juin 2021 à 14:35:03 UTC+2, dim...@gmail.com a écrit :
>>
>> On the other hand, what did
>> "sage -pip install numpy" actually do? Did it fetch a binary from the net?
>> Did it fetch source and built?
>> On Monday, June 21, 2021 at 1:08:07 PM UTC+1 Dima Pasechnik wrote:
>>>
>>> On Mon, Jun 21, 2021 at 10:50 AM Frédéric Chapoton  
>>> wrote:
>>> >
>>> > Hello,
>>> >
>>> > So now I am back at the numpy issue when building sagelib, that I sort of 
>>> > "fixed" before by a forced and ugly "sage -pip install numpy".
>>> >
>>> > Is my computer just too old ? I add information about it at the end of my 
>>> > message.
>>> >
>>> > make --no-print-directory sagelib-SAGE_VENV-no-deps
>>> > cd '/home/chapoton/sage/build/pkgs/sagelib' && . 
>>> > '/home/chapoton/sage/src/bin/sage-src-env-config' && . 
>>> > '/home/chapoton/sage/src/bin/sage-env-config' && . 
>>> > '/home/chapoton/sage/src/bin/sage-env' && . 
>>> > '/home/chapoton/sage/build/bin/sage-build-env-config' && . 
>>> > '/home/chapoton/sage/build/bin/sage-build-env' && 
>>> > SAGE_SPKG_WHEELS=/home/chapoton/sage/local/var/lib/sage/wheels 
>>> > SAGE_INST_LOCAL=/home/chapoton/sage/local sage-logger -p 
>>> > '/home/chapoton/sage/build/pkgs/sagelib/spkg-install' 
>>> > '/home/chapoton/sage/logs/pkgs/sagelib-9.4.beta2.log'
>>> > [sagelib-9.4.beta2] Discovering Python/Cython source code
>>> > [sagelib-9.4.beta2] distributions = ['']
>>> > [sagelib-9.4.beta2] Discovered Python/Cython sources, time: 19.60 seconds.
>>> > [sagelib-9.4.beta2] running build
>>> > [sagelib-9.4.beta2] Generating auto-generated sources
>>> > [sagelib-9.4.beta2] Building interpreters for fast_callable
>>> > [sagelib-9.4.beta2] -> First build of interpreters
>>> > [sagelib-9.4.beta2] running build_cython
>>> > [sagelib-9.4.beta2] Enabling Cython debugging support
>>> > [sagelib-9.4.beta2] 
>>> > 
>>> > [sagelib-9.4.beta2] Traceback (most recent call last):
>>> > [sagelib-9.4.beta2] File "setup.py", line 96, in 
>>> > [sagelib-9.4.beta2] code = setup(
>>> > [sagelib-9.4.beta2] File 
>>> > "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/__init__.py",
>>> >  line 153, in setup
>>> > [sagelib-9.4.beta2] return distutils.core.setup(**attrs)
>>> > [sagelib-9.4.beta2] File 
>>> > "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/core.py",
>>> >  line 148, in setup
>>> > [sagelib-9.4.beta2] dist.run_commands()
>>> > [sagelib-9.4.beta2] File 
>>> > "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
>>> >  line 967, in run_commands
>>> > [sagelib-9.4.beta2] self.run_command(cmd)
>>> > [sagelib-9.4.beta2] File 
>>> > "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
>>> >  line 986, in run_command
>>> > [sagelib-9.4.beta2] cmd_obj.run()
>>> > [sagelib-9.4.beta2] File 
>>> > "/home/chapoton/sage/build/pkgs/sagelib/src/sage_setup/command/sage_build.py",
>>> >  line 37, in run
>>> > [sagelib-9.4.beta2] build.run(self)
>>> > [sagelib-9.4.beta2] File 
>>> > "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/command/build.py",
>>> >  line 135, in run
>>> > [sagelib-9.4.beta2] self.run_command(cmd_name)
>>> > [sagelib-9.4.beta2] File 
>>> > "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
>>> >  line 313, in run_command
>>> > [sagelib-9.4.beta2] self.distribution.run_command(command)
>>> > [sagelib-9.4.beta2] File 
>>> > "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
>>> >  line 986, in run_command
>>> > [sagelib-9.4.beta2] cmd_obj.run()
>>> > [sagelib-9.4.beta2] File 
>>> > "/home/chapoton/sage/build/pkgs/sagelib/src/sage_setup/command/sage_build_cython.py",
>>> >  line 211, in run
>>> > [sagelib-9.4.beta2] self.sage_include_dirs = 
>>> > sage_include_directories(use_sources=True)
>>> > [sagelib-9.4.beta2] File 
>>> > "/home/chapoton/sage/build/pkgs/sagelib/src/sage/env.

Re: [sage-devel] .configure stalls

2021-06-21 Thread Dima Pasechnik
This is now https://trac.sagemath.org/ticket/32021

On Mon, Jun 21, 2021 at 1:07 PM Dima Pasechnik  wrote:
>
> On Mon, Jun 21, 2021 at 10:50 AM Frédéric Chapoton  
> wrote:
> >
> > Hello,
> >
> > So now I am back at the numpy issue when building sagelib, that I sort of 
> > "fixed" before by a forced and ugly "sage -pip install numpy".
> >
> > Is my computer just too old ? I add information about it at the end of my 
> > message.
> >
> > make --no-print-directory sagelib-SAGE_VENV-no-deps
> > cd '/home/chapoton/sage/build/pkgs/sagelib' && . 
> > '/home/chapoton/sage/src/bin/sage-src-env-config' && . 
> > '/home/chapoton/sage/src/bin/sage-env-config' && . 
> > '/home/chapoton/sage/src/bin/sage-env' && . 
> > '/home/chapoton/sage/build/bin/sage-build-env-config' && . 
> > '/home/chapoton/sage/build/bin/sage-build-env' && 
> > SAGE_SPKG_WHEELS=/home/chapoton/sage/local/var/lib/sage/wheels 
> > SAGE_INST_LOCAL=/home/chapoton/sage/local sage-logger -p 
> > '/home/chapoton/sage/build/pkgs/sagelib/spkg-install' 
> > '/home/chapoton/sage/logs/pkgs/sagelib-9.4.beta2.log'
> > [sagelib-9.4.beta2] Discovering Python/Cython source code
> > [sagelib-9.4.beta2] distributions = ['']
> > [sagelib-9.4.beta2] Discovered Python/Cython sources, time: 19.60 seconds.
> > [sagelib-9.4.beta2] running build
> > [sagelib-9.4.beta2] Generating auto-generated sources
> > [sagelib-9.4.beta2] Building interpreters for fast_callable
> > [sagelib-9.4.beta2] -> First build of interpreters
> > [sagelib-9.4.beta2] running build_cython
> > [sagelib-9.4.beta2] Enabling Cython debugging support
> > [sagelib-9.4.beta2] 
> > 
> > [sagelib-9.4.beta2] Traceback (most recent call last):
> > [sagelib-9.4.beta2]   File "setup.py", line 96, in 
> > [sagelib-9.4.beta2] code = setup(
> > [sagelib-9.4.beta2]   File 
> > "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/__init__.py",
> >  line 153, in setup
> > [sagelib-9.4.beta2] return distutils.core.setup(**attrs)
> > [sagelib-9.4.beta2]   File 
> > "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/core.py",
> >  line 148, in setup
> > [sagelib-9.4.beta2] dist.run_commands()
> > [sagelib-9.4.beta2]   File 
> > "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
> >  line 967, in run_commands
> > [sagelib-9.4.beta2] self.run_command(cmd)
> > [sagelib-9.4.beta2]   File 
> > "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
> >  line 986, in run_command
> > [sagelib-9.4.beta2] cmd_obj.run()
> > [sagelib-9.4.beta2]   File 
> > "/home/chapoton/sage/build/pkgs/sagelib/src/sage_setup/command/sage_build.py",
> >  line 37, in run
> > [sagelib-9.4.beta2] build.run(self)
> > [sagelib-9.4.beta2]   File 
> > "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/command/build.py",
> >  line 135, in run
> > [sagelib-9.4.beta2] self.run_command(cmd_name)
> > [sagelib-9.4.beta2]   File 
> > "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
> >  line 313, in run_command
> > [sagelib-9.4.beta2] self.distribution.run_command(command)
> > [sagelib-9.4.beta2]   File 
> > "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
> >  line 986, in run_command
> > [sagelib-9.4.beta2] cmd_obj.run()
> > [sagelib-9.4.beta2]   File 
> > "/home/chapoton/sage/build/pkgs/sagelib/src/sage_setup/command/sage_build_cython.py",
> >  line 211, in run
> > [sagelib-9.4.beta2] self.sage_include_dirs = 
> > sage_include_directories(use_sources=True)
> > [sagelib-9.4.beta2]   File 
> > "/home/chapoton/sage/build/pkgs/sagelib/src/sage/env.py", line 376, in 
> > sage_include_directories
> > [sagelib-9.4.beta2] import numpy
> > [sagelib-9.4.beta2]   File 
> > "/home/chapoton/sage/local/lib/python3.8/site-packages/numpy/__init__.py", 
> > line 145, in 
> > [sagelib-9.4.beta2] from . import core
> > [sagelib-9.4.beta2]   File 
> > "/home/chapoton/sage/local/lib/python3.8/site-packages/numpy/core/__init__.py",
> >  line 22, in 
> > [sagelib-9.4.beta2] from . import multiarray
> > [sagelib-9.4.beta2]   File 
> > "/home/chapoton/sage/local/lib/python3.8/site-packages/numpy/core/multiarray.py",
> >  line 12, in 
> > [sagelib-9.4.beta2] from . import overrides
> > [sagelib-9.4.beta2]   File 
> > "/home/chapoton/sage/local/lib/python3.8/site-packages/numpy/core/overrides.py",
> >  line 7, in 
> > [sagelib-9.4.beta2] from numpy.core._multiarray_umath import (
> > [sagelib-9.4.beta2] RuntimeError: NumPy was built with baseline 
> > optimizations:
> > [sagelib-9.4.beta2] (SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42) but your 
> > machine doesn't support:
> > [sagelib-9.4.beta2] (POPCNT).
>
> we are seeing this error on much newer machines, too.
> It's a subtle bug, I guess.
>
> > [sagelib-9.4.beta2] 
> > **

Re: [sage-devel] .configure stalls

2021-06-21 Thread Dima Pasechnik
On Mon, Jun 21, 2021 at 10:50 AM Frédéric Chapoton  wrote:
>
> Hello,
>
> So now I am back at the numpy issue when building sagelib, that I sort of 
> "fixed" before by a forced and ugly "sage -pip install numpy".
>
> Is my computer just too old ? I add information about it at the end of my 
> message.
>
> make --no-print-directory sagelib-SAGE_VENV-no-deps
> cd '/home/chapoton/sage/build/pkgs/sagelib' && . 
> '/home/chapoton/sage/src/bin/sage-src-env-config' && . 
> '/home/chapoton/sage/src/bin/sage-env-config' && . 
> '/home/chapoton/sage/src/bin/sage-env' && . 
> '/home/chapoton/sage/build/bin/sage-build-env-config' && . 
> '/home/chapoton/sage/build/bin/sage-build-env' && 
> SAGE_SPKG_WHEELS=/home/chapoton/sage/local/var/lib/sage/wheels 
> SAGE_INST_LOCAL=/home/chapoton/sage/local sage-logger -p 
> '/home/chapoton/sage/build/pkgs/sagelib/spkg-install' 
> '/home/chapoton/sage/logs/pkgs/sagelib-9.4.beta2.log'
> [sagelib-9.4.beta2] Discovering Python/Cython source code
> [sagelib-9.4.beta2] distributions = ['']
> [sagelib-9.4.beta2] Discovered Python/Cython sources, time: 19.60 seconds.
> [sagelib-9.4.beta2] running build
> [sagelib-9.4.beta2] Generating auto-generated sources
> [sagelib-9.4.beta2] Building interpreters for fast_callable
> [sagelib-9.4.beta2] -> First build of interpreters
> [sagelib-9.4.beta2] running build_cython
> [sagelib-9.4.beta2] Enabling Cython debugging support
> [sagelib-9.4.beta2] 
> 
> [sagelib-9.4.beta2] Traceback (most recent call last):
> [sagelib-9.4.beta2]   File "setup.py", line 96, in 
> [sagelib-9.4.beta2] code = setup(
> [sagelib-9.4.beta2]   File 
> "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/__init__.py",
>  line 153, in setup
> [sagelib-9.4.beta2] return distutils.core.setup(**attrs)
> [sagelib-9.4.beta2]   File 
> "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/core.py",
>  line 148, in setup
> [sagelib-9.4.beta2] dist.run_commands()
> [sagelib-9.4.beta2]   File 
> "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
>  line 967, in run_commands
> [sagelib-9.4.beta2] self.run_command(cmd)
> [sagelib-9.4.beta2]   File 
> "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
>  line 986, in run_command
> [sagelib-9.4.beta2] cmd_obj.run()
> [sagelib-9.4.beta2]   File 
> "/home/chapoton/sage/build/pkgs/sagelib/src/sage_setup/command/sage_build.py",
>  line 37, in run
> [sagelib-9.4.beta2] build.run(self)
> [sagelib-9.4.beta2]   File 
> "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/command/build.py",
>  line 135, in run
> [sagelib-9.4.beta2] self.run_command(cmd_name)
> [sagelib-9.4.beta2]   File 
> "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
>  line 313, in run_command
> [sagelib-9.4.beta2] self.distribution.run_command(command)
> [sagelib-9.4.beta2]   File 
> "/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
>  line 986, in run_command
> [sagelib-9.4.beta2] cmd_obj.run()
> [sagelib-9.4.beta2]   File 
> "/home/chapoton/sage/build/pkgs/sagelib/src/sage_setup/command/sage_build_cython.py",
>  line 211, in run
> [sagelib-9.4.beta2] self.sage_include_dirs = 
> sage_include_directories(use_sources=True)
> [sagelib-9.4.beta2]   File 
> "/home/chapoton/sage/build/pkgs/sagelib/src/sage/env.py", line 376, in 
> sage_include_directories
> [sagelib-9.4.beta2] import numpy
> [sagelib-9.4.beta2]   File 
> "/home/chapoton/sage/local/lib/python3.8/site-packages/numpy/__init__.py", 
> line 145, in 
> [sagelib-9.4.beta2] from . import core
> [sagelib-9.4.beta2]   File 
> "/home/chapoton/sage/local/lib/python3.8/site-packages/numpy/core/__init__.py",
>  line 22, in 
> [sagelib-9.4.beta2] from . import multiarray
> [sagelib-9.4.beta2]   File 
> "/home/chapoton/sage/local/lib/python3.8/site-packages/numpy/core/multiarray.py",
>  line 12, in 
> [sagelib-9.4.beta2] from . import overrides
> [sagelib-9.4.beta2]   File 
> "/home/chapoton/sage/local/lib/python3.8/site-packages/numpy/core/overrides.py",
>  line 7, in 
> [sagelib-9.4.beta2] from numpy.core._multiarray_umath import (
> [sagelib-9.4.beta2] RuntimeError: NumPy was built with baseline optimizations:
> [sagelib-9.4.beta2] (SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42) but your machine 
> doesn't support:
> [sagelib-9.4.beta2] (POPCNT).

we are seeing this error on much newer machines, too.
It's a subtle bug, I guess.

> [sagelib-9.4.beta2] 
> 
> [sagelib-9.4.beta2] Error building the Sage library
>
> computer profile :
>
> processor : 1
> vendor_id : GenuineIntel
> cpu family : 6
> model : 23
> model name : Intel(R) Core(TM)2 Duo CPU P8600  @ 2.40GHz
> stepping : 10
> microcode : 0xa0b
> cpu MHz : 1492.048

Re: [sage-devel] .configure stalls

2021-06-21 Thread Frédéric Chapoton
Hello,

So now I am back at the numpy issue when building sagelib, that I sort of 
"fixed" before by a forced and ugly "sage -pip install numpy".

Is my computer just too old ? I add information about it at the end of my 
message.

make --no-print-directory sagelib-SAGE_VENV-no-deps
cd '/home/chapoton/sage/build/pkgs/sagelib' && . 
'/home/chapoton/sage/src/bin/sage-src-env-config' && . 
'/home/chapoton/sage/src/bin/sage-env-config' && . 
'/home/chapoton/sage/src/bin/sage-env' && . 
'/home/chapoton/sage/build/bin/sage-build-env-config' && . 
'/home/chapoton/sage/build/bin/sage-build-env' && 
SAGE_SPKG_WHEELS=/home/chapoton/sage/local/var/lib/sage/wheels 
SAGE_INST_LOCAL=/home/chapoton/sage/local sage-logger -p 
'/home/chapoton/sage/build/pkgs/sagelib/spkg-install' 
'/home/chapoton/sage/logs/pkgs/sagelib-9.4.beta2.log'
[sagelib-9.4.beta2] Discovering Python/Cython source code
[sagelib-9.4.beta2] distributions = ['']
[sagelib-9.4.beta2] Discovered Python/Cython sources, time: 19.60 seconds.
[sagelib-9.4.beta2] running build
[sagelib-9.4.beta2] Generating auto-generated sources
[sagelib-9.4.beta2] Building interpreters for fast_callable
[sagelib-9.4.beta2] -> First build of interpreters
[sagelib-9.4.beta2] running build_cython
[sagelib-9.4.beta2] Enabling Cython debugging support
[sagelib-9.4.beta2] 

[sagelib-9.4.beta2] Traceback (most recent call last):
[sagelib-9.4.beta2]   File "setup.py", line 96, in 
[sagelib-9.4.beta2] code = setup(
[sagelib-9.4.beta2]   File 
"/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/__init__.py", 
line 153, in setup
[sagelib-9.4.beta2] return distutils.core.setup(**attrs)
[sagelib-9.4.beta2]   File 
"/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/core.py",
 
line 148, in setup
[sagelib-9.4.beta2] dist.run_commands()
[sagelib-9.4.beta2]   File 
"/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
 
line 967, in run_commands
[sagelib-9.4.beta2] self.run_command(cmd)
[sagelib-9.4.beta2]   File 
"/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
 
line 986, in run_command
[sagelib-9.4.beta2] cmd_obj.run()
[sagelib-9.4.beta2]   File 
"/home/chapoton/sage/build/pkgs/sagelib/src/sage_setup/command/sage_build.py", 
line 37, in run
[sagelib-9.4.beta2] build.run(self)
[sagelib-9.4.beta2]   File 
"/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/command/build.py",
 
line 135, in run
[sagelib-9.4.beta2] self.run_command(cmd_name)
[sagelib-9.4.beta2]   File 
"/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
 
line 313, in run_command
[sagelib-9.4.beta2] self.distribution.run_command(command)
[sagelib-9.4.beta2]   File 
"/home/chapoton/sage/local/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
 
line 986, in run_command
[sagelib-9.4.beta2] cmd_obj.run()
[sagelib-9.4.beta2]   File 
"/home/chapoton/sage/build/pkgs/sagelib/src/sage_setup/command/sage_build_cython.py",
 
line 211, in run
[sagelib-9.4.beta2] self.sage_include_dirs = 
sage_include_directories(use_sources=True)
[sagelib-9.4.beta2]   File 
"/home/chapoton/sage/build/pkgs/sagelib/src/sage/env.py", line 376, in 
sage_include_directories
[sagelib-9.4.beta2] import numpy
[sagelib-9.4.beta2]   File 
"/home/chapoton/sage/local/lib/python3.8/site-packages/numpy/__init__.py", 
line 145, in 
[sagelib-9.4.beta2] from . import core
[sagelib-9.4.beta2]   File 
"/home/chapoton/sage/local/lib/python3.8/site-packages/numpy/core/__init__.py", 
line 22, in 
[sagelib-9.4.beta2] from . import multiarray
[sagelib-9.4.beta2]   File 
"/home/chapoton/sage/local/lib/python3.8/site-packages/numpy/core/multiarray.py",
 
line 12, in 
[sagelib-9.4.beta2] from . import overrides
[sagelib-9.4.beta2]   File 
"/home/chapoton/sage/local/lib/python3.8/site-packages/numpy/core/overrides.py",
 
line 7, in 
[sagelib-9.4.beta2] from numpy.core._multiarray_umath import (
[sagelib-9.4.beta2] RuntimeError: NumPy was built with baseline 
optimizations: 
[sagelib-9.4.beta2] (SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42) but your 
machine doesn't support:
[sagelib-9.4.beta2] (POPCNT).
[sagelib-9.4.beta2] 

[sagelib-9.4.beta2] Error building the Sage library

computer profile :

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU P8600  @ 2.40GHz
stepping : 10
microcode : 0xa0b
cpu MHz : 1492.048
cache size : 3072 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat 
pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx lm 
constant_tsc arch_perfmon pebs bts rep_goo