mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2017-08-29, 02:02   #12
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013

22×733 Posts
Default

Quote:
Originally Posted by Prime95 View Post
MPIR compiles quite a bit cleaner. I've built a 32-bit DLL and run 'make check' successfully.

Two gotchas so far. The Makefile fails if the path contain blanks as in
--prefix=/home/'George Woltman'/mpir-3.0.0
Building the .lib file for the DLL requires renaming the libmpir-3.dll.def file before executing the MSVC library manager.
Try: --prefix="/home/George\ Woltman/mpir-3.0.0"

The shell will eat the quotes, and the escaped space should be passed to the actual commands being run.
Mark Rose is offline   Reply With Quote
Old 2017-08-29, 02:09   #13
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

2×53×71 Posts
Default

Quote:
Originally Posted by Mark Rose View Post
Try: --prefix="/home/George\ Woltman/mpir-3.0.0"

The shell will eat the quotes, and the escaped space should be passed to the actual commands being run.
Thanks. My primitive solution was to move mpir up one directory. :)
Prime95 is offline   Reply With Quote
Old 2017-08-29, 02:11   #14
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

2·53·71 Posts
Default

One more glitch on 64-bit windows. I get errors building MPIR when configured with --enable-fat. The good news is I can build the DLL from the GMP sources.
Prime95 is offline   Reply With Quote
Old 2017-08-29, 04:12   #15
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

11101011001102 Posts
Default

I can build the 64-bit Windows DLL, but having trouble linking to it. Maybe tomorrow....
Prime95 is offline   Reply With Quote
Old 2017-08-29, 05:18   #16
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

2·53·71 Posts
Default

Downloaded MSVC 2017. Looks like this is not the way to build MPIR. I don't see a way to build a "fat DLL" -- optimized for all x86_64 architectures.
Prime95 is offline   Reply With Quote
Old 2017-08-29, 18:02   #17
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

2·53·71 Posts
Default

Success. I had left off /MACHINE:X64 when build the .lib file from the .def file.

In summary, it can be done but it is a messy process. Running the QA script 'make check' is also problematic.
Prime95 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building sr1sieve for RPi wombatman Software 14 2017-03-04 16:21
Building MSieve without VS? SWSaunders Msieve 3 2013-04-26 11:19
Help building new computer Prime95 Hardware 30 2009-09-12 05:58
Building gcc 4.4.0 CRGreathouse Software 1 2009-07-07 22:25
Building on Linux? FenwayFrank Software 4 2002-10-20 21:59

All times are UTC. The time now is 08:34.


Sat Jul 17 08:34:04 UTC 2021 up 50 days, 6:21, 1 user, load averages: 1.10, 1.46, 1.49

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.