Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to install miracl #109

Open
mrityunjaysingh1983 opened this issue Feb 27, 2022 · 0 comments
Open

Not able to install miracl #109

mrityunjaysingh1983 opened this issue Feb 27, 2022 · 0 comments

Comments

@mrityunjaysingh1983
Copy link

mrityunjaysingh1983 commented Feb 27, 2022

I have followed the following steps to install miracl. But when I compile it it gives man error.

  1. Compile and run config.c on the target processor.
    Action: gcc confing.c (it gives some warning) .then i run /a.out and then I entered some times y some times n.

  2. Rename the generated file mirdef.tst to mirdef.h
    Action: mv mirdef.tst mirdef.h and then copied this file in MIRACL-master/include

3. copied the standard C version mrmuldv.ccc to mrmuldv.c and use this to compile
  1. Make sure that all the MIRACL header files are accessible to the compiler. Typically the flag –I. or /I. allows these headers to be accessed from the current directory.

Action: To ensure this I used the following command to compile gcc –I /home/mypc/Desktop/MIRACL-master/include –c –O2 mr*.c

  1. Compile the MIRACL modules listed in the generated file miracl.lst and create a library file, typically miracl.a or miracl.lib. This might be achieved by editing miracl.lst into a suitable batch or make file. On UNIX it might be as simple as:

Action: cd /home/mypc/Desktop/MIRACL-master/source; gcc –I /home/mypc/Desktop/MIRACL-master/include –c –O2 mr*.c

It gives many error. Some are as follows. Please help me in resolving these errors.

mrarth1.c:56:10: fatal error: ieeefp.h: No such file or directory
56 | #include <ieeefp.h>
| ^~~~~~~~~~
compilation terminated.
mrmonty.c: In function ‘prepare_monty’:
mrmonty.c:145:20: error: invalid operands to binary >> (have ‘mr_small’ {aka ‘double’} and ‘int’)
145 | if (n->w[n->len-1]>>M4 < 5) mr_mip->NO_CARRY=TRUE;
| ~~~~~~~~~~~~~~^~
| |
| mr_small {aka double}
mrmuldv12.c: In function ‘muldiv’:
mrmuldv12.c:7:13: error: unknown type name ‘_asm’
7 | #define ASM _asm
| ^~~~
mrmuldv12.c:12:9: note: in expansion of macro ‘ASM’
12 | ASM mov eax,DWORD PTR a
| ^~~
mrmuldv12.c:12:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘eax’
12 | ASM mov eax,DWORD PTR a
| ^~~
mrmuldv12.c:15:23: error: invalid suffix "h" on integer constant
15 | ASM adc edx,0h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant