<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Dear All, <br><br>I am in process of building relic-toolkits (relic-0.3.1) for Arduino DUE which contain arm-cortex m3. Attached is the cmake file for making the library. The library been built successfully but reporting the following errors after applying make command<br><br>Linking C static library ../lib/librelic_s.a<br>[ 87%] Built target relic_s<br>Scanning dependencies of target test_bn<br>[ 88%] Building C object test/CMakeFiles/test_bn.dir/test_bn.c.obj<br>Linking C executable ../bin/test_bn<br>/usr/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 00008000<br>../lib/librelic_s.a(relic_rand.c.obj): In function `rand_init':<br>relic_rand.c:(.text+0x18): undefined reference to `memset'<br>relic_rand.c:(.text+0x20): undefined reference to `srand'<br>relic_rand.c:(.text+0x30): undefined reference to `rand'<br>../lib/librelic_s.a(relic_rand.c.obj): In function `rand_clean':<br>relic_rand.c:(.text+0xa0): undefined reference to `memset'<br>../lib/librelic_s.a(relic_util.c.obj): In function `util_bits_dig':<br>relic_util.c:(.text+0x120): undefined reference to `__clzsi2'<br>../lib/librelic_s.a(relic_util.c.obj): In function `util_printf':<br>relic_util.c:(.text+0x15c): undefined reference to `vprintf'<br>relic_util.c:(.text+0x170): undefined reference to `fflush'<br>relic_util.c:(.text+0x184): undefined reference to `_impure_ptr'<br>../lib/librelic_s.a(relic_bn_gcd.c.obj): In function `bn_gcd_dig':<br>relic_bn_gcd.c:(.text+0xd80): undefined reference to `__aeabi_uidivmod'<br>../lib/librelic_s.a(relic_bn_gcd.c.obj): In function `bn_gcd_ext_dig':<br>relic_bn_gcd.c:(.text+0x1070): undefined reference to `__aeabi_uidiv'<br>relic_bn_gcd.c:(.text+0x1088): undefined reference to `__aeabi_uidivmod'<br>../lib/librelic_s.a(relic_bn_util.c.obj): In function `bn_read_bin':<br>relic_bn_util.c:(.text+0x10b8): undefined reference to `__aeabi_uidivmod'<br>relic_bn_util.c:(.text+0x10d4): undefined reference to `__aeabi_uidiv'<br>relic_bn_util.c:(.text+0x10ec): undefined reference to `__aeabi_uidiv'<br>../lib/librelic_s.a(relic_fb_util.c.obj): In function `fb_write':<br>relic_fb_util.c:(.text+0xa5c): undefined reference to `__aeabi_uidivmod'<br>../lib/librelic_s.a(relic_bn_div_low.c.obj): In function `bn_divn_low':<br>relic_bn_div_low.c:(.text+0x2f4): undefined reference to `__aeabi_uldivmod'<br>../lib/librelic_s.a(relic_bn_div_low.c.obj): In function `bn_div1_low':<br>relic_bn_div_low.c:(.text+0x7a8): undefined reference to `__aeabi_uldivmod'<br>../lib/librelic_s.a(sha1.c.obj): In function `SHA1FinalBits':<br>sha1.c:(.text+0x2d0): undefined reference to `memcpy'<br>sha1.c:(.text+0x2f0): undefined reference to `memcpy'<br>collect2: error: ld returned 1 exit status<br>make[2]: *** [bin/test_bn] Error 1<br>make[1]: *** [test/CMakeFiles/test_bn.dir/all] Error 2<br>make: *** [all] Error 2<br><br>for your information the following cmake command been used to build the library <br><br>cmake "Lunix Makefiles" -DCMAKE_TOOLCHAIN_FILE=relic-arm3.cmake -DCOMP=" -nostartfiles -nostdlib" -DTESTS=1 -DARCH=ARM -DWORD=32 -DOPSYS=NONE -DSEED=LIBC -DSHLIB=OFF -DSTBIN=ON -DTIMER=NONE -DWITH="DV;BN;FB;EB;EC;CP;MD" -DBENCH=20 -DTESTS=20 -DCHECK=off -DVERBS=off -DSTRIP=on -DQUIET=off -DARITH=easy -DFB_POLYN=163 -DBN_METHD="COMBA;COMBA;MONTY;SLIDE;STEIN;BASIC" -DFB_METHD="INTEG;INTEG;QUICK;BASIC;BASIC;BASIC;EXGCD;BASIC;BASIC" -DFB_PRECO=off -DFB_TRINO=off -DBN_PRECI=160 -DBN_MAGNI=DOUBLE -DEB_PRECO=on -DEB_METHD="PROJC;RWNAF;LWNAF;INTER" -DEB_MIXED=on -DEB_KBLTZ=on -DEB_ORDIN=off -DEB_SUPER=off -DEC_METHD="CHAR2" -DMD_METHD=SHONE ./CMakeLists.txt<br><br>I hope I can get your kind help and support as I am struggling with this issue for more than two weeks <br><br><br>BR//<br><br>Albahri<br>                                            </div></body>
</html>