microblaze build failure

Joel Sherrill joel at rtems.org
Fri Mar 13 13:53:09 UTC 2020


Hi

Based on conversations with Chris, I don't think this is the same as his
failure mode (on FreeBSD?) and this isn't a critical target but I am
perplexed at this failure in common code. crt0.c should just compile. This
is with everything off the master but I get the same failure on CentOS 7
with the RSB. Any ideas?

home/joel/test-gcc/b-microblaze-rtems5-gcc/./gcc/xgcc
-B/home/joel/test-gcc/b-microblaze-rtems5-gcc/./gcc/ -nostdinc
-B/home/joel/test-gcc/b-microblaze-rtems5-gcc/microblaze-rtems5/bs/newlib/
-isystem
/home/joel/test-gcc/b-microblaze-rtems5-gcc/microblaze-rtems5/bs/newlib/targ-include
-isystem /home/joel/test-gcc/gcc/newlib/libc/include
-B/home/joel/test-gcc/install-master/microblaze-rtems5/bin/
-B/home/joel/test-gcc/install-master/microblaze-rtems5/lib/ -isystem
/home/joel/test-gcc/install-master/microblaze-rtems5/include -isystem
/home/joel/test-gcc/install-master/microblaze-rtems5/sys-include
 -mxl-barrel-shift -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\"
-DPACKAGE_VERSION=\"3.3.0\" -DPACKAGE_STRING=\"newlib\ 3.3.0\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I.
-I../../../../../../../gcc/newlib/libc/sys/rtems -fno-builtin
-ffunction-sections -fdata-sections  -D_COMPILING_NEWLIB -DCLOCK_PROVIDED
-DMALLOC_PROVIDED -DEXIT_PROVIDED -DSIGNAL_PROVIDED -DGETREENT_PROVIDED
-DREENTRANT_SYSCALLS_PROVIDED -DHAVE_NANOSLEEP -DHAVE_BLKSIZE -DHAVE_FCNTL
-DHAVE_ASSERT_FUNC -D_NO_GETLOGIN -D_NO_GETPWENT -D_NO_GETUT -D_NO_GETPASS
-D_NO_SIGSET -D_NO_WORDEXP -D_NO_POPEN -D_NO_POSIX_SPAWN -DHAVE_INIT_FINI
   -g -O2  -mxl-barrel-shift -c
../../../../../../../gcc/newlib/libc/sys/rtems/crt0.c
../../../../../../../gcc/newlib/libc/sys/rtems/crt0.c:197:18: error:
conflicting types for '__assert_func'
  197 | RTEMS_STUB(void, __assert_func(const char *file, int line, const
char *failedexpr), { })
      |                  ^~~~~~~~~~~~~
../../../../../../../gcc/newlib/libc/sys/rtems/crt0.c:28:5: note: in
definition of macro 'RTEMS_STUB'
   28 | ret func body
      |     ^~~~
In file included from
/home/joel/test-gcc/gcc/newlib/libc/include/sys/reent.h:503,
                 from /home/joel/test-gcc/gcc/newlib/libc/include/time.h:12,
                 from
/home/joel/test-gcc/gcc/newlib/libc/include/sys/stat.h:9,
                 from
../../../../../../../gcc/newlib/libc/sys/rtems/crt0.c:14:
/home/joel/test-gcc/gcc/newlib/libc/include/assert.h:41:6: note: previous
declaration of '__assert_func' was here
   41 | void __assert_func (const char *, int, const char *, const char *)
      |      ^~~~~~~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200313/0f380c83/attachment-0001.html>


More information about the devel mailing list