mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > And now for something completely different

Reply
 
Thread Tools
Old 2022-11-28, 19:38   #1
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

148A16 Posts
Default Ubuntu troubles with cm builds

I'm starting a new thread to address these, rather than clutter existing threads. I haven't contacted the author(s) yet, because I'm not familiar enough with where my issues are and the solutions may well be simple.

Basically, I installed most of the dependencies via the repositories for Ubuntu 20.04, leaving only mpfrcx and cm to install manually.

This worked great for the first machine I tried, and almost* great for the second. Both compiled and passed all the checks and are working without major issues.

I've tried three machines since then and all three fail the cm make check step due to the inability to load the libmpfrcx.so.1 library. But, the ./configure for cm had no trouble finding it in its check and it is installed to the exact same place on all five machines.

All five machines are Ubuntu 20.04 and all meet the dependencies for cm.

* Oddly, although running fine, this machine does not produce .primo files, while the first one does. All commands (and options) are identical.
EdH is offline   Reply With Quote
Old 2022-11-28, 19:51   #2
kruoli
 
kruoli's Avatar
 
"Oliver"
Sep 2017
Porta Westfalica, DE

2·23·29 Posts
Default

IIRC, it has to be compiled manually beforehand. See e.g. http://gitlab.inria.fr/enge/mpfrcx.
kruoli is online now   Reply With Quote
Old 2022-11-28, 20:36   #3
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2×11×239 Posts
Default

I did compile and install mpfrcx before compiling and installing cm, if that's what you mean.

The steps I'm trying to use (hopefully to supply in yet another (How I . . .):

(GMP-6.2.0 and PARI/GP already installed)
sudo apt install libmpc-dev libmpfr-dev libpari-dev
acquire the tars for mpfrcx and cm and unpack
./configure for mpfrcx
make
make check
sudo make install
./configure for cm
make
make check - failure

You have reminded me of something, though. On the first machine, I may have installed more than the minimum (-dev) for one or more package. Maybe that's my issue, although I would expect the ./configure to be accurate in its checking, and I believe the minimum was what I used for the second machine.
EdH is offline   Reply With Quote
Old 2022-11-28, 21:07   #4
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2·11·239 Posts
Default

Interesting partial progress: I installed mpc as an addition to the other mentioned packages and one of the non-working machines passed the check and runs ecpp, but there are still no .primo certificates.

I tried a totally separate machine with all the aforementioned packages, such that it should match the previous configuration and it fails the check.

More study is necessary. . .
EdH is offline   Reply With Quote
Old 2022-11-29, 11:42   #5
xilman
Bamboozled!
 
xilman's Avatar
 
"๐’‰บ๐’ŒŒ๐’‡ท๐’†ท๐’€ญ"
May 2003
Down not across

266168 Posts
Default

Trying desperately to remember what I had to do to get it running on my Ubuntu sytstems...

I wonder if it was this LD_LIBRARY_PATH=/usr/local/lib

though that may have been some other package such as Algol 68 Genie.
xilman is offline   Reply With Quote
Old 2022-11-29, 13:47   #6
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2·11·239 Posts
Default

I know I had to work with PATHs to get my GPU packages to work right and I explored the PATHs for these machines for ecpp.

I've been partially successful by installing mpc (rather than just libmpc-dev) on some of the machines via the repository, but only a couple started working then and none of the machines, other than the very first, will generate .primo certs.

My next step is going to be uninstalling all the repo versions and manually installing the available packages from multiprecision.org to see what that may accomplish.
EdH is offline   Reply With Quote
Old 2022-11-29, 15:51   #7
xilman
Bamboozled!
 
xilman's Avatar
 
"๐’‰บ๐’ŒŒ๐’‡ท๐’†ท๐’€ญ"
May 2003
Down not across

2D8E16 Posts
Default

Quote:
Originally Posted by xilman View Post
Trying desperately to remember what I had to do to get it running on my Ubuntu sytstems...

I wonder if it was this LD_LIBRARY_PATH=/usr/local/lib

though that may have been some other package such as Algol 68 Genie.
Yup, looks like it.



pcl@thoth:~/Pictures$ ls /usr/local/lib
libcm.a libcm_mpi.a libcm_mpi.so libcm_mpi.so.0.0.0 libcm.so.0 libmpfrcx.a libmpfrcx.so libmpfrcx.so.1.2.3 python3.10 R
libcm.la libcm_mpi.la libcm_mpi.so.0 libcm.so libcm.so.0.0.0 libmpfrcx.la libmpfrcx.so.1 pypy2.7 python3.7 x86_64-linux-gnu
pcl@thoth:~/Pictures$
xilman is offline   Reply With Quote
Old 2022-11-29, 16:51   #8
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2·11·239 Posts
Default

Thanks!

I "think" I have found the problem, but all is not well and my attention span is diminishing.

What I HAVE discovered is that while libmpc-dev is of sufficient version in the repository, mpc is NOT. Neither is libmpfr-dev. To manually install mpc requires me to manually install mpfr, which is OK, but mpc's make check fails:
Code:
Error, mpc_mul returns an out-of-range exponent:
0.10010110101000101010000000001001011011000011101100000E-1085!!!<!!!
Bug most probably in MPFR, please upgrade to MPFR 4.1.0 or later
FAIL tmul (exit status: 1)
even though mpfr is the current 4.1.1. Subsequent attempts (after all the uninstall, clean, etc.) prove the failure repeatable.

The most annoying thing is that the first machine worked fine with all the repository versions, but each of the other machines fail in various manners.

