Trouble building examples-v2 with waf. Was: Re: can't compile both_hello - POSIX API error
bremby at seznam.cz
Sun Jan 4 20:47:12 UTC 2015
On Sun, 04 Jan 2015 21:12:16 +0100, Joel Sherrill
<joel.sherrill at oarcorp.com> wrote:
> On January 4, 2015 2:05:13 PM CST, Dominik Taborsky <bremby at seznam.cz>
>> On Sun, 04 Jan 2015 20:53:16 +0100, Joel Sherrill
>> <joel.sherrill at oarcorp.com> wrote:
>>> On January 4, 2015 1:20:31 PM CST, "Dominik Táborský"
>> <Bremby at seznam.cz>
>>>> I've configured RTEMS with --enable-posix, run make, make install.
>>>> Everything went smoothly, didn't notice any error. But when I run
>>>> in the both_hello example, it errors:
>>>> In file included from test.c:55:0:
>>>> /opt/rtems-4.11/sparc-rtems4.11/sis/lib/include/rtems/confdefs.h: At
>>>> top level:
>>>> error: #error "CONFIGURATION ERROR: POSIX API support not
>>>> #error "CONFIGURATION ERROR: POSIX API support not configured!!"
>>>> All repos are up-to-date, ran make clean between configs and even
>>>> manually deleted the installed RTEMS files to ensure new ones are
>>>> installed. Any ideas?
>>> How did you configure RTEMS? If you has --disable-posix, then this is
>> As I said in the beginning of the mail, I configured it with
>> --enable-posix. Or would you like the whole command?
> Sure. Since it worked for me, that's the next step.
OK. I've completely rebuilt RTEMS from scratch and it works now. It looks
like some old config was still in place.
Now I have a different problem - waf has trouble building examples-v2 in
root of the repo. GCC complains about bsp_specs trying to rename spec
'endfile' to already defined spec 'old_endfile'. It happens quite randomly
among the files. I've never worked with these bsp specs before, so I'm at
my wit's end.
sparc-rtems4.11-gcc: fatal error:
/opt/rtems-4.11//sparc-rtems4.11/sis/lib/bsp_specs: attempt to rename spec
'endfile' to already defined spec 'old_endfile'
More information about the devel