This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Turn on posix directory for RTEMS


Jeff Johnston wrote:
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.
Ralf mentioned this build failure to me offline but I never could
get this failure to happen.  I am building with gcc SVN trunk but
I don't see how that would help.

Any ideas on what might be the difference?

Not that it matters much. This is the right solution.
-- Jeff J.


--
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
  Support Available             (256) 722-9985



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]