Later today I will try this again with a yet un-fiddled with machine in my set and see what happens with it. Perhaps these others have a bit of left over code somewhere.
EdH is offline   Reply With Quote
Old 2022-11-29, 19:00   #9
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2×11×239 Posts
Default

Quote:
Originally Posted by EdH View Post
. . .
Later today I will try this again with a yet un-fiddled with machine in my set and see what happens with it. Perhaps these others have a bit of left over code somewhere.
A try from scratch gave me the same error in mpc make check. This was my last test. I quit!
EdH is offline   Reply With Quote
Old 2022-11-30, 04:14   #10
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

11,087 Posts
Default

Quote:
Originally Posted by EdH View Post
A try from scratch gave me the same error in mpc make check. This was my last test. I quit!
Just a suggestion...

Have you tried attacking this problem space using a different OS substrate? Personally, I have given up on Ubuntu. In all of my spaces.

For LTS Linux contexts, I'm currently deploying either on pure Debian (when I *have to*), or Rocky Linux when I'm allowed to future-proof.
chalsall is offline   Reply With Quote
Old 2022-11-30, 05:41   #11
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

5×29×31 Posts
Default

@EdH, did you get mpc from https://www.multiprecision.org/mpc/download.html ?

I installed the headers only through apt

Code:
apt list mpc                                                                                                                                                                      
Listing... Done
mpc/kali-rolling 0.34-1+b1 amd64
Code:
apt list libmpc-dev
Listing... Done
libmpc-dev/kali-rolling,now 1.2.1-2 amd64 [installed]
Code:
ls /usr/local/lib                                                                                                                                                                 
libcm.a      libcm_mpi.la    libcm_mpi.so.0.0.0  libcm.so.0.0.0  libgmp.a   libgmp.so.10      libmpfrcx.a   libmpfrcx.so.1      libprimesieve.a  pkgconfig
libcm.la     libcm_mpi.so    libcm.so            libecm.a        libgmp.la  libgmp.so.10.4.1  libmpfrcx.la  libmpfrcx.so.1.2.3  libysieve.a      python2.7
libcm_mpi.a  libcm_mpi.so.0  libcm.so.0          libecm.la       libgmp.so  libgwnum.a        libmpfrcx.so  libmsieve.a         libytools.a      python3.10

Last fiddled with by paulunderwood on 2022-11-30 at 06:09
paulunderwood is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gpuowl Windows builds kriesel GpuOwl 34 2022-12-10 19:18
Would Personal Builds run win-11? a1call Hardware 29 2021-11-27 14:42
Apparent Ubuntu Version Troubles with ecmpi EdH GMP-ECM 1 2020-05-04 13:16
ARM builds and SIMD-assembler prospects ewmayer Mlucas 183 2019-02-25 08:17
Running 32-bit builds on a Win7 system ewmayer Programming 34 2010-10-18 22:36

All times are UTC. The time now is 12:02.


Mon Feb 6 12:03:00 UTC 2023 up 172 days, 9:31, 1 user, load averages: 0.77, 0.67, 0.79

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

โ‰  ยฑ โˆ“ รท ร— ยท โˆ’ โˆš โ€ฐ โŠ— โŠ• โŠ– โŠ˜ โŠ™ โ‰ค โ‰ฅ โ‰ฆ โ‰ง โ‰จ โ‰ฉ โ‰บ โ‰ป โ‰ผ โ‰ฝ โŠ โŠ โŠ‘ โŠ’ ยฒ ยณ ยฐ
โˆ  โˆŸ ยฐ โ‰… ~ โ€– โŸ‚ โซ›
โ‰ก โ‰œ โ‰ˆ โˆ โˆž โ‰ช โ‰ซ โŒŠโŒ‹ โŒˆโŒ‰ โˆ˜ โˆ โˆ โˆ‘ โˆง โˆจ โˆฉ โˆช โจ€ โŠ• โŠ— ๐–• ๐–– ๐–— โŠฒ โŠณ
โˆ… โˆ– โˆ โ†ฆ โ†ฃ โˆฉ โˆช โŠ† โŠ‚ โŠ„ โŠŠ โŠ‡ โŠƒ โŠ… โŠ‹ โŠ– โˆˆ โˆ‰ โˆ‹ โˆŒ โ„• โ„ค โ„š โ„ โ„‚ โ„ต โ„ถ โ„ท โ„ธ ๐“Ÿ
ยฌ โˆจ โˆง โŠ• โ†’ โ† โ‡’ โ‡ โ‡” โˆ€ โˆƒ โˆ„ โˆด โˆต โŠค โŠฅ โŠข โŠจ โซค โŠฃ โ€ฆ โ‹ฏ โ‹ฎ โ‹ฐ โ‹ฑ
โˆซ โˆฌ โˆญ โˆฎ โˆฏ โˆฐ โˆ‡ โˆ† ฮด โˆ‚ โ„ฑ โ„’ โ„“
๐›ข๐›ผ ๐›ฃ๐›ฝ ๐›ค๐›พ ๐›ฅ๐›ฟ ๐›ฆ๐œ€๐œ– ๐›ง๐œ ๐›จ๐œ‚ ๐›ฉ๐œƒ๐œ— ๐›ช๐œ„ ๐›ซ๐œ… ๐›ฌ๐œ† ๐›ญ๐œ‡ ๐›ฎ๐œˆ ๐›ฏ๐œ‰ ๐›ฐ๐œŠ ๐›ฑ๐œ‹ ๐›ฒ๐œŒ ๐›ด๐œŽ๐œ ๐›ต๐œ ๐›ถ๐œ ๐›ท๐œ™๐œ‘ ๐›ธ๐œ’ ๐›น๐œ“ ๐›บ๐œ”