[ECOS] Re: libm use in kernel

Sergei Gavrikov sergei.gavrikov@gmail.com
Mon Nov 15 21:43:00 GMT 2010


Michael Bergandi wrote:

[snip]

> ... when we build this configuration, the compile errors out with this
> message:
>
> In file included from /cygdrive/c/adr/code/ecos/
> packages/devs/eth/arm/mxc/ktsradio/current/src/ktsradio.c:87:/ecos-c/adr/code/ecosbuild/install/include/math.h:228:
> error: syntax error before "do"
> make[1]: *** [src/ktsradio.o.d] Error 1
> make[1]: Leaving directory
> `/cygdrive/c/adr/code/ecosbuild/devs/eth/arm/mxc/ktsradio/current'
> make: *** [build] Error 2
>
> From math.h:
> 226
> 227 externC double
> 228 log( double );             // natural logarithm

[snip]

> Also, I forgot to mention that this is an eCos v2 tree. We are working
> on updating to v3, but that will take some time.

Just in case, Do you sure that you have virgin header? "Look" around
this place

   % grep -A2 -B2 ^log\( math.h | od -tax1

Perhaps, you need re-checkout math.h. But that is my guess only.

FYI: math.h (v2_0) differs from math.h (v3_0, CVS) only in the copyright
banner.

Sergei

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list