Possible bug at newlib/libc/rtems/sys/crt0.c sigfillset
Hesham Moustafa
heshamelmatary at gmail.com
Sun Apr 27 22:15:34 UTC 2014
Hi all,
When I am trying to get newlib compiled while porting newlib to
rtems/or1k, I met an error that confused me. The error happens for me
with both: Ubuntu and Fedora. Also it arises when configuring and
building a standalone newlib library (with configure
--target=or1k-rtems4.11) or when building gcc with newlib (for the
same target). By commenting that line, newlib and gcc building process
works fine.
The error is:
"../../../../../../../gcc-4.8.2-or1k-rtems/newlib/libc/sys/rtems/crt0.c:74:37:
error: expected ‘)’ before ‘*’ token
RTEMS_STUB(int, sigfillset(sigset_t *set), { return -1; })"
By expanding the macros with -E option, I got the following expansion
for the corresponding function:
int rtems_stub_sigfillset(sigset_t *set) { return -1; }; int
(*(sigset_t *set) = ~(0), 0) { return -1; }
Does that make sense?
I searched for anyone that happened to have the same problem and I
found this link [1] related to compiling rtems/newlib for microblaze
[1] http://sourceware.org/ml/newlib/2012/msg00529.html
Regards,
Hesham
More information about the devel
mailing list