Odd Microblaze Tool Build Failure
Joel Sherrill
joel at rtems.org
Sat Feb 29 23:43:58 UTC 2020
I see other reports of this failure. I haven't had a chance to check this
deeply but I was suspicious of the gcc configuration not getting __rtems__
defined.
On Thu, Feb 27, 2020, 11:17 AM Joel Sherrill <joel at rtems.org> wrote:
> Hi
>
> The Microblaze uses the rtems-default.bset and is the only target that
> isn't compiling.
> It ends with this error which seems like something is off in a way that
> should impact
> all targets but doesn't. Any ideas?
>
> FWIW I am proceeding with the update. Since we don't actually have a
> Microblaze
> port yet, this is far from a blocker.
>
> =============================
> $ make >/dev/null
> ../../../../../../../gcc-7.5.0/newlib/libc/sys/rtems/crt0.c:197:18: error:
> conflicting types for '__assert_func'
> RTEMS_STUB(void, __assert_func(const char *file, int line, const char
> *failedexpr), { })
> ^
> ../../../../../../../gcc-7.5.0/newlib/libc/sys/rtems/crt0.c:28:5: note: in
> definition of macro 'RTEMS_STUB'
> ret func body
> ^~~~
> In file included from
> /data/home/joel/rtems-work/rtems-source-builder/rtems/build/microblaze-rtems5-gcc-7.5.0-newlib-fbaa096-x86_64-linux-gnu-1/gcc-7.5.0/newlib/libc/include/sys/reent.h:503:0,
> from
> /data/home/joel/rtems-work/rtems-source-builder/rtems/build/microblaze-rtems5-gcc-7.5.0-newlib-fbaa096-x86_64-linux-gnu-1/gcc-7.5.0/newlib/libc/include/time.h:12,
> from
> /data/home/joel/rtems-work/rtems-source-builder/rtems/build/microblaze-rtems5-gcc-7.5.0-newlib-fbaa096-x86_64-linux-gnu-1/gcc-7.5.0/newlib/libc/include/sys/stat.h:9,
> from
> ../../../../../../../gcc-7.5.0/newlib/libc/sys/rtems/crt0.c:14:
> /data/home/joel/rtems-work/rtems-source-builder/rtems/build/microblaze-rtems5-gcc-7.5.0-newlib-fbaa096-x86_64-linux-gnu-1/gcc-7.5.0/newlib/libc/include/assert.h:41:6:
> note: previous declaration of '__assert_func' was here
> void __assert_func (const char *, int, const char *, const char *)
> ^~~~~~~~~~~~~
> make[9]: *** [crt0.o] Error 1
> cp: cannot stat ‘rtems/crt0.o’: No such file or directory
> make[9]: *** [crt0.o] Error 1
> ===============================================
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200229/8c42fc1b/attachment.html>
More information about the devel
mailing list