While running
make ptestalllong, I was able to build all the packages that it needs except for Deformation. I tried building it many times, but it failed every time. It said/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status
I got all the other packages to install, even though in some of them I had to manually go to their download directory (which was in SAGE_ROOT/local/var/tmp/sage/build/) and edit the Makefile. The reason for this was, some of the packages (specifically, libsemigroups-0.6.7) output a Makefile with the -march and -mtune flags set for the compiler, but I have an 11th gen Intel processor, so GCC doesn't accept tigerlake or native as a valid flag yet. The Makefile generator for that library (which I believe is GNU AutoTools) should incorporate a check to see if the -march=native flag is available on the target system, like the cryptominisat-5.6.8 package does.
I'm attaching 4 log files: The entire log for for deformation-d05941b.p0, which contains the build output for every single time I tried to build the package, a shortened version of that log file which contains what (I feel) is the relevant portion of that log file, the entire log file of libsemigroups-0.6.7, and a shorter version of the libsemigroups-0.6.7 log file which contains what (I feel) is the relevant portion of that lengthy log file.
P.S. --- I have some experience in building Sage on WSL2, having done it twice (on two different machines), so I want to edit the
Sage on Windows page's WSL section, but it appears that you can't use your GitHub-linked Trac account on the Wiki. How would I go about getting an account I can use on the Wiki? I'd prefer having one account to use across
trac.sagemath.org and the Wiki, if that's possible.
Thanks in advance,
Tirthankar