Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing package qepcad-B.1.72 #36831

Closed
2 tasks done
anirjoshi opened this issue Dec 7, 2023 · 4 comments · Fixed by #36837
Closed
2 tasks done

Error installing package qepcad-B.1.72 #36831

anirjoshi opened this issue Dec 7, 2023 · 4 comments · Fixed by #36837

Comments

@anirjoshi
Copy link

anirjoshi commented Dec 7, 2023

Environment

- **OS**: Using Ubuntu 20.04 inside Docker in Mac M2
- **Sage Version**: 10.2

Steps To Reproduce

I tried to install sage using the commands mentioned as a solution to a previous issue raised here.

I get the following error:

[qepcad-B.1.72] ****************************************************
[qepcad-B.1.72] Package 'qepcad' is currently not installed
[qepcad-B.1.72] No legacy uninstaller found for 'qepcad'; nothing to do
[qepcad-B.1.72] Making the optimized libraries ...
[qepcad-B.1.72] cd extensions; make   opt "CCo=g++" "FLAGSo=-g -O2 -Wl,-rpath,/root/Desktop/sage_git/sage-10.2/local/lib" "CCd=g++" "FLAGSd=-g" "MAKE=make  " "SUBMAKEFLAGS=-j1" -j1
[qepcad-B.1.72] Making the optimized libraries ...
[qepcad-B.1.72] cd sfext; make   -j1
[qepcad-B.1.72] g++ -g -O2 -Wl,-rpath,/root/Desktop/sage_git/sage-10.2/local/lib -I/root/Desktop/sage_git/sage-10.2/local/lib/saclib/include -I/root/Desktop/sage_git/sage-10.2/local/var/tmp/sage/build/qepcad-B.1.72/src/source/ -I. -c addpol/BPOLSETS.c
[qepcad-B.1.72] In file included from /root/Desktop/sage_git/sage-10.2/local/lib/saclib/include/saclib.h:11,
[qepcad-B.1.72]                  from /root/Desktop/sage_git/sage-10.2/local/var/tmp/sage/build/qepcad-B.1.72/src/source/qepcad.h:12,
[qepcad-B.1.72]                  from addpol/BPOLSETS.c:23:
[qepcad-B.1.72] /root/Desktop/sage_git/sage-10.2/local/lib/saclib/include/hfloats.h:12:10: fatal error: sysdep.h: No such file or directory
[qepcad-B.1.72]    12 | #include "sysdep.h"
[qepcad-B.1.72]       |          ^~~~~~~~~~
[qepcad-B.1.72] compilation terminated.
[qepcad-B.1.72] make[7]: *** [Makefile:242: BPOLSETS.o] Error 1
[qepcad-B.1.72] make[6]: *** [Makefile:11: opt] Error 2
[qepcad-B.1.72] make[5]: *** [Makefile:32: opt] Error 2
[qepcad-B.1.72] Error building qepcad.
[qepcad-B.1.72] 
[qepcad-B.1.72] real	0m0.148s
[qepcad-B.1.72] user	0m0.119s
[qepcad-B.1.72] sys	0m0.030s
[qepcad-B.1.72] ************************************************************************
[qepcad-B.1.72] Error installing package qepcad-B.1.72
[qepcad-B.1.72] ************************************************************************
[qepcad-B.1.72] Please email sage-devel (http://groups.google.com/group/sage-devel)
[qepcad-B.1.72] explaining the problem and including the log files
[qepcad-B.1.72]   /root/Desktop/sage_git/sage-10.2/logs/pkgs/qepcad-B.1.72.log
[qepcad-B.1.72] and
[qepcad-B.1.72]   /root/Desktop/sage_git/sage-10.2/config.log
[qepcad-B.1.72] Describe your computer, operating system, etc.
[qepcad-B.1.72] If you want to try to fix the problem yourself, *don't* just cd to
[qepcad-B.1.72] /root/Desktop/sage_git/sage-10.2/local/var/tmp/sage/build/qepcad-B.1.72 and type 'make' or whatever is appropriate.
[qepcad-B.1.72] Instead, the following commands setup all environment variables
[qepcad-B.1.72] correctly and load a subshell for you to debug the error:
[qepcad-B.1.72]   (cd '/root/Desktop/sage_git/sage-10.2/local/var/tmp/sage/build/qepcad-B.1.72' && '/root/Desktop/sage_git/sage-10.2/sage' --buildsh)
[qepcad-B.1.72] When you are done debugging, you can type "exit" to leave the subshell.
[qepcad-B.1.72] ************************************************************************
make[4]: *** [Makefile:3211: qepcad-SAGE_LOCAL-no-deps] Error 1
make[3]: *** [Makefile:3211: /root/Desktop/sage_git/sage-10.2/local/var/lib/sage/installed/qepcad-B.1.72] Error 2
make[2]: *** [Makefile:2840: all-start] Error 2
make[2]: Leaving directory '/root/Desktop/sage_git/sage-10.2/build/make'

real	10m59.143s
user	6m33.123s
sys	0m47.424s
***************************************************************
Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make all-start'):

* package:         qepcad-B.1.72
  last build time: Dec 6 19:36
  log file:        /root/Desktop/sage_git/sage-10.2/logs/pkgs/qepcad-B.1.72.log
  build directory: /root/Desktop/sage_git/sage-10.2/local/var/tmp/sage/build/qepcad-B.1.72

It is safe to delete any log files and build directories, but they
contain information that is helpful for debugging build problems.
WARNING: If you now run 'make' again, the build directory of the
same version of the package will, by default, be deleted. Set the
environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.

make[1]: *** [Makefile:40: all-start] Error 1
make[1]: Leaving directory '/root/Desktop/sage_git/sage-10.2'
make: *** [Makefile:13: all] Error 2

When I open the qepcad-B.1.72.log file I see the following error:

Attempting to download package qepcad-B.1.72.tar.gz from mirrors
https://github.com/sagemath/sage/releases/download/10.2/qepcad-B.1.72.tar.gz
[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
ERROR [transfer|run:135]: [Errno 404] Not Found: '//github.com/sagemath/sage/releases/download/10.2/qepcad-B.1.72.tar.gz'
https://github.com/sagemath/sage/releases/download/10.1/qepcad-B.1.72.tar.gz
[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
ERROR [transfer|run:135]: [Errno 404] Not Found: '//github.com/sagemath/sage/releases/download/10.1/qepcad-B.1.72.tar.gz'
http://files.sagemath.org/spkg/upstream/qepcad/qepcad-B.1.72.tar.gz
[......................................................................]
qepcad-B.1.72

Is the qepcad-B.1.72.tar.gz not being downloaded the issue, is there any way to resolve this?

Thanks
Best Regards

Config log

config.log

Package logs

qepcad-B.1.72.log

Additional Information

I hope these log files do not contain any sensitive data.

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide
@dimpase
Copy link
Member

dimpase commented Dec 7, 2023

It seems that there could be several issues at play here.

First, B.1.72 dates back to from 2018, when arm64 arch wasn't very
popular, and so
it probably wasn't even tested.
I found that Ubuntu 22 (but not Ubuntu 20) carries a version of qepad
package for arm64, version B.1.74, which dates back to 2021,
and might be a better fit. We'll do an update of our qepcad package.
Is there any chance you could switch to Ubuntu 22? (With docker it
might be matter of minutes).

Then you can try installing qepcad using apt-get and check that it
works. While Sage doesn't at the moment have an option to use a
system-wide qepcad,
it is trivial to add, and we'll take care of this.

@dimpase
Copy link
Member

dimpase commented Dec 8, 2023

I think #36837 ought to work on your machine (at least it works natively on an M1 macOS machine)

@anirjoshi
Copy link
Author

@dimpase Thank you, do I have to change the OS of the docker to Ubuntu 22.04? It does not seem to work on Ubuntu 20.04 (with the docker). I get the following error:

[qepcad-B.1.72] ************************************************************************
[qepcad-B.1.72] Error installing package qepcad-B.1.72
[qepcad-B.1.72] ************************************************************************

config.log
qepcad-B.1.72.log

I just ran the make command, should I do a fresh install of sage 10.2?
Thank you!

@dimpase
Copy link
Member

dimpase commented Dec 9, 2023

you most probably don't have to change the OS, but you need to check out the branch of that PR and build it. It will install version.1.74 of qepcad

vbraun pushed a commit to vbraun/sage that referenced this issue Dec 10, 2023
As noted in sagemath#36835, we missed an update to qepcad done in 2021. It has
made it into Debian and Fedora,
and we use Debian's tarball and patches (most of the latter are updated
versions of our B 1.72 patches)

We removed 'B' from the version number to accommodate the tarfile name
from Debian.

We also update saclib to the latest version

Fixes sagemath#36831
Fixes sagemath#36835

URL: sagemath#36837
Reported by: Dima Pasechnik
Reviewer(s): Matthias Köppe
vbraun pushed a commit to vbraun/sage that referenced this issue Dec 13, 2023
    
As noted in sagemath#36835, we missed an update to qepcad done in 2021. It has
made it into Debian and Fedora,
and we use Debian's tarball and patches (most of the latter are updated
versions of our B 1.72 patches)

We removed 'B' from the version number to accommodate the tarfile name
from Debian.

We also update saclib to the latest version

Fixes sagemath#36831
Fixes sagemath#36835
    
URL: sagemath#36837
Reported by: Dima Pasechnik
Reviewer(s): Matthias Köppe
@mkoeppe mkoeppe added this to the sage-10.3 milestone Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants