Re: [sage-devel] Error building deformation and libsemigroups 0.6.7

2021-04-26 Thread Dima Pasechnik
On Mon, Apr 26, 2021 at 11:11 AM Dima Pasechnik  wrote:
>
> On Mon, Apr 26, 2021 at 10:09 AM Jean-Pierre Flori  wrote:
> >
> > Fix for deformation has been tagged in my fork.
> > And mentioned here:
> > https://trac.sagemath.org/ticket/30325
> > Feel free to package and review.

https://trac.sagemath.org/ticket/30325 is now ready for reviewing.

>
> I've quickly checked, and it appears to just work with modern GMP. See
> https://github.com/jpflori/deformation/pull/3
>
> >
> > Not sure that it supports GMP instead of MPIR (which is also abandonware).
> >
> > Le jeudi 22 avril 2021 à 17:44:39 UTC+2, dim...@gmail.com a écrit :
> >>
> >> errors building libsemigroups should be reported on its github page:
> >>
> >> https://github.com/libsemigroups/libsemigroups
> >>
> >> deformation package, on the other hand is more or less abandonware.
> >>
> >>
> >>
> >> On Thu, 22 Apr 2021, 15:17 Tirthankar Mazumder,  
> >> wrote:
> >>>
> >>> 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
> >>>
> >>> --
> >>> 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+...@googlegroups.com.
> >>> To view this discussion on the web visit 
> >>> https://groups.google.com/d/msgid/sage-devel/f1184a5e-d6d4-4247-ad07-703de70a6fefn%40googlegroups.com.
> >
> > --
> > 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/136b5fce-5f05-4d78-8bdf-97defa9bfd4bn%40googlegroups.com.

-- 
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/CAAWYfq3DDGsBXWJcTGoLZqfGe%2BEQw50ZtxYRYLxueM--gGg9-w%40mail.gmail.com.


Re: [sage-devel] Error building deformation and libsemigroups 0.6.7

2021-04-26 Thread Dima Pasechnik
On Mon, Apr 26, 2021 at 10:09 AM Jean-Pierre Flori  wrote:
>
> Fix for deformation has been tagged in my fork.
> And mentioned here:
> https://trac.sagemath.org/ticket/30325
> Feel free to package and review.

I've quickly checked, and it appears to just work with modern GMP. See
https://github.com/jpflori/deformation/pull/3

>
> Not sure that it supports GMP instead of MPIR (which is also abandonware).
>
> Le jeudi 22 avril 2021 à 17:44:39 UTC+2, dim...@gmail.com a écrit :
>>
>> errors building libsemigroups should be reported on its github page:
>>
>> https://github.com/libsemigroups/libsemigroups
>>
>> deformation package, on the other hand is more or less abandonware.
>>
>>
>>
>> On Thu, 22 Apr 2021, 15:17 Tirthankar Mazumder,  wrote:
>>>
>>> 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
>>>
>>> --
>>> 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+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/sage-devel/f1184a5e-d6d4-4247-ad07-703de70a6fefn%40googlegroups.com.
>
> --
> 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/136b5fce-5f05-4d78-8bdf-97defa9bfd4bn%40googlegroups.com.

-- 
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/CAAWYfq1GFc0GnLCsgVYMFAh5WbcofcX%2BHq8rf1XRmfP2511trQ%40mail.gmail.com.


Re: [sage-devel] Error building deformation and libsemigroups 0.6.7

2021-04-26 Thread Jean-Pierre Flori
Fix for deformation has been tagged in my fork.
And mentioned here:
https://trac.sagemath.org/ticket/30325
Feel free to package and review.

Not sure that it supports GMP instead of MPIR (which is also abandonware).

Le jeudi 22 avril 2021 à 17:44:39 UTC+2, dim...@gmail.com a écrit :

> errors building libsemigroups should be reported on its github page:
>
> https://github.com/libsemigroups/libsemigroups
>
> deformation package, on the other hand is more or less abandonware.
>
>
>
> On Thu, 22 Apr 2021, 15:17 Tirthankar Mazumder,  
> wrote:
>
>> 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
>>
>> -- 
>> 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+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-devel/f1184a5e-d6d4-4247-ad07-703de70a6fefn%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/136b5fce-5f05-4d78-8bdf-97defa9bfd4bn%40googlegroups.com.


Re: [sage-devel] Error building deformation and libsemigroups 0.6.7

2021-04-22 Thread Dima Pasechnik
errors building libsemigroups should be reported on its github page:

https://github.com/libsemigroups/libsemigroups

deformation package, on the other hand is more or less abandonware.



On Thu, 22 Apr 2021, 15:17 Tirthankar Mazumder, 
wrote:

> 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
>
> --
> 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/f1184a5e-d6d4-4247-ad07-703de70a6fefn%40googlegroups.com
> 
> .
>

-- 
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/CAAWYfq2Ffy6chF1yyuvGP9O%2BRXzTWKwvzgi4jcg0vTDf%3D0iq1w%40mail.gmail.com.


[sage-devel] Error building deformation and libsemigroups 0.6.7

2021-04-22 Thread Tirthankar Mazumder
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

-- 
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/f1184a5e-d6d4-4247-ad07-703de70a6fefn%40googlegroups.com.
Found local metadata for deformation-d05941b.p0
Using cached file 
/home/tirthankar/sage/sage-9.2/upstream/deformation-d05941b.tar.bz2
deformation-d05941b.p0

Setting up build directory for deformation-d05941b.p0
Finished extraction
No patch files found in ../patches

Host system:
Linux DESKTOP-KVK1CAQ 5.4.91-microsoft-standard-WSL2 #1 SMP Mon Jan 25 18:39:31 
UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 
9.3.0-17ubuntu1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs 
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr 
--with-gcc-major-version-only --program-suffix=-9 
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id 
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix 
--libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug 
--enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new 
--enable-gnu-unique-object --disable-vtable-verify --enable-plugin 
--enable-default-pie --with-system-zlib --with-target-system-zlib=auto 
--enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 
--with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib 
--with-tune=generic 
--enable-offload-targets=nvptx-none=/build/gcc-9-HskZEa/gcc-9-9.3.0/debian/tmp-nvptx/usr,hsa
 --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu 
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04) 

Package 'deformation' is currently not installed
No legacy uninstaller found for 'deformation'; nothing to do
FLINT_LIB_DIR set to /usr/local/lib
FLINT_INC_DIR set to /usr/local/include
Configuring...x86_64-Linux
Testing __builtin_popcountl...yes
Testing native popcount...yes
Testing __thread...yes
DEFORMATION was successfully configured.
Building deformation-d05941b.p0
mkdir -p build/interfaces
CC   ../build/perm/randtest.lo
In file included from randtest.c:1:
../perm.h:115:12: warning: '_perm_print' defined but not used 
[-Wunused-function]
  115 | static int _perm_print(const long * vec, long n)
  |^~~
../perm.h:100:12: warning: '_long_vec_print' defined but not used 
[-Wunused-function]
  100 | static int