Bill Allombert on Mon, 05 Feb 2024 22:54:30 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: is this a pari error or mwrank error or what?


On Mon, Feb 05, 2024 at 01:38:08PM -0800, American Citizen wrote:
> Hello:
> 
> I switched over to using the g++ -13 compiler since someone gave me a note
> that my current level 7 version (system gcc) was too old.
> 
> I recompiled gp-pari to v 2.16.1 (alpha) and did "make install" also. It
> runs fine.
> 
> I am attempting to recompile the mwrank program from John Cremona,
> v"20231212' which should be the latest.
> 
> But during the command to built the archive, I get a TLS symbol failure
> 
> /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld:
> pari_mainstack: TLS definition in
> /usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64/libpari.so section
> .tbss mismatches non-TLS reference in .libs/parifact.o
> /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld:
> /usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64/libpari.so: error
> adding symbols: bad value
> collect2: error: ld returned 1 exit status
> make[1]: *** [Makefile:468: libec.la] Error 1
> make[1]: Leaving directory '/home/owner/math/eclib-20231212/libsrc'
> make: *** [Makefile:462: all-recursive] Error 1
> 
> Looking over at the /usr/lib64 folder I see
> 
> -rwxr-xr-x 1 root root 10146584 May 22  2023 libpari-gmp-tls.so.2.15.2
> lrwxrwxrwx 1 root root       25 Sep 11 11:50 libpari-gmp-tls.so.8 ->
> libpari-gmp-tls.so.2.15.2
> lrwxrwxrwx 1 root root       25 May 22  2023 libpari.so ->
> libpari-gmp-tls.so.2.15.2
> 
> And apparently the problem is in the mismatch of the symbols. I assume that
> the Yast2 pkg manager installed this version.

Uninstall all pari related RPM packages installed, including the -devel one.
Otherwise your system will be very confusing with two incompatible versions
installed at the same time.

Cheers,
Bill.