Hi!
I am relatively new to Kubuntu and Linux in general, I hope you can help me :-)
I need to compile mprime starting from the source code I found here: http://www.mersenne.org/freesoft/ (near the bottom of the page, section "Source Code"), and I have to compile it, I cannot use a binary version.
I extracted all the files in the .zip archive, I did a "make" in the source/gwnum directory (since gwnum.a was requested), then I did a "make" in the source/linux directory.
I obtained an error, which I think is in the file prime.o : this file is given in the .zip archive, and it looks like I cannot re-create it (make clean + make gives me a "make: *** No rule to make target `factor32.o', needed by `mprime'. Stop." error).
The error in prime.o is reported below:
prime.o: In function `lucas_QA':
prime.c.text+0x1e571): undefined reference to `erdtsc'
prime.o: In function `primeSieveTest':
prime.c.text+0x1f23b): undefined reference to `muladdhlp'
prime.c.text+0x1f27d): undefined reference to `muladdhlp'
prime.o: In function `end_timer':
prime.c.text+0x21c3c): undefined reference to `erdtsc'
prime.o: In function `start_timer':
prime.c.text+0x21d0c): undefined reference to `erdtsc'
prime.o: In function `ecm':
prime.c.text+0x26a52): undefined reference to `erdtsc'
prime.o: In function `prime':
prime.c.text+0x2ea72): undefined reference to `erdtsc'
../gwnum/gwnum.a(cpuid.o): In function `guessCpuSpeed':
cpuid.c.text+0x179): undefined reference to `erdtsc'
../gwnum/gwnum.a(cpuid.o):cpuid.c.text+0x1c5): more undefined references to `erdtsc' follow
../gwnum/gwnum.a(cpuid.o): In function `canExecInstruction':
cpuid.c.text+0x52d): undefined reference to `fpu_init'
../gwnum/gwnum.a(cpuid.o): In function `guessCpuType':
cpuid.c.text+0x62b): undefined reference to `ecpuidsupport'
cpuid.c.text+0x67f): undefined reference to `ecpuid'
cpuid.c.text+0x6bc): undefined reference to `ecpuid'
cpuid.c.text+0x87b): undefined reference to `ecpuid'
cpuid.c.text+0x95d): undefined reference to `ecpuid'
cpuid.c.text+0x98f): undefined reference to `ecpuid'
../gwnum/gwnum.a(cpuid.o):cpuid.c.text+0x9c1): more undefined references to `ecpuid' follow
../gwnum/gwnum.a(gwnum.o): In function `gwinfo':
gwnum.c.text+0x3a27): undefined reference to `gwinfo1'
../gwnum/gwnum.a(gwnum.o): In function `internal_gwsetup':
gwnum.c.text+0x60ee): undefined reference to `fpu_init'
../gwnum/gwnum.a(gwnum.o): In function `auxillary_thread':
gwnum.c.text+0x96fa): undefined reference to `pass1_aux_entry_point'
gwnum.c.text+0x97e5): undefined reference to `pass2_aux_entry_point'
../gwnum/gwnum.a(giants.o): In function `grammarmulg':
giants.c.text+0x6dfe): undefined reference to `muladdhlp'
../gwnum/gwnum.a(giants.o): In function `grammarsquareg':
giants.c.text+0x70d3): undefined reference to `muladd2hlp'
giants.c.text+0x7161): undefined reference to `muladdhlp'
../gwnum/gwnum.a(giants.o): In function `normal_addg':
giants.c.text+0x71f5): undefined reference to `addhlp'
giants.c.text+0x721e): undefined reference to `addhlp'
../gwnum/gwnum.a(giants.o): In function `reverse_subg':
giants.c.text+0x72ca): undefined reference to `addhlp'
giants.c.text+0x72ed): undefined reference to `subhlp'
../gwnum/gwnum.a(giants.o): In function `normal_subg':
giants.c.text+0x739d): undefined reference to `addhlp'
giants.c.text+0x73b3): undefined reference to `subhlp'
giants.c.text+0x741d): undefined reference to `addhlp'
../gwnum/gwnum.a(giants.o): In function `gcdhlp_wrapper':
giants.c.text+0x9995): undefined reference to `gcdhlp'
giants.c.text+0x9aa8): undefined reference to `mulsubhlp'
giants.c.text+0x9ac7): undefined reference to `muladdhlp'
giants.c.text+0x9ae9): undefined reference to `muladdhlp'
giants.c.text+0x9b08): undefined reference to `mulsubhlp'
giants.c.text+0x9b78): undefined reference to `muladdhlp'
giants.c.text+0x9b97): undefined reference to `mulsubhlp'
giants.c.text+0x9bb9): undefined reference to `mulsubhlp'
giants.c.text+0x9bd8): undefined reference to `muladdhlp'
collect2: ld returned 1 exit status
make: *** [mprime] Error 1
Did I miss something? Thank you for your help! :-)
I am relatively new to Kubuntu and Linux in general, I hope you can help me :-)
I need to compile mprime starting from the source code I found here: http://www.mersenne.org/freesoft/ (near the bottom of the page, section "Source Code"), and I have to compile it, I cannot use a binary version.
I extracted all the files in the .zip archive, I did a "make" in the source/gwnum directory (since gwnum.a was requested), then I did a "make" in the source/linux directory.
I obtained an error, which I think is in the file prime.o : this file is given in the .zip archive, and it looks like I cannot re-create it (make clean + make gives me a "make: *** No rule to make target `factor32.o', needed by `mprime'. Stop." error).
The error in prime.o is reported below:
prime.o: In function `lucas_QA':
prime.c.text+0x1e571): undefined reference to `erdtsc'
prime.o: In function `primeSieveTest':
prime.c.text+0x1f23b): undefined reference to `muladdhlp'
prime.c.text+0x1f27d): undefined reference to `muladdhlp'
prime.o: In function `end_timer':
prime.c.text+0x21c3c): undefined reference to `erdtsc'
prime.o: In function `start_timer':
prime.c.text+0x21d0c): undefined reference to `erdtsc'
prime.o: In function `ecm':
prime.c.text+0x26a52): undefined reference to `erdtsc'
prime.o: In function `prime':
prime.c.text+0x2ea72): undefined reference to `erdtsc'
../gwnum/gwnum.a(cpuid.o): In function `guessCpuSpeed':
cpuid.c.text+0x179): undefined reference to `erdtsc'
../gwnum/gwnum.a(cpuid.o):cpuid.c.text+0x1c5): more undefined references to `erdtsc' follow
../gwnum/gwnum.a(cpuid.o): In function `canExecInstruction':
cpuid.c.text+0x52d): undefined reference to `fpu_init'
../gwnum/gwnum.a(cpuid.o): In function `guessCpuType':
cpuid.c.text+0x62b): undefined reference to `ecpuidsupport'
cpuid.c.text+0x67f): undefined reference to `ecpuid'
cpuid.c.text+0x6bc): undefined reference to `ecpuid'
cpuid.c.text+0x87b): undefined reference to `ecpuid'
cpuid.c.text+0x95d): undefined reference to `ecpuid'
cpuid.c.text+0x98f): undefined reference to `ecpuid'
../gwnum/gwnum.a(cpuid.o):cpuid.c.text+0x9c1): more undefined references to `ecpuid' follow
../gwnum/gwnum.a(gwnum.o): In function `gwinfo':
gwnum.c.text+0x3a27): undefined reference to `gwinfo1'
../gwnum/gwnum.a(gwnum.o): In function `internal_gwsetup':
gwnum.c.text+0x60ee): undefined reference to `fpu_init'
../gwnum/gwnum.a(gwnum.o): In function `auxillary_thread':
gwnum.c.text+0x96fa): undefined reference to `pass1_aux_entry_point'
gwnum.c.text+0x97e5): undefined reference to `pass2_aux_entry_point'
../gwnum/gwnum.a(giants.o): In function `grammarmulg':
giants.c.text+0x6dfe): undefined reference to `muladdhlp'
../gwnum/gwnum.a(giants.o): In function `grammarsquareg':
giants.c.text+0x70d3): undefined reference to `muladd2hlp'
giants.c.text+0x7161): undefined reference to `muladdhlp'
../gwnum/gwnum.a(giants.o): In function `normal_addg':
giants.c.text+0x71f5): undefined reference to `addhlp'
giants.c.text+0x721e): undefined reference to `addhlp'
../gwnum/gwnum.a(giants.o): In function `reverse_subg':
giants.c.text+0x72ca): undefined reference to `addhlp'
giants.c.text+0x72ed): undefined reference to `subhlp'
../gwnum/gwnum.a(giants.o): In function `normal_subg':
giants.c.text+0x739d): undefined reference to `addhlp'
giants.c.text+0x73b3): undefined reference to `subhlp'
giants.c.text+0x741d): undefined reference to `addhlp'
../gwnum/gwnum.a(giants.o): In function `gcdhlp_wrapper':
giants.c.text+0x9995): undefined reference to `gcdhlp'
giants.c.text+0x9aa8): undefined reference to `mulsubhlp'
giants.c.text+0x9ac7): undefined reference to `muladdhlp'
giants.c.text+0x9ae9): undefined reference to `muladdhlp'
giants.c.text+0x9b08): undefined reference to `mulsubhlp'
giants.c.text+0x9b78): undefined reference to `muladdhlp'
giants.c.text+0x9b97): undefined reference to `mulsubhlp'
giants.c.text+0x9bb9): undefined reference to `mulsubhlp'
giants.c.text+0x9bd8): undefined reference to `muladdhlp'
collect2: ld returned 1 exit status
make: *** [mprime] Error 1
Did I miss something? Thank you for your help! :-)