Build error with demo code: lvalue requried
Posted: Sat Aug 25, 2012 12:51 am
Hello all,
Before I spend the time looking for the root cause, has anybody gotten the following error during compilation:
../../os/various/syscalls.c:95:3: warning: implicit declaration of function '__errno_r' [-Wimplicit-function-declaration]
../../os/various/syscalls.c:95:16: error: lvalue required as left operand of assignment
The code which causes this is:
__errno_r(r) = EINVAL;
I'm guessing that __errno_r(r) is a macro which is currently not defined
I'm using Sourcery CodeBench Lite Edition as my toolchain under Linux and the latest (stable) ChibiOS_2.4.2 from Sourceforge.
I will post a solution once I figure out what going on, but if someone has come across this before, I would appreciate if someone who has come across this already, post a solution.
Thanks,
Barry Sprajc
Before I spend the time looking for the root cause, has anybody gotten the following error during compilation:
../../os/various/syscalls.c:95:3: warning: implicit declaration of function '__errno_r' [-Wimplicit-function-declaration]
../../os/various/syscalls.c:95:16: error: lvalue required as left operand of assignment
The code which causes this is:
__errno_r(r) = EINVAL;
I'm guessing that __errno_r(r) is a macro which is currently not defined
I'm using Sourcery CodeBench Lite Edition as my toolchain under Linux and the latest (stable) ChibiOS_2.4.2 from Sourceforge.
I will post a solution once I figure out what going on, but if someone has come across this before, I would appreciate if someone who has come across this already, post a solution.
Thanks,
Barry Sprajc