<p dir="ltr"><br>
On Apr 27, 2014 5:12 PM, Hesham Moustafa <heshamelmatary@gmail.com> wrote:<br>
><br>
> Hi all,<br>
><br>
> When I am trying to get newlib compiled while porting newlib to<br>
> rtems/or1k, I met an error that confused me. The error happens for me<br>
> with both: Ubuntu and Fedora. Also it arises when configuring and<br>
> building a standalone newlib library (with configure<br>
> --target=or1k-rtems4.11) or when building gcc with newlib (for the<br>
> same target). By commenting that line, newlib and gcc building process<br>
> works fine.<br>
><br>
> The error is:<br>
><br>
> "../../../../../../../gcc-4.8.2-or1k-rtems/newlib/libc/sys/rtems/crt0.c:74:37:<br>
> error: expected ‘)’ before ‘*’ token<br>
> RTEMS_STUB(int, sigfillset(sigset_t *set), { return -1; })"<br>
><br>
> By expanding the macros with -E option, I got the following expansion<br>
> for the corresponding function:<br>
><br>
> int rtems_stub_sigfillset(sigset_t *set) { return -1; }; int<br>
> (*(sigset_t *set) = ~(0), 0) { return -1; }<br>
><br>
> Does that make sense?<br>
><br>
> I searched for anyone that happened to have the same problem and I<br>
> found this link [1] related to compiling rtems/newlib for microblaze</p>
<p dir="ltr">This is a new architecture for RTEMS+newlib combination. I recall that there is a configure script near the top of newlib and it needs an entry for thus target. Or a pattern needs adjusting to distinguish or1k*-*-* from the RTEMS variant.</p>
<p dir="ltr">> [1] http://sourceware.org/ml/newlib/2012/msg00529.html<br>
><br>
> Regards,<br>
> Hesham<br>
><br>
> _______________________________________________<br>
> rtems-devel mailing list<br>
> rtems-devel@rtems.org<br>
> http://www.rtems.org/mailman/listinfo/rtems-devel<br>
</p>