Prime95 icon indicating copy to clipboard operation
Prime95 copied to clipboard

how to compile on linux64

Open virophagesp opened this issue 1 year ago • 5 comments
trafficstars

I keep getting errors from precompiled stuff and also many tutorials are outdated

virophagesp avatar Jun 20 '24 23:06 virophagesp

Sorry, @virophagesp , I didn't compile sucessfully too. but the following maybe helpful, tell me please if it works

  1. yum install gmp-devel or compile from source code
  2. yum install hwloc-devel or compile fomr source code: https://github.com/open-mpi/hwloc
  3. compile gwnum
cd gwnum
cp linux64/* .
make -f make64
  1. compile mprime
cd ../linux64
make

shafferjohn avatar Jun 21 '24 06:06 shafferjohn

Sorry, @virophagesp , I didn't compile sucessfully too. but the following maybe helpful, tell me please if it works

  1. yum install gmp-devel or compile from source code
  2. yum install hwloc-devel or compile fomr source code: https://github.com/open-mpi/hwloc
  3. compile gwnum

cd gwnum cp linux64/* . make -f make64 4. compile mprime

cd ../linux64 make

Hey! Im trying to build this too, and after lots of attempts i still cant compile. Your commands (apparently mprime compiling stage) fails on linkage with errors about missing -lcurl and -lhwloc. What you have to do: before running final make, you should open the makefile, and remove all -Wl,-B* flags from LIBS. Apparently, -Wl,-Bstatic means that the next libraries should be linked statically, and that happens with libhwloc and libcurl. Forcing dynamic linkage should't make any real impact on performance. If you want, i can make a PR with the fix - please, include this in README. By the way, newly built Prime95 is completely unusable. Meh.

HyperWinX avatar Aug 18 '25 19:08 HyperWinX

I guess the static thing is a holdover from the days when dynamic linking had real tangible performance overhead. Or perhaps some consideration for being able to run it without installing additional things is made. In either case I am not sure if you can persuade the authors to go dynamic anytime soon... Anyways gmp-static does seem to exist, but probably not the other two.

Artoria2e5 avatar Aug 28 '25 06:08 Artoria2e5