View Single Post
Old 2015-05-09, 00:16   #3
alexvong1995
 
Dec 2014

37 Posts
Default

Thanks! Do you mean the restrictive award agreement violates DFSG? Does mprime fit in contrib or non-free? Nevermind, I will also be glad to package Mlucas and Glucas. I was able to compile Mlucas according to instruction and Glucas by
Code:
$ ./configure && make
Progress report: I have set USE_PRIMENET always equal to 0 to deactivate the use of primenet. Also, I have modified the Makefiles and now we can build mprime with customized optimization flags. See below on how to compile.

HOW TO COMPILE:
1. extract p95v285.source.zip to p95v285.source/
2. Download and decompress noprimenet2.diff.bz2 and put it inside p95v285.source/
3. goto p95v285.source/ and type
Code:
$ patch -p1 < noprimenet2.diff
4. goto p95v285.source/gwnum/ and type
Code:
$ make -f make64 'COFLAGS = -march=native -O3 -pipe' 'CXXOFLAGS = $(COFLAGS)'
5. goto p95v285.source/linux64/ and type
Code:
$ make -f makenoprimenet 'COFLAGS = -march=native -O3 -pipe -flto' 'CXXOFLAGS = $(COFLAGS)'
I don't think the optimization flags will change things because the performance critical part is already written in assembly but it is good to know the optimization doesn't break things (I have tried the non-standard compliant -Ofast which do break things). Now the USE_PRIMENET flag is always 0 so you don't have to worry about accidentally activating it.

Let me know if it builds and runs!
I will not be connected to the Internet for about 2-3 days so I will not be replying until I come back from the rural area.
Attached Files
File Type: bz2 noprimenet2.diff.bz2 (10.1 KB, 83 views)
alexvong1995 is offline   Reply With Quote