Re: [sage-support] Re: after upgrade to 9.3, SignalError: Illegal instruction

2021-09-01 Thread Dima Pasechnik
this is most probably https://trac.sagemath.org/ticket/32424

On Wed, 1 Sep 2021, 22:30 Max Alekseyev,  wrote:

> I'm also seeing illegal instruction in Sage 9.3 and 9.4 (and not in 9.2)
> while doing some linear algebra, although I'm not sure if it's the same bug
> or not.
> In either case, my bugreport is submitted to
> https://trac.sagemath.org/ticket/32447
>
> Regards,
> Max
>
> On Thursday, August 26, 2021 at 2:38:10 PM UTC-4 Nathan Dunfield wrote:
>
>> I suspect the cause is OpenBLAS.  While this library is built with
>> DYNAMIC_ARCH=1, there is still the non-performance critical code which will
>> use whatever instructions are available on the machine at compile time
>> unless you also set TARGET.  See
>>
>> https://github.com/xianyi/OpenBLAS/issues/3056
>>
>> For the macOS app, Marc Culler had to set TARGET=CORE2 so that it would
>> run on a 2013 cylindrical Mac Pro (this version is not yet posted).
>>
>> Best,
>>
>> Nathan
>>
>> On Wednesday, August 25, 2021 at 10:15:02 PM William Stein wrote:
>>
>>> Hi,
>>>
>>> I release cocalc-docker ([1], [2]) a few days ago with sage-9.4, and had
>>> people reporting back "illegal instruction" issues.  Sage is built there
>>> with SAGE_FAT_BINARY="yes", using this script [3].  One person who reported
>>> a problem had a "Dell PowerEdge R710." and I built on an intel Dell
>>> PowerEdge R630, for what it is worth.  They got the error "An illegal
>>> instructor occurred" when computing "5+2" in Sage.
>>>
>>> My solution for now is to keep cocalc-docker at sage-9.3 for the time
>>> being, and suggest that people build sage from source on their own machine
>>> if necessary.   I'll let you know if I have any further information, but I
>>> just wanted to add this data point.
>>>
>>> [1] https://github.com/sagemathinc/cocalc-docker
>>> [2] https://hub.docker.com/r/sagemathinc/cocalc
>>> [3]
>>> https://github.com/sagemathinc/cocalc-docker/blob/master/scripts/install_sage.sh
>>>
>>> On Wednesday, August 25, 2021 at 8:57:44 AM UTC-7 Marco Streng wrote:
>>>
 In the end I build 9.4 from source and that worked perfectly. And it
 turned out that the Ubuntu 18.04 binaries of 9.2 also work on this
 particular machine (though we went for 9.4 in the end). Thanks again for
 the help.

 Op dinsdag 24 augustus 2021 om 18:03:01 UTC+2 schreef slelievre:

> 2021-08-24 05:48 UTC, Dima Pasechnik:
> >
> > These "illegal instruction" errors are an indication
> > that the binary was built for a more advanced CPU
> > than yours - which does not support certain CPU
> > commands. It's a bug in "fat binary" build process
> > we see for some time.
> >
> > Build Sage yourself, or use Conda.
>
> I opened a ticket at binary-pkg for that:
> https://github.com/sagemath/binary-pkg/issues/31
>
 --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/645619ca-53e5-43be-93d6-8b82106210b3n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq0W_3ymJ920Us_bJtsFm-%3DW9nwQ6Q9pR7u-T1zxz3-x-g%40mail.gmail.com.


Re: [sage-support] Sage Crash Report

2021-09-01 Thread hbetx9
I can ask this another way. I have the tarball, and I want to end up with a 
system wide install. This is not build from source. What is the best way to 
do this? 

In the referenced instructions the modification is to SAGE_LOCAL and not 
SAGE_ROOT. I'm confused as to the difference and effect.

On Wednesday, September 1, 2021 at 2:27:46 PM UTC-5 hbetx9 wrote:

> As the directory is in /opt and ownership is root.root, I can't run this 
> as it gets permission denied when writing the log file.
>
> On Wednesday, September 1, 2021 at 2:08:56 PM UTC-5 Matthias Koeppe wrote:
>
>> See 
>> https://github.com/sagemath/sage/blob/develop/README.md#instructions-to-build-from-source
>> point 4 ("./configure --prefix")
>>
>> On Wednesday, September 1, 2021 at 12:00:15 PM UTC-7 hbetx9 wrote:
>>
>>> So I got this working in my home directory but want the SageMath 
>>> directory system wide. I moved it to /opt and changed ownership to 
>>> root.root, however this causes now a disagreement with the SAGE_ROOT 
>>> environment variable. Should I unpack the tarball as root there to install 
>>> or is there an easy config/make that I can run on this directory to get it 
>>> to work as a system wide install?
>>>
>>> On Tuesday, August 31, 2021 at 4:22:10 PM UTC-5 Matthias Koeppe wrote:
>>>
 On Tuesday, August 31, 2021 at 12:55:46 PM UTC-7 hbetx9 wrote:

