Turn on posix directory for RTEMS
Jeff Johnston
jjohnstn@redhat.com
Wed Nov 19 19:49:00 GMT 2008
Ralf Corsepius wrote:
> On Mon, 2008-11-17 at 17:07 -0500, Jeff Johnston wrote:
>
>> Joel Sherrill wrote:
>>
>>> Hi Jeff,
>>>
>>> You and I discussed this a week or two ago and here
>>> is the patch. We had stubs for the exec* routines and
>>> a copy of the *dir routines from around newlib 1.8.
>>> After this is merged and Ralf turns the crank for
>>> new RTEMS gcc/newlib RPMs with this, we can
>>> delete some files from RTEMS. :)
>>>
>>> 2008-11-05 Joel Sherrill <joel.sherrill@oarcorp.com>
>>>
>>> * configure.host: RTEMS now uses posix subdirectory.
>>>
>>>
>> Patch checked in. Sorry for the delay.
>>
>
> With this patch applied, I am not able to build any rtems-toolchain (!)
> anymore:
>
> ...
> In file included
> from /builddir/build/BUILD/rtems-4.10-bfin-rtems4.10-gcc-4.3.2/gcc-4.3.2/newlib/libc/include/stdio.h:34,
>
> from ../../../../../gcc-4.3.2/newlib/libc/posix/rune.h:40,
>
> from ../../../../../gcc-4.3.2/newlib/libc/posix/collate.c:31:
> /builddir/build/BUILD/rtems-4.10-bfin-rtems4.10-gcc-4.3.2/build/./gcc/include/stddef.h:214: error: conflicting types for 'size_t'
> ../../../../../gcc-4.3.2/newlib/libc/posix/runetype.h:54: error:
> previous declaration of 'size_t' was here
>
>
> AFAIS, this code suffers from its BSD-heritage, so I worked around it by
> replacing the BSD-types in runetype.h with POSIX/susv3-types from
> stddef.h.
>
> Corresponding patch enclosed below.
>
> Ralf
>
>
Patch checked in.
-- Jeff J.
More information about the Newlib
mailing list