American Citizen on Tue, 06 Feb 2024 00:38:17 +0100


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

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


Bill's advice is exactly correct and fixed the problem.

OpenSuse package manager yast2 was putting the gp-pari libraries into the /usr/lib64 area, not the usual /usr/local/lib area which both the mwrank and gp-pari install packages use.

I have things straightened out now, with a working sage v10.2 and working GP-Pari 2.16.1 (alpha) and they coexist happily.

Opensuse kept adding new version of gcc and g++, because many system packages were built using the older compilers and it would take a herculean effort to recompile everything up to the v13 level. I found this out when I tried to remove the older compilers.

Randall

On 2/5/24 13:54, Bill Allombert wrote:
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.