> On my system, python2 and python3 is installed, but there is no 
> generic python symlink. Does this need to be created for sage and if so 
> should it be python3? In installed from tarball, so this is not an issue 
> with the Ubuntu package.


 The latest binary for Linux (https://www.sagemath.org/download.html) 
 is Sage 9.3. If you are using this binary tarball, you will have to make 
 sure that the symlink python->python3 exists; there is a package that 
 provides it. See also 
 https://wiki.sagemath.org/ReleaseTours/sage-9.3#Availability_in_distributions_and_as_binaries

 The latest version is Sage 9.4. Using the source tarball, there is no 
 need to do anything about python/python3. Just follow the instructions in 
 the README. 

  

>>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/024ab17b-41e5-4643-a0a7-c7c435b6266en%40googlegroups.com.


Re: [sage-support] Re: after upgrade to 9.3, SignalError: Illegal instruction

2021-09-01 Thread Max Alekseyev
I'm also seeing illegal instruction in Sage 9.3 and 9.4 (and not in 9.2) 
while doing some linear algebra, although I'm not sure if it's the same bug 
or not.
In either case, my bugreport is submitted 
to https://trac.sagemath.org/ticket/32447

Regards,
Max

On Thursday, August 26, 2021 at 2:38:10 PM UTC-4 Nathan Dunfield wrote:

> I suspect the cause is OpenBLAS.  While this library is built with 
> DYNAMIC_ARCH=1, there is still the non-performance critical code which will 
> use whatever instructions are available on the machine at compile time 
> unless you also set TARGET.  See
>
> https://github.com/xianyi/OpenBLAS/issues/3056
>
> For the macOS app, Marc Culler had to set TARGET=CORE2 so that it would 
> run on a 2013 cylindrical Mac Pro (this version is not yet posted).
>
> Best,
>
> Nathan
>
> On Wednesday, August 25, 2021 at 10:15:02 PM William Stein wrote:
>
>> Hi,
>>
>> I release cocalc-docker ([1], [2]) a few days ago with sage-9.4, and had 
>> people reporting back "illegal instruction" issues.  Sage is built there 
>> with SAGE_FAT_BINARY="yes", using this script [3].  One person who reported 
>> a problem had a "Dell PowerEdge R710." and I built on an intel Dell 
>> PowerEdge R630, for what it is worth.  They got the error "An illegal 
>> instructor occurred" when computing "5+2" in Sage. 
>>
>> My solution for now is to keep cocalc-docker at sage-9.3 for the time 
>> being, and suggest that people build sage from source on their own machine 
>> if necessary.   I'll let you know if I have any further information, but I 
>> just wanted to add this data point.
>>
>> [1] https://github.com/sagemathinc/cocalc-docker
>> [2] https://hub.docker.com/r/sagemathinc/cocalc
>> [3] 
>> https://github.com/sagemathinc/cocalc-docker/blob/master/scripts/install_sage.sh
>>
>> On Wednesday, August 25, 2021 at 8:57:44 AM UTC-7 Marco Streng wrote:
>>
>>> In the end I build 9.4 from source and that worked perfectly. And it 
>>> turned out that the Ubuntu 18.04 binaries of 9.2 also work on this 
>>> particular machine (though we went for 9.4 in the end). Thanks again for 
>>> the help.
>>>
>>> Op dinsdag 24 augustus 2021 om 18:03:01 UTC+2 schreef slelievre:
>>>
 2021-08-24 05:48 UTC, Dima Pasechnik: 
 > 
 > These "illegal instruction" errors are an indication 
 > that the binary was built for a more advanced CPU 
 > than yours - which does not support certain CPU 
 > commands. It's a bug in "fat binary" build process 
 > we see for some time. 
 > 
 > Build Sage yourself, or use Conda. 

 I opened a ticket at binary-pkg for that: 
 https://github.com/sagemath/binary-pkg/issues/31 

>>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/645619ca-53e5-43be-93d6-8b82106210b3n%40googlegroups.com.


Re: [sage-support] Sage Crash Report

2021-09-01 Thread hbetx9
As the directory is in /opt and ownership is root.root, I can't run this as 
it gets permission denied when writing the log file.

On Wednesday, September 1, 2021 at 2:08:56 PM UTC-5 Matthias Koeppe wrote:

> See 
> https://github.com/sagemath/sage/blob/develop/README.md#instructions-to-build-from-source
> point 4 ("./configure --prefix")
>
> On Wednesday, September 1, 2021 at 12:00:15 PM UTC-7 hbetx9 wrote:
>
>> So I got this working in my home directory but want the SageMath 
>> directory system wide. I moved it to /opt and changed ownership to 
>> root.root, however this causes now a disagreement with the SAGE_ROOT 
>> environment variable. Should I unpack the tarball as root there to install 
>> or is there an easy config/make that I can run on this directory to get it 
>> to work as a system wide install?
>>
>> On Tuesday, August 31, 2021 at 4:22:10 PM UTC-5 Matthias Koeppe wrote:
>>
>>> On Tuesday, August 31, 2021 at 12:55:46 PM UTC-7 hbetx9 wrote:
>>>
 On my system, python2 and python3 is installed, but there is no generic 
 python symlink. Does this need to be created for sage and if so should it 
 be python3? In installed from tarball, so this is not an issue with the 
 Ubuntu package.
>>>
>>>
>>> The latest binary for Linux (https://www.sagemath.org/download.html) is 
>>> Sage 9.3. If you are using this binary tarball, you will have to make sure 
>>> that the symlink python->python3 exists; there is a package that provides 
>>> it. See also 
>>> https://wiki.sagemath.org/ReleaseTours/sage-9.3#Availability_in_distributions_and_as_binaries
>>>
>>> The latest version is Sage 9.4. Using the source tarball, there is no 
>>> need to do anything about python/python3. Just follow the instructions in 
>>> the README. 
>>>
>>>  
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/3aec31b3-85a5-45f0-af52-1243a1b5b0afn%40googlegroups.com.


Re: [sage-support] Sage Crash Report

2021-09-01 Thread Matthias Koeppe
See 
https://github.com/sagemath/sage/blob/develop/README.md#instructions-to-build-from-source
point 4 ("./configure --prefix")

On Wednesday, September 1, 2021 at 12:00:15 PM UTC-7 hbetx9 wrote:

> So I got this working in my home directory but want the SageMath directory 
> system wide. I moved it to /opt and changed ownership to root.root, however 
> this causes now a disagreement with the SAGE_ROOT environment variable. 
> Should I unpack the tarball as root there to install or is there an easy 
> config/make that I can run on this directory to get it to work as a system 
> wide install?
>
> On Tuesday, August 31, 2021 at 4:22:10 PM UTC-5 Matthias Koeppe wrote:
>
>> On Tuesday, August 31, 2021 at 12:55:46 PM UTC-7 hbetx9 wrote:
>>
>>> On my system, python2 and python3 is installed, but there is no generic 
>>> python symlink. Does this need to be created for sage and if so should it 
>>> be python3? In installed from tarball, so this is not an issue with the 
>>> Ubuntu package.
>>
>>
>> The latest binary for Linux (https://www.sagemath.org/download.html) is 
>> Sage 9.3. If you are using this binary tarball, you will have to make sure 
>> that the symlink python->python3 exists; there is a package that provides 
>> it. See also 
>> https://wiki.sagemath.org/ReleaseTours/sage-9.3#Availability_in_distributions_and_as_binaries
>>
>> The latest version is Sage 9.4. Using the source tarball, there is no 
>> need to do anything about python/python3. Just follow the instructions in 
>> the README. 
>>
>>  
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/b8a59d1a-9c4a-4715-8ae6-f2df0a6c4877n%40googlegroups.com.


Re: [sage-support] Sage Crash Report

2021-09-01 Thread hbetx9
So I got this working in my home directory but want the SageMath directory 
system wide. I moved it to /opt and changed ownership to root.root, however 
this causes now a disagreement with the SAGE_ROOT environment variable. 
Should I unpack the tarball as root there to install or is there an easy 
config/make that I can run on this directory to get it to work as a system 
wide install?

On Tuesday, August 31, 2021 at 4:22:10 PM UTC-5 Matthias Koeppe wrote:

> On Tuesday, August 31, 2021 at 12:55:46 PM UTC-7 hbetx9 wrote:
>
>> On my system, python2 and python3 is installed, but there is no generic 
>> python symlink. Does this need to be created for sage and if so should it 
>> be python3? In installed from tarball, so this is not an issue with the 
>> Ubuntu package.
>
>
> The latest binary for Linux (https://www.sagemath.org/download.html) is 
> Sage 9.3. If you are using this binary tarball, you will have to make sure 
> that the symlink python->python3 exists; there is a package that provides 
> it. See also 
> https://wiki.sagemath.org/ReleaseTours/sage-9.3#Availability_in_distributions_and_as_binaries
>
> The latest version is Sage 9.4. Using the source tarball, there is no need 
> to do anything about python/python3. Just follow the instructions in the 
> README. 
>
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/546ebc75-e04c-4587-be1d-760018dab54en%40googlegroups.com.