miracl / MIRACL

MIRACL Cryptographic SDK: Multiprecision Integer and Rational Arithmetic Cryptographic Library is a C software library that is widely regarded by developers as the gold standard open source SDK for elliptic curve cryptography (ECC).
https://miracl.com
652 stars 242 forks source link

raspbian install MIRACL #97

Closed kimud6003 closed 2 years ago

kimud6003 commented 3 years ago

I read 'first.txt' and ran the program.

1) unzip -j -aa -L MIRACL-master.zip

2) bash linux However, there was a problem here. gcc: error: unrecognized command line option ‘-m32’; did you mean ‘-mbe32’?

I'd appreciate it if you could tell me how to solve it.


raspberry pi4 Model B 8gb

processor : 0 model name : ARMv7 Processor rev 3 (v7l) BogoMIPS : 108.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 1 model name : ARMv7 Processor rev 3 (v7l) BogoMIPS : 108.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 2 model name : ARMv7 Processor rev 3 (v7l) BogoMIPS : 108.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 3 model name : ARMv7 Processor rev 3 (v7l) BogoMIPS : 108.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

Hardware : BCM2711 Revision : d03114 Serial : 100000002327a1d1 Model : Raspberry Pi 4 Model B Rev 1.4

kimud6003 commented 3 years ago

I deleted -m32 from the Linux file and ran "cp mrmuldv.ccc mrmuldv.c". However, the following error occurred when running the 'bash Linux'.

