<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/16 Sebastian Huber <span dir="ltr"><<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 2013-09-16 12:58, Peng Fan wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
        I do not know how to resolve this. I tried to pass `-lm` to gcc, but still<br>
        failed to link.<br>
<br>
<br>
    Can you please provide the full command line?<br>
<br>
/opt/rtems-4.11/bin/sparc-<u></u>rtems4.11-gcc -qrtems<br>
-B/opt/rtems-4.11/sparc-<u></u>rtems4.11/lib/<br>
-B/opt/rtems-4.11/sparc-<u></u>rtems4.11/sis/lib/ --specs bsp_specs -mcpu=cypress -O2<br>
-g -Wall -Wmissing-prototypes -Wimplicit-function-<u></u>declaration<br>
-Wstrict-prototypes -Wnested-externs init.c.5.o main.c.5.o fs-root-tarfile.o -o<br>
rtld.prelink -Wl-Bstatic -L. -lrtl -Wl,-Bdynamic<br>
This is the command. Thanks.<br>
<br>
</blockquote>
<br></div>
You definitely need -lm, just add it as the last option.</blockquote><div style>Thanks, it seems there is something wrong with my waf config. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone   : +49 89 189 47 41-16<br>
Fax     : +49 89 189 47 41-09<br>
E-Mail  : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-<u></u>brains.de</a><br>
PGP     : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
</div></div></blockquote></div><br></div></div>