rm: cannot remove '*.exe': No such file or directory mrmuldv.c: In function ‘muldiv’: mrmuldv.c:10:5: error: unknown register name ‘ebx’ in ‘asm’ 10 | asm volatile ( | ^~~ mrmuldv.c:10:5: error: unknown register name ‘eax’ in ‘asm’ mrmuldv.c: In function ‘muldvm’: mrmuldv.c:29:5: error: unknown register name ‘ebx’ in ‘asm’ 29 | asm volatile ( | ^~~ mrmuldv.c:29:5: error: unknown register name ‘eax’ in ‘asm’ mrmuldv.c: In function ‘muldvd’: mrmuldv.c:46:5: error: unknown register name ‘ebx’ in ‘asm’ 46 | asm volatile ( | ^~~ mrmuldv.c:46:5: error: unknown register name ‘eax’ in ‘asm’ mrmuldv.c: In function ‘muldvd2’: mrmuldv.c:63:5: error: unknown register name ‘esi’ in ‘asm’ 63 | asm volatile ( | ^~~ mrmuldv.c:63:5: error: unknown register name ‘ebx’ in ‘asm’ mrmuldv.c:63:5: error: unknown register name ‘eax’ in ‘asm’ ar: mrmuldv.o: No such file or directory /usr/bin/ld: /tmp/ccO8M3oe.o: in function mults2': bmark.c:(.text+0x394): undefined reference toecurve2_mult' /usr/bin/ld: bmark.c:(.text+0x3cc): undefined reference to ecurve2_mult' /usr/bin/ld: /tmp/ccO8M3oe.o: in functionmult2_double': bmark.c:(.text+0x988): undefined reference to ecurve2_mult' /usr/bin/ld: bmark.c:(.text+0x9a4): undefined reference toecurve2_mult' /usr/bin/ld: bmark.c:(.text+0x9f4): undefined reference to ecurve2_mult2' /usr/bin/ld: /tmp/ccO8M3oe.o: in functionpowers_precomp': bmark.c:(.text+0xb34): undefined reference to brick_init' /usr/bin/ld: bmark.c:(.text+0xb6c): undefined reference topow_brick' /usr/bin/ld: bmark.c:(.text+0xbe0): undefined reference to brick_end' /usr/bin/ld: /tmp/ccO8M3oe.o: in functionmult_precomp': bmark.c:(.text+0xcd8): undefined reference to ebrick_init' /usr/bin/ld: bmark.c:(.text+0xd18): undefined reference tomul_brick' /usr/bin/ld: bmark.c:(.text+0xd84): undefined reference to ebrick_end' /usr/bin/ld: /tmp/ccO8M3oe.o: in functionmult2_precomp': bmark.c:(.text+0xe98): undefined reference to ebrick2_init' /usr/bin/ld: bmark.c:(.text+0xed8): undefined reference tomul2_brick' /usr/bin/ld: bmark.c:(.text+0xf44): undefined reference to ebrick2_end' /usr/bin/ld: /tmp/ccO8M3oe.o: in functionmain': bmark.c:(.text.startup+0xc7c): undefined reference to ecurve2_init' /usr/bin/ld: bmark.c:(.text.startup+0xc98): undefined reference toepoint2_set' /usr/bin/ld: bmark.c:(.text.startup+0xe0c): undefined reference to ecurve2_init' /usr/bin/ld: bmark.c:(.text.startup+0xe2c): undefined reference toepoint2_set' /usr/bin/ld: bmark.c:(.text.startup+0xf9c): undefined reference to ecurve2_init' /usr/bin/ld: bmark.c:(.text.startup+0xfb8): undefined reference toepoint2_set' /usr/bin/ld: bmark.c:(.text.startup+0x1120): undefined reference to ecurve2_init' /usr/bin/ld: bmark.c:(.text.startup+0x113c): undefined reference toepoint2_set' /usr/bin/ld: bmark.c:(.text.startup+0x1298): undefined reference to ecurve2_init' /usr/bin/ld: bmark.c:(.text.startup+0x12b4): undefined reference toepoint2_set' /usr/bin/ld: bmark.c:(.text.startup+0x1404): undefined reference to ecurve2_init' /usr/bin/ld: bmark.c:(.text.startup+0x1420): undefined reference toepoint2_set' /usr/bin/ld: bmark.c:(.text.startup+0x15c4): undefined reference to ecurve2_init' /usr/bin/ld: bmark.c:(.text.startup+0x15e0): undefined reference toepoint2_set' /usr/bin/ld: bmark.c:(.text.startup+0x1738): undefined reference to ecurve2_init' /usr/bin/ld: bmark.c:(.text.startup+0x1754): undefined reference toepoint2_set' /usr/bin/ld: miracl.a(mrmonty.o): in function redc': mrmonty.c:(.text+0x554): undefined reference tomuldvd2' /usr/bin/ld: mrmonty.c:(.text+0x6ac): undefined reference to muldiv' /usr/bin/ld: mrmonty.c:(.text+0x6e4): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrarth1.o): in function mr_pmul': mrarth1.c:(.text+0xa0): undefined reference tomuldiv' /usr/bin/ld: mrarth1.c:(.text+0x110): undefined reference to muldvd' /usr/bin/ld: miracl.a(mrarth1.o): in functionmr_sdiv': mrarth1.c:(.text+0x370): undefined reference to muldvm' /usr/bin/ld: mrarth1.c:(.text+0x40c): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrarth2.o): in function normalise': mrarth2.c:(.text+0x108): undefined reference tomuldvm' /usr/bin/ld: miracl.a(mrarth2.o): in function multiply': mrarth2.c:(.text+0x328): undefined reference tomuldvd2' /usr/bin/ld: mrarth2.c:(.text+0x3cc): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0x4b8): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0x55c): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0x628): undefined reference tomuldvd2' /usr/bin/ld: mrarth2.c:(.text+0x6a8): undefined reference to muldvd2' /usr/bin/ld: miracl.a(mrarth2.o): in functiondivide': mrarth2.c:(.text+0x9f8): undefined reference to muldvm' /usr/bin/ld: mrarth2.c:(.text+0xa28): undefined reference tomuldvd' /usr/bin/ld: mrarth2.c:(.text+0xc50): undefined reference to muldvd' /usr/bin/ld: mrarth2.c:(.text+0xe18): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0xeb4): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0xf28): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrxgcd.o): in function xgcd': mrxgcd.c:(.text+0x6a4): undefined reference tomuldvm' /usr/bin/ld: mrxgcd.c:(.text+0x6d4): undefined reference to muldvm' /usr/bin/ld: mrxgcd.c:(.text+0x700): undefined reference tomuldvm' /usr/bin/ld: mrxgcd.c:(.text+0x728): undefined reference to muldvm' /usr/bin/ld: mrxgcd.c:(.text+0x754): undefined reference tomuldiv' /usr/bin/ld: mrxgcd.c:(.text+0x78c): undefined reference to muldiv' /usr/bin/ld: mrxgcd.c:(.text+0x7bc): undefined reference tomuldiv' /usr/bin/ld: mrxgcd.c:(.text+0x7e8): undefined reference to muldiv' collect2: error: ld returned 1 exit status /usr/bin/ld: miracl.a(mrarth1.o): in functionmr_pmul': mrarth1.c:(.text+0xa0): undefined reference to muldiv' /usr/bin/ld: mrarth1.c:(.text+0x110): undefined reference tomuldvd' /usr/bin/ld: miracl.a(mrarth1.o): in function mr_sdiv': mrarth1.c:(.text+0x370): undefined reference tomuldvm' /usr/bin/ld: mrarth1.c:(.text+0x40c): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrarth2.o): in functionnormalise': mrarth2.c:(.text+0x108): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrarth2.o): in functionmultiply': mrarth2.c:(.text+0x328): undefined reference to muldvd2' /usr/bin/ld: mrarth2.c:(.text+0x3cc): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0x4b8): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0x55c): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0x628): undefined reference to muldvd2' /usr/bin/ld: mrarth2.c:(.text+0x6a8): undefined reference tomuldvd2' /usr/bin/ld: miracl.a(mrarth2.o): in function divide': mrarth2.c:(.text+0x9f8): undefined reference tomuldvm' /usr/bin/ld: mrarth2.c:(.text+0xa28): undefined reference to muldvd' /usr/bin/ld: mrarth2.c:(.text+0xc50): undefined reference tomuldvd' /usr/bin/ld: mrarth2.c:(.text+0xe18): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0xeb4): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0xf28): undefined reference to muldiv' collect2: error: ld returned 1 exit status /usr/bin/ld: big.o: in functionecurve2(int, int, int, int, Big const&, Big const&, int, int)': big.cpp:(.text+0x19f0): undefined reference to ecurve2_init' /usr/bin/ld: miracl.a(mrarth1.o): in functionmr_pmul': mrarth1.c:(.text+0xa0): undefined reference to muldiv' /usr/bin/ld: mrarth1.c:(.text+0x110): undefined reference tomuldvd' /usr/bin/ld: miracl.a(mrarth1.o): in function mr_sdiv': mrarth1.c:(.text+0x370): undefined reference tomuldvm' /usr/bin/ld: mrarth1.c:(.text+0x40c): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrarth2.o): in functionnormalise': mrarth2.c:(.text+0x108): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrarth2.o): in functionmultiply': mrarth2.c:(.text+0x328): undefined reference to muldvd2' /usr/bin/ld: mrarth2.c:(.text+0x3cc): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0x4b8): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0x55c): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0x628): undefined reference to muldvd2' /usr/bin/ld: mrarth2.c:(.text+0x6a8): undefined reference tomuldvd2' /usr/bin/ld: miracl.a(mrarth2.o): in function divide': mrarth2.c:(.text+0x9f8): undefined reference tomuldvm' /usr/bin/ld: mrarth2.c:(.text+0xa28): undefined reference to muldvd' /usr/bin/ld: mrarth2.c:(.text+0xc50): undefined reference tomuldvd' /usr/bin/ld: mrarth2.c:(.text+0xe18): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0xeb4): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0xf28): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrsmall.o): in functionsmul': mrsmall.c:(.text+0x48): undefined reference to muldiv' /usr/bin/ld: mrsmall.c:(.text+0x78): undefined reference tomuldvd' /usr/bin/ld: miracl.a(mrsmall.o): in function invers': mrsmall.c:(.text+0x144): undefined reference tomuldvm' /usr/bin/ld: miracl.a(mrsmall.o): in function spmd': mrsmall.c:(.text+0x2f0): undefined reference tomuldiv' /usr/bin/ld: mrsmall.c:(.text+0x308): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrsmall.o): in functionsqrmp': mrsmall.c:(.text+0x410): undefined reference to muldiv' /usr/bin/ld: mrsmall.c:(.text+0x44c): undefined reference tomuldiv' /usr/bin/ld: mrsmall.c:(.text+0x4bc): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrsmall.o):mrsmall.c:(.text+0x4ec): more undefined references tomuldiv' follow /usr/bin/ld: miracl.a(mrgcd.o): in function egcd': mrgcd.c:(.text+0x35c): undefined reference tomuldvm' /usr/bin/ld: mrgcd.c:(.text+0x380): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrxgcd.o): in functionxgcd': mrxgcd.c:(.text+0x6a4): undefined reference to muldvm' /usr/bin/ld: mrxgcd.c:(.text+0x6d4): undefined reference tomuldvm' /usr/bin/ld: mrxgcd.c:(.text+0x700): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrxgcd.o):mrxgcd.c:(.text+0x728): more undefined references tomuldvm' follow /usr/bin/ld: miracl.a(mrxgcd.o): in function xgcd': mrxgcd.c:(.text+0x754): undefined reference tomuldiv' /usr/bin/ld: mrxgcd.c:(.text+0x78c): undefined reference to muldiv' /usr/bin/ld: mrxgcd.c:(.text+0x7bc): undefined reference tomuldiv' /usr/bin/ld: mrxgcd.c:(.text+0x7e8): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrmonty.o): in functionredc': mrmonty.c:(.text+0x554): undefined reference to muldvd2' /usr/bin/ld: mrmonty.c:(.text+0x6ac): undefined reference tomuldiv' /usr/bin/ld: mrmonty.c:(.text+0x6e4): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o): in functionmr_dif_fft': mrfast.c:(.text+0x740): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o): in functionmr_dit_fft': mrfast.c:(.text+0x8fc): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o): in functionmr_poly_rem': mrfast.c:(.text+0xb4c): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o):mrfast.c:(.text+0xbf8): more undefined references tomuldiv' follow /usr/bin/ld: miracl.a(mrfast.o): in function fft_mult': mrfast.c:(.text+0x2b5c): undefined reference tomuldvd' /usr/bin/ld: mrfast.c:(.text+0x2b88): undefined reference to muldvd' /usr/bin/ld: mrfast.c:(.text+0x2ba0): undefined reference tomuldvd' /usr/bin/ld: mrfast.c:(.text+0x2c44): undefined reference to muldiv' /usr/bin/ld: mrfast.c:(.text+0x2d3c): undefined reference tomuldiv' /usr/bin/ld: mrfast.c:(.text+0x2d64): undefined reference to muldiv' /usr/bin/ld: mrfast.c:(.text+0x2d84): undefined reference tomuldiv' /usr/bin/ld: mrfast.c:(.text+0x2eb4): undefined reference to muldvd' /usr/bin/ld: mrfast.c:(.text+0x2edc): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrround.o): in function euclid': mrround.c:(.text+0x324): undefined reference tomuldiv' /usr/bin/ld: mrround.c:(.text+0x350): undefined reference to muldiv' /usr/bin/ld: mrround.c:(.text+0x388): undefined reference tomuldvm' /usr/bin/ld: mrround.c:(.text+0x3b0): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrbuild.o): in functionbuild': mrbuild.c:(.text+0x590): undefined reference to muldvm' /usr/bin/ld: mrbuild.c:(.text+0x5cc): undefined reference tomuldvm' collect2: error: ld returned 1 exit status /usr/bin/ld: big.o: in function ecurve2(int, int, int, int, Big const&, Big const&, int, int)': big.cpp:(.text+0x19f0): undefined reference toecurve2_init' /usr/bin/ld: miracl.a(mrarth1.o): in function mr_pmul': mrarth1.c:(.text+0xa0): undefined reference tomuldiv' /usr/bin/ld: mrarth1.c:(.text+0x110): undefined reference to muldvd' /usr/bin/ld: miracl.a(mrarth1.o): in functionmr_sdiv': mrarth1.c:(.text+0x370): undefined reference to muldvm' /usr/bin/ld: mrarth1.c:(.text+0x40c): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrarth2.o): in function normalise': mrarth2.c:(.text+0x108): undefined reference tomuldvm' /usr/bin/ld: miracl.a(mrarth2.o): in function multiply': mrarth2.c:(.text+0x328): undefined reference tomuldvd2' /usr/bin/ld: mrarth2.c:(.text+0x3cc): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0x4b8): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0x55c): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0x628): undefined reference tomuldvd2' /usr/bin/ld: mrarth2.c:(.text+0x6a8): undefined reference to muldvd2' /usr/bin/ld: miracl.a(mrarth2.o): in functiondivide': mrarth2.c:(.text+0x9f8): undefined reference to muldvm' /usr/bin/ld: mrarth2.c:(.text+0xa28): undefined reference tomuldvd' /usr/bin/ld: mrarth2.c:(.text+0xc50): undefined reference to muldvd' /usr/bin/ld: mrarth2.c:(.text+0xe18): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0xeb4): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0xf28): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrgcd.o): in function egcd': mrgcd.c:(.text+0x2fc): undefined reference tomuldiv' /usr/bin/ld: mrgcd.c:(.text+0x324): undefined reference to muldiv' /usr/bin/ld: mrgcd.c:(.text+0x35c): undefined reference tomuldvm' /usr/bin/ld: mrgcd.c:(.text+0x380): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrxgcd.o): in functionxgcd': mrxgcd.c:(.text+0x6a4): undefined reference to muldvm' /usr/bin/ld: mrxgcd.c:(.text+0x6d4): undefined reference tomuldvm' /usr/bin/ld: mrxgcd.c:(.text+0x700): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrxgcd.o):mrxgcd.c:(.text+0x728): more undefined references tomuldvm' follow /usr/bin/ld: miracl.a(mrxgcd.o): in function xgcd': mrxgcd.c:(.text+0x754): undefined reference tomuldiv' /usr/bin/ld: mrxgcd.c:(.text+0x78c): undefined reference to muldiv' /usr/bin/ld: mrxgcd.c:(.text+0x7bc): undefined reference tomuldiv' /usr/bin/ld: mrxgcd.c:(.text+0x7e8): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrmonty.o): in functionredc': mrmonty.c:(.text+0x554): undefined reference to muldvd2' /usr/bin/ld: mrmonty.c:(.text+0x6ac): undefined reference tomuldiv' /usr/bin/ld: mrmonty.c:(.text+0x6e4): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o): in functionmr_dif_fft': mrfast.c:(.text+0x740): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o): in functionmr_dit_fft': mrfast.c:(.text+0x8fc): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o): in functionmr_poly_rem': mrfast.c:(.text+0xb4c): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o):mrfast.c:(.text+0xbf8): more undefined references tomuldiv' follow /usr/bin/ld: miracl.a(mrfast.o): in function fft_mult': mrfast.c:(.text+0x2b5c): undefined reference tomuldvd' /usr/bin/ld: mrfast.c:(.text+0x2b88): undefined reference to muldvd' /usr/bin/ld: mrfast.c:(.text+0x2ba0): undefined reference tomuldvd' /usr/bin/ld: mrfast.c:(.text+0x2c44): undefined reference to muldiv' /usr/bin/ld: mrfast.c:(.text+0x2d3c): undefined reference tomuldiv' /usr/bin/ld: mrfast.c:(.text+0x2d64): undefined reference to muldiv' /usr/bin/ld: mrfast.c:(.text+0x2d84): undefined reference tomuldiv' /usr/bin/ld: mrfast.c:(.text+0x2eb4): undefined reference to muldvd' /usr/bin/ld: mrfast.c:(.text+0x2edc): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrround.o): in function euclid': mrround.c:(.text+0x324): undefined reference tomuldiv' /usr/bin/ld: mrround.c:(.text+0x350): undefined reference to muldiv' /usr/bin/ld: mrround.c:(.text+0x388): undefined reference tomuldvm' /usr/bin/ld: mrround.c:(.text+0x3b0): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrbuild.o): in functionbuild': mrbuild.c:(.text+0x590): undefined reference to muldvm' /usr/bin/ld: mrbuild.c:(.text+0x5cc): undefined reference tomuldvm' /usr/bin/ld: miracl.a(mrsmall.o): in function smul': mrsmall.c:(.text+0x48): undefined reference tomuldiv' /usr/bin/ld: mrsmall.c:(.text+0x78): undefined reference to muldvd' /usr/bin/ld: miracl.a(mrsmall.o): in functioninvers': mrsmall.c:(.text+0x144): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrsmall.o): in functionspmd': mrsmall.c:(.text+0x2f0): undefined reference to muldiv' /usr/bin/ld: mrsmall.c:(.text+0x308): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrsmall.o): in function sqrmp': mrsmall.c:(.text+0x410): undefined reference tomuldiv' /usr/bin/ld: mrsmall.c:(.text+0x44c): undefined reference to muldiv' /usr/bin/ld: mrsmall.c:(.text+0x4bc): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrsmall.o):mrsmall.c:(.text+0x4ec): more undefined references to muldiv' follow collect2: error: ld returned 1 exit status /usr/bin/ld: miracl.a(mrround.o): in functioneuclid': mrround.c:(.text+0x324): undefined reference to muldiv' /usr/bin/ld: mrround.c:(.text+0x350): undefined reference tomuldiv' /usr/bin/ld: mrround.c:(.text+0x388): undefined reference to muldvm' /usr/bin/ld: mrround.c:(.text+0x3b0): undefined reference tomuldvm' /usr/bin/ld: miracl.a(mrbuild.o): in function build': mrbuild.c:(.text+0x590): undefined reference tomuldvm' /usr/bin/ld: mrbuild.c:(.text+0x5cc): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrarth1.o): in functionmr_pmul': mrarth1.c:(.text+0xa0): undefined reference to muldiv' /usr/bin/ld: mrarth1.c:(.text+0x110): undefined reference tomuldvd' /usr/bin/ld: miracl.a(mrarth1.o): in function mr_sdiv': mrarth1.c:(.text+0x370): undefined reference tomuldvm' /usr/bin/ld: mrarth1.c:(.text+0x40c): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrarth2.o): in functionnormalise': mrarth2.c:(.text+0x108): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrarth2.o): in functionmultiply': mrarth2.c:(.text+0x328): undefined reference to muldvd2' /usr/bin/ld: mrarth2.c:(.text+0x3cc): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0x4b8): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0x55c): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0x628): undefined reference to muldvd2' /usr/bin/ld: mrarth2.c:(.text+0x6a8): undefined reference tomuldvd2' /usr/bin/ld: miracl.a(mrarth2.o): in function divide': mrarth2.c:(.text+0x9f8): undefined reference tomuldvm' /usr/bin/ld: mrarth2.c:(.text+0xa28): undefined reference to muldvd' /usr/bin/ld: mrarth2.c:(.text+0xc50): undefined reference tomuldvd' /usr/bin/ld: mrarth2.c:(.text+0xe18): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0xeb4): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0xf28): undefined reference to muldiv' collect2: error: ld returned 1 exit status /usr/bin/ld: big.o: in functionecurve2(int, int, int, int, Big const&, Big const&, int, int)': big.cpp:(.text+0x19f0): undefined reference to ecurve2_init' /usr/bin/ld: miracl.a(mrarth1.o): in functionmr_pmul': mrarth1.c:(.text+0xa0): undefined reference to muldiv' /usr/bin/ld: mrarth1.c:(.text+0x110): undefined reference tomuldvd' /usr/bin/ld: miracl.a(mrarth1.o): in function mr_sdiv': mrarth1.c:(.text+0x370): undefined reference tomuldvm' /usr/bin/ld: mrarth1.c:(.text+0x40c): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrarth2.o): in functionnormalise': mrarth2.c:(.text+0x108): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrarth2.o): in functionmultiply': mrarth2.c:(.text+0x328): undefined reference to muldvd2' /usr/bin/ld: mrarth2.c:(.text+0x3cc): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0x4b8): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0x55c): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0x628): undefined reference to muldvd2' /usr/bin/ld: mrarth2.c:(.text+0x6a8): undefined reference tomuldvd2' /usr/bin/ld: miracl.a(mrarth2.o): in function divide': mrarth2.c:(.text+0x9f8): undefined reference tomuldvm' /usr/bin/ld: mrarth2.c:(.text+0xa28): undefined reference to muldvd' /usr/bin/ld: mrarth2.c:(.text+0xc50): undefined reference tomuldvd' /usr/bin/ld: mrarth2.c:(.text+0xe18): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0xeb4): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0xf28): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrgcd.o): in functionegcd': mrgcd.c:(.text+0x2fc): undefined reference to muldiv' /usr/bin/ld: mrgcd.c:(.text+0x324): undefined reference tomuldiv' /usr/bin/ld: mrgcd.c:(.text+0x35c): undefined reference to muldvm' /usr/bin/ld: mrgcd.c:(.text+0x380): undefined reference tomuldvm' /usr/bin/ld: miracl.a(mrxgcd.o): in function xgcd': mrxgcd.c:(.text+0x6a4): undefined reference tomuldvm' /usr/bin/ld: mrxgcd.c:(.text+0x6d4): undefined reference to muldvm' /usr/bin/ld: mrxgcd.c:(.text+0x700): undefined reference tomuldvm' /usr/bin/ld: miracl.a(mrxgcd.o):mrxgcd.c:(.text+0x728): more undefined references to muldvm' follow /usr/bin/ld: miracl.a(mrxgcd.o): in functionxgcd': mrxgcd.c:(.text+0x754): undefined reference to muldiv' /usr/bin/ld: mrxgcd.c:(.text+0x78c): undefined reference tomuldiv' /usr/bin/ld: mrxgcd.c:(.text+0x7bc): undefined reference to muldiv' /usr/bin/ld: mrxgcd.c:(.text+0x7e8): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrmonty.o): in function redc': mrmonty.c:(.text+0x554): undefined reference tomuldvd2' /usr/bin/ld: mrmonty.c:(.text+0x6ac): undefined reference to muldiv' /usr/bin/ld: mrmonty.c:(.text+0x6e4): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrfast.o): in function mr_dif_fft': mrfast.c:(.text+0x740): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrfast.o): in function mr_dit_fft': mrfast.c:(.text+0x8fc): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrfast.o): in function mr_poly_rem': mrfast.c:(.text+0xb4c): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrfast.o):mrfast.c:(.text+0xbf8): more undefined references to muldiv' follow /usr/bin/ld: miracl.a(mrfast.o): in functionfft_mult': mrfast.c:(.text+0x2b5c): undefined reference to muldvd' /usr/bin/ld: mrfast.c:(.text+0x2b88): undefined reference tomuldvd' /usr/bin/ld: mrfast.c:(.text+0x2ba0): undefined reference to muldvd' /usr/bin/ld: mrfast.c:(.text+0x2c44): undefined reference tomuldiv' /usr/bin/ld: mrfast.c:(.text+0x2d3c): undefined reference to muldiv' /usr/bin/ld: mrfast.c:(.text+0x2d64): undefined reference tomuldiv' /usr/bin/ld: mrfast.c:(.text+0x2d84): undefined reference to muldiv' /usr/bin/ld: mrfast.c:(.text+0x2eb4): undefined reference tomuldvd' /usr/bin/ld: mrfast.c:(.text+0x2edc): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrround.o): in functioneuclid': mrround.c:(.text+0x324): undefined reference to muldiv' /usr/bin/ld: mrround.c:(.text+0x350): undefined reference tomuldiv' /usr/bin/ld: mrround.c:(.text+0x388): undefined reference to muldvm' /usr/bin/ld: mrround.c:(.text+0x3b0): undefined reference tomuldvm' /usr/bin/ld: miracl.a(mrbuild.o): in function build': mrbuild.c:(.text+0x590): undefined reference tomuldvm' /usr/bin/ld: mrbuild.c:(.text+0x5cc): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrsmall.o): in functionsmul': mrsmall.c:(.text+0x48): undefined reference to muldiv' /usr/bin/ld: mrsmall.c:(.text+0x78): undefined reference tomuldvd' /usr/bin/ld: miracl.a(mrsmall.o): in function invers': mrsmall.c:(.text+0x144): undefined reference tomuldvm' /usr/bin/ld: miracl.a(mrsmall.o): in function spmd': mrsmall.c:(.text+0x2f0): undefined reference tomuldiv' /usr/bin/ld: mrsmall.c:(.text+0x308): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrsmall.o): in functionsqrmp': mrsmall.c:(.text+0x410): undefined reference to muldiv' /usr/bin/ld: mrsmall.c:(.text+0x44c): undefined reference tomuldiv' /usr/bin/ld: mrsmall.c:(.text+0x4bc): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrsmall.o):mrsmall.c:(.text+0x4ec): more undefined references tomuldiv' follow collect2: error: ld returned 1 exit status /usr/bin/ld: big.o: in function ecurve2(int, int, int, int, Big const&, Big const&, int, int)': big.cpp:(.text+0x19f0): undefined reference toecurve2_init' /usr/bin/ld: miracl.a(mrarth1.o): in function mr_pmul': mrarth1.c:(.text+0xa0): undefined reference tomuldiv' /usr/bin/ld: mrarth1.c:(.text+0x110): undefined reference to muldvd' /usr/bin/ld: miracl.a(mrarth1.o): in functionmr_sdiv': mrarth1.c:(.text+0x370): undefined reference to muldvm' /usr/bin/ld: mrarth1.c:(.text+0x40c): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrarth2.o): in function normalise': mrarth2.c:(.text+0x108): undefined reference tomuldvm' /usr/bin/ld: miracl.a(mrarth2.o): in function multiply': mrarth2.c:(.text+0x328): undefined reference tomuldvd2' /usr/bin/ld: mrarth2.c:(.text+0x3cc): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0x4b8): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0x55c): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0x628): undefined reference tomuldvd2' /usr/bin/ld: mrarth2.c:(.text+0x6a8): undefined reference to muldvd2' /usr/bin/ld: miracl.a(mrarth2.o): in functiondivide': mrarth2.c:(.text+0x9f8): undefined reference to muldvm' /usr/bin/ld: mrarth2.c:(.text+0xa28): undefined reference tomuldvd' /usr/bin/ld: mrarth2.c:(.text+0xc50): undefined reference to muldvd' /usr/bin/ld: mrarth2.c:(.text+0xe18): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0xeb4): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0xf28): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrgcd.o): in function egcd': mrgcd.c:(.text+0x2fc): undefined reference tomuldiv' /usr/bin/ld: mrgcd.c:(.text+0x324): undefined reference to muldiv' /usr/bin/ld: mrgcd.c:(.text+0x35c): undefined reference tomuldvm' /usr/bin/ld: mrgcd.c:(.text+0x380): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrxgcd.o): in functionxgcd': mrxgcd.c:(.text+0x6a4): undefined reference to muldvm' /usr/bin/ld: mrxgcd.c:(.text+0x6d4): undefined reference tomuldvm' /usr/bin/ld: mrxgcd.c:(.text+0x700): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrxgcd.o):mrxgcd.c:(.text+0x728): more undefined references tomuldvm' follow /usr/bin/ld: miracl.a(mrxgcd.o): in function xgcd': mrxgcd.c:(.text+0x754): undefined reference tomuldiv' /usr/bin/ld: mrxgcd.c:(.text+0x78c): undefined reference to muldiv' /usr/bin/ld: mrxgcd.c:(.text+0x7bc): undefined reference tomuldiv' /usr/bin/ld: mrxgcd.c:(.text+0x7e8): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrmonty.o): in functionredc': mrmonty.c:(.text+0x554): undefined reference to muldvd2' /usr/bin/ld: mrmonty.c:(.text+0x6ac): undefined reference tomuldiv' /usr/bin/ld: mrmonty.c:(.text+0x6e4): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o): in functionmr_dif_fft': mrfast.c:(.text+0x740): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o): in functionmr_dit_fft': mrfast.c:(.text+0x8fc): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o): in functionmr_poly_rem': mrfast.c:(.text+0xb4c): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o):mrfast.c:(.text+0xbf8): more undefined references tomuldiv' follow /usr/bin/ld: miracl.a(mrfast.o): in function fft_mult': mrfast.c:(.text+0x2b5c): undefined reference tomuldvd' /usr/bin/ld: mrfast.c:(.text+0x2b88): undefined reference to muldvd' /usr/bin/ld: mrfast.c:(.text+0x2ba0): undefined reference tomuldvd' /usr/bin/ld: mrfast.c:(.text+0x2c44): undefined reference to muldiv' /usr/bin/ld: mrfast.c:(.text+0x2d3c): undefined reference tomuldiv' /usr/bin/ld: mrfast.c:(.text+0x2d64): undefined reference to muldiv' /usr/bin/ld: mrfast.c:(.text+0x2d84): undefined reference tomuldiv' /usr/bin/ld: mrfast.c:(.text+0x2eb4): undefined reference to muldvd' /usr/bin/ld: mrfast.c:(.text+0x2edc): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrround.o): in function euclid': mrround.c:(.text+0x324): undefined reference tomuldiv' /usr/bin/ld: mrround.c:(.text+0x350): undefined reference to muldiv' /usr/bin/ld: mrround.c:(.text+0x388): undefined reference tomuldvm' /usr/bin/ld: mrround.c:(.text+0x3b0): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrbuild.o): in functionbuild': mrbuild.c:(.text+0x590): undefined reference to muldvm' /usr/bin/ld: mrbuild.c:(.text+0x5cc): undefined reference tomuldvm' /usr/bin/ld: miracl.a(mrsmall.o): in function smul': mrsmall.c:(.text+0x48): undefined reference tomuldiv' /usr/bin/ld: mrsmall.c:(.text+0x78): undefined reference to muldvd' /usr/bin/ld: miracl.a(mrsmall.o): in functioninvers': mrsmall.c:(.text+0x144): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrsmall.o): in functionspmd': mrsmall.c:(.text+0x2f0): undefined reference to muldiv' /usr/bin/ld: mrsmall.c:(.text+0x308): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrsmall.o): in function sqrmp': mrsmall.c:(.text+0x410): undefined reference tomuldiv' /usr/bin/ld: mrsmall.c:(.text+0x44c): undefined reference to muldiv' /usr/bin/ld: mrsmall.c:(.text+0x4bc): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrsmall.o):mrsmall.c:(.text+0x4ec): more undefined references to muldiv' follow collect2: error: ld returned 1 exit status /usr/bin/ld: big.o: in functionecurve2(int, int, int, int, Big const&, Big const&, int, int)': big.cpp:(.text+0x19f0): undefined reference to ecurve2_init' /usr/bin/ld: miracl.a(mrarth1.o): in functionmr_pmul': mrarth1.c:(.text+0xa0): undefined reference to muldiv' /usr/bin/ld: mrarth1.c:(.text+0x110): undefined reference tomuldvd' /usr/bin/ld: miracl.a(mrarth1.o): in function mr_sdiv': mrarth1.c:(.text+0x370): undefined reference tomuldvm' /usr/bin/ld: mrarth1.c:(.text+0x40c): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrarth2.o): in functionnormalise': mrarth2.c:(.text+0x108): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrarth2.o): in functionmultiply': mrarth2.c:(.text+0x328): undefined reference to muldvd2' /usr/bin/ld: mrarth2.c:(.text+0x3cc): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0x4b8): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0x55c): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0x628): undefined reference to muldvd2' /usr/bin/ld: mrarth2.c:(.text+0x6a8): undefined reference tomuldvd2' /usr/bin/ld: miracl.a(mrarth2.o): in function divide': mrarth2.c:(.text+0x9f8): undefined reference tomuldvm' /usr/bin/ld: mrarth2.c:(.text+0xa28): undefined reference to muldvd' /usr/bin/ld: mrarth2.c:(.text+0xc50): undefined reference tomuldvd' /usr/bin/ld: mrarth2.c:(.text+0xe18): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0xeb4): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0xf28): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrgcd.o): in functionegcd': mrgcd.c:(.text+0x2fc): undefined reference to muldiv' /usr/bin/ld: mrgcd.c:(.text+0x324): undefined reference tomuldiv' /usr/bin/ld: mrgcd.c:(.text+0x35c): undefined reference to muldvm' /usr/bin/ld: mrgcd.c:(.text+0x380): undefined reference tomuldvm' /usr/bin/ld: miracl.a(mrxgcd.o): in function xgcd': mrxgcd.c:(.text+0x6a4): undefined reference tomuldvm' /usr/bin/ld: mrxgcd.c:(.text+0x6d4): undefined reference to muldvm' /usr/bin/ld: mrxgcd.c:(.text+0x700): undefined reference tomuldvm' /usr/bin/ld: miracl.a(mrxgcd.o):mrxgcd.c:(.text+0x728): more undefined references to muldvm' follow /usr/bin/ld: miracl.a(mrxgcd.o): in functionxgcd': mrxgcd.c:(.text+0x754): undefined reference to muldiv' /usr/bin/ld: mrxgcd.c:(.text+0x78c): undefined reference tomuldiv' /usr/bin/ld: mrxgcd.c:(.text+0x7bc): undefined reference to muldiv' /usr/bin/ld: mrxgcd.c:(.text+0x7e8): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrmonty.o): in function redc': mrmonty.c:(.text+0x554): undefined reference tomuldvd2' /usr/bin/ld: mrmonty.c:(.text+0x6ac): undefined reference to muldiv' /usr/bin/ld: mrmonty.c:(.text+0x6e4): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrfast.o): in function mr_dif_fft': mrfast.c:(.text+0x740): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrfast.o): in function mr_dit_fft': mrfast.c:(.text+0x8fc): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrfast.o): in function mr_poly_rem': mrfast.c:(.text+0xb4c): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrfast.o):mrfast.c:(.text+0xbf8): more undefined references to muldiv' follow /usr/bin/ld: miracl.a(mrfast.o): in functionfft_mult': mrfast.c:(.text+0x2b5c): undefined reference to muldvd' /usr/bin/ld: mrfast.c:(.text+0x2b88): undefined reference tomuldvd' /usr/bin/ld: mrfast.c:(.text+0x2ba0): undefined reference to muldvd' /usr/bin/ld: mrfast.c:(.text+0x2c44): undefined reference tomuldiv' /usr/bin/ld: mrfast.c:(.text+0x2d3c): undefined reference to muldiv' /usr/bin/ld: mrfast.c:(.text+0x2d64): undefined reference tomuldiv' /usr/bin/ld: mrfast.c:(.text+0x2d84): undefined reference to muldiv' /usr/bin/ld: mrfast.c:(.text+0x2eb4): undefined reference tomuldvd' /usr/bin/ld: mrfast.c:(.text+0x2edc): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrround.o): in functioneuclid': mrround.c:(.text+0x324): undefined reference to muldiv' /usr/bin/ld: mrround.c:(.text+0x350): undefined reference tomuldiv' /usr/bin/ld: mrround.c:(.text+0x388): undefined reference to muldvm' /usr/bin/ld: mrround.c:(.text+0x3b0): undefined reference tomuldvm' /usr/bin/ld: miracl.a(mrbuild.o): in function build': mrbuild.c:(.text+0x590): undefined reference tomuldvm' /usr/bin/ld: mrbuild.c:(.text+0x5cc): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrsmall.o): in functionsmul': mrsmall.c:(.text+0x48): undefined reference to muldiv' /usr/bin/ld: mrsmall.c:(.text+0x78): undefined reference tomuldvd' /usr/bin/ld: miracl.a(mrsmall.o): in function invers': mrsmall.c:(.text+0x144): undefined reference tomuldvm' /usr/bin/ld: miracl.a(mrsmall.o): in function spmd': mrsmall.c:(.text+0x2f0): undefined reference tomuldiv' /usr/bin/ld: mrsmall.c:(.text+0x308): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrsmall.o): in functionsqrmp': mrsmall.c:(.text+0x410): undefined reference to muldiv' /usr/bin/ld: mrsmall.c:(.text+0x44c): undefined reference tomuldiv' /usr/bin/ld: mrsmall.c:(.text+0x4bc): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrsmall.o):mrsmall.c:(.text+0x4ec): more undefined references tomuldiv' follow collect2: error: ld returned 1 exit status /usr/bin/ld: big.o: in function ecurve2(int, int, int, int, Big const&, Big const&, int, int)': big.cpp:(.text+0x19f0): undefined reference toecurve2_init' /usr/bin/ld: miracl.a(mrarth1.o): in function mr_pmul': mrarth1.c:(.text+0xa0): undefined reference tomuldiv' /usr/bin/ld: mrarth1.c:(.text+0x110): undefined reference to muldvd' /usr/bin/ld: miracl.a(mrarth1.o): in functionmr_sdiv': mrarth1.c:(.text+0x370): undefined reference to muldvm' /usr/bin/ld: mrarth1.c:(.text+0x40c): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrarth2.o): in function normalise': mrarth2.c:(.text+0x108): undefined reference tomuldvm' /usr/bin/ld: miracl.a(mrarth2.o): in function multiply': mrarth2.c:(.text+0x328): undefined reference tomuldvd2' /usr/bin/ld: mrarth2.c:(.text+0x3cc): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0x4b8): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0x55c): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0x628): undefined reference tomuldvd2' /usr/bin/ld: mrarth2.c:(.text+0x6a8): undefined reference to muldvd2' /usr/bin/ld: miracl.a(mrarth2.o): in functiondivide': mrarth2.c:(.text+0x9f8): undefined reference to muldvm' /usr/bin/ld: mrarth2.c:(.text+0xa28): undefined reference tomuldvd' /usr/bin/ld: mrarth2.c:(.text+0xc50): undefined reference to muldvd' /usr/bin/ld: mrarth2.c:(.text+0xe18): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0xeb4): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0xf28): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrgcd.o): in function egcd': mrgcd.c:(.text+0x2fc): undefined reference tomuldiv' /usr/bin/ld: mrgcd.c:(.text+0x324): undefined reference to muldiv' /usr/bin/ld: mrgcd.c:(.text+0x35c): undefined reference tomuldvm' /usr/bin/ld: mrgcd.c:(.text+0x380): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrxgcd.o): in functionxgcd': mrxgcd.c:(.text+0x6a4): undefined reference to muldvm' /usr/bin/ld: mrxgcd.c:(.text+0x6d4): undefined reference tomuldvm' /usr/bin/ld: mrxgcd.c:(.text+0x700): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrxgcd.o):mrxgcd.c:(.text+0x728): more undefined references tomuldvm' follow /usr/bin/ld: miracl.a(mrxgcd.o): in function xgcd': mrxgcd.c:(.text+0x754): undefined reference tomuldiv' /usr/bin/ld: mrxgcd.c:(.text+0x78c): undefined reference to muldiv' /usr/bin/ld: mrxgcd.c:(.text+0x7bc): undefined reference tomuldiv' /usr/bin/ld: mrxgcd.c:(.text+0x7e8): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrmonty.o): in functionredc': mrmonty.c:(.text+0x554): undefined reference to muldvd2' /usr/bin/ld: mrmonty.c:(.text+0x6ac): undefined reference tomuldiv' /usr/bin/ld: mrmonty.c:(.text+0x6e4): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o): in functionmr_dif_fft': mrfast.c:(.text+0x740): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o): in functionmr_dit_fft': mrfast.c:(.text+0x8fc): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o): in functionmr_poly_rem': mrfast.c:(.text+0xb4c): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o):mrfast.c:(.text+0xbf8): more undefined references tomuldiv' follow /usr/bin/ld: miracl.a(mrfast.o): in function fft_mult': mrfast.c:(.text+0x2b5c): undefined reference tomuldvd' /usr/bin/ld: mrfast.c:(.text+0x2b88): undefined reference to muldvd' /usr/bin/ld: mrfast.c:(.text+0x2ba0): undefined reference tomuldvd' /usr/bin/ld: mrfast.c:(.text+0x2c44): undefined reference to muldiv' /usr/bin/ld: mrfast.c:(.text+0x2d3c): undefined reference tomuldiv' /usr/bin/ld: mrfast.c:(.text+0x2d64): undefined reference to muldiv' /usr/bin/ld: mrfast.c:(.text+0x2d84): undefined reference tomuldiv' /usr/bin/ld: mrfast.c:(.text+0x2eb4): undefined reference to muldvd' /usr/bin/ld: mrfast.c:(.text+0x2edc): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrround.o): in function euclid': mrround.c:(.text+0x324): undefined reference tomuldiv' /usr/bin/ld: mrround.c:(.text+0x350): undefined reference to muldiv' /usr/bin/ld: mrround.c:(.text+0x388): undefined reference tomuldvm' /usr/bin/ld: mrround.c:(.text+0x3b0): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrbuild.o): in functionbuild': mrbuild.c:(.text+0x590): undefined reference to muldvm' /usr/bin/ld: mrbuild.c:(.text+0x5cc): undefined reference tomuldvm' /usr/bin/ld: miracl.a(mrsmall.o): in function smul': mrsmall.c:(.text+0x48): undefined reference tomuldiv' /usr/bin/ld: mrsmall.c:(.text+0x78): undefined reference to muldvd' /usr/bin/ld: miracl.a(mrsmall.o): in functioninvers': mrsmall.c:(.text+0x144): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrsmall.o): in functionspmd': mrsmall.c:(.text+0x2f0): undefined reference to muldiv' /usr/bin/ld: mrsmall.c:(.text+0x308): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrsmall.o): in function sqrmp': mrsmall.c:(.text+0x410): undefined reference tomuldiv' /usr/bin/ld: mrsmall.c:(.text+0x44c): undefined reference to muldiv' /usr/bin/ld: mrsmall.c:(.text+0x4bc): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrsmall.o):mrsmall.c:(.text+0x4ec): more undefined references to muldiv' follow collect2: error: ld returned 1 exit status /usr/bin/ld: big.o: in functionecurve2(int, int, int, int, Big const&, Big const&, int, int)': big.cpp:(.text+0x19f0): undefined reference to ecurve2_init' /usr/bin/ld: miracl.a(mrarth1.o): in functionmr_pmul': mrarth1.c:(.text+0xa0): undefined reference to muldiv' /usr/bin/ld: mrarth1.c:(.text+0x110): undefined reference tomuldvd' /usr/bin/ld: miracl.a(mrarth1.o): in function mr_sdiv': mrarth1.c:(.text+0x370): undefined reference tomuldvm' /usr/bin/ld: mrarth1.c:(.text+0x40c): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrarth2.o): in functionnormalise': mrarth2.c:(.text+0x108): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrarth2.o): in functionmultiply': mrarth2.c:(.text+0x328): undefined reference to muldvd2' /usr/bin/ld: mrarth2.c:(.text+0x3cc): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0x4b8): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0x55c): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0x628): undefined reference to muldvd2' /usr/bin/ld: mrarth2.c:(.text+0x6a8): undefined reference tomuldvd2' /usr/bin/ld: miracl.a(mrarth2.o): in function divide': mrarth2.c:(.text+0x9f8): undefined reference tomuldvm' /usr/bin/ld: mrarth2.c:(.text+0xa28): undefined reference to muldvd' /usr/bin/ld: mrarth2.c:(.text+0xc50): undefined reference tomuldvd' /usr/bin/ld: mrarth2.c:(.text+0xe18): undefined reference to muldiv' /usr/bin/ld: mrarth2.c:(.text+0xeb4): undefined reference tomuldiv' /usr/bin/ld: mrarth2.c:(.text+0xf28): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrsmall.o): in functionsmul': mrsmall.c:(.text+0x48): undefined reference to muldiv' /usr/bin/ld: mrsmall.c:(.text+0x78): undefined reference tomuldvd' /usr/bin/ld: miracl.a(mrsmall.o): in function invers': mrsmall.c:(.text+0x144): undefined reference tomuldvm' /usr/bin/ld: miracl.a(mrsmall.o): in function spmd': mrsmall.c:(.text+0x2f0): undefined reference tomuldiv' /usr/bin/ld: mrsmall.c:(.text+0x308): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrsmall.o): in functionsqrmp': mrsmall.c:(.text+0x410): undefined reference to muldiv' /usr/bin/ld: mrsmall.c:(.text+0x44c): undefined reference tomuldiv' /usr/bin/ld: mrsmall.c:(.text+0x4bc): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrsmall.o):mrsmall.c:(.text+0x4ec): more undefined references tomuldiv' follow /usr/bin/ld: miracl.a(mrgcd.o): in function egcd': mrgcd.c:(.text+0x35c): undefined reference tomuldvm' /usr/bin/ld: mrgcd.c:(.text+0x380): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrxgcd.o): in functionxgcd': mrxgcd.c:(.text+0x6a4): undefined reference to muldvm' /usr/bin/ld: mrxgcd.c:(.text+0x6d4): undefined reference tomuldvm' /usr/bin/ld: mrxgcd.c:(.text+0x700): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrxgcd.o):mrxgcd.c:(.text+0x728): more undefined references tomuldvm' follow /usr/bin/ld: miracl.a(mrxgcd.o): in function xgcd': mrxgcd.c:(.text+0x754): undefined reference tomuldiv' /usr/bin/ld: mrxgcd.c:(.text+0x78c): undefined reference to muldiv' /usr/bin/ld: mrxgcd.c:(.text+0x7bc): undefined reference tomuldiv' /usr/bin/ld: mrxgcd.c:(.text+0x7e8): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrmonty.o): in functionredc': mrmonty.c:(.text+0x554): undefined reference to muldvd2' /usr/bin/ld: mrmonty.c:(.text+0x6ac): undefined reference tomuldiv' /usr/bin/ld: mrmonty.c:(.text+0x6e4): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o): in functionmr_dif_fft': mrfast.c:(.text+0x740): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o): in functionmr_dit_fft': mrfast.c:(.text+0x8fc): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o): in functionmr_poly_rem': mrfast.c:(.text+0xb4c): undefined reference to muldiv' /usr/bin/ld: miracl.a(mrfast.o):mrfast.c:(.text+0xbf8): more undefined references tomuldiv' follow /usr/bin/ld: miracl.a(mrfast.o): in function fft_mult': mrfast.c:(.text+0x2b5c): undefined reference tomuldvd' /usr/bin/ld: mrfast.c:(.text+0x2b88): undefined reference to muldvd' /usr/bin/ld: mrfast.c:(.text+0x2ba0): undefined reference tomuldvd' /usr/bin/ld: mrfast.c:(.text+0x2c44): undefined reference to muldiv' /usr/bin/ld: mrfast.c:(.text+0x2d3c): undefined reference tomuldiv' /usr/bin/ld: mrfast.c:(.text+0x2d64): undefined reference to muldiv' /usr/bin/ld: mrfast.c:(.text+0x2d84): undefined reference tomuldiv' /usr/bin/ld: mrfast.c:(.text+0x2eb4): undefined reference to muldvd' /usr/bin/ld: mrfast.c:(.text+0x2edc): undefined reference tomuldiv' /usr/bin/ld: miracl.a(mrround.o): in function euclid': mrround.c:(.text+0x324): undefined reference tomuldiv' /usr/bin/ld: mrround.c:(.text+0x350): undefined reference to muldiv' /usr/bin/ld: mrround.c:(.text+0x388): undefined reference tomuldvm' /usr/bin/ld: mrround.c:(.text+0x3b0): undefined reference to muldvm' /usr/bin/ld: miracl.a(mrbuild.o): in functionbuild': mrbuild.c:(.text+0x590): undefined reference to muldvm' /usr/bin/ld: mrbuild.c:(.text+0x5cc): undefined reference tomuldvm' collect2: error: ld returned 1 exit status

kexuedaishu commented 2 years ago

Is there any solution for ARM system? I've encountered the same problem here.

kimud6003 commented 2 years ago

In my case, I resolved it as shown in the repository below to use the library in Raspberry Pi.

https://github.com/kimud6003/MIRACL-raspbian/tree/Raspbian

Raspberry Pi Installation

1) Download this repo to a zip file

2) bash linux-raspbian.sh


rm : cannot remove '.exe' : no such file or directory
rm : cannot remove 'miracl.a' : no such file or directory

3) Test Miracl