rtems6 tool build failures

Joel Sherrill joel at rtems.org
Tue Feb 18 14:12:21 UTC 2020


Hi

Just passing along a few tool build failures. Not sure why the Microblaze
was the only one with the __assert_func() and RISC-V had the C99 issue I
would have thought was common. Are these on unique git hashes?

Microblaze:

https://lists.rtems.org/pipermail/build/2020-February/010416.html

  ../../../../../../../gcc-1dae549/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-1dae549/newlib/libc/sys/rtems/crt0.c:28:5: note:
in definition of macro 'RTEMS_STUB' 28 | ret func body | ^~~~

RISC-V:

https://lists.rtems.org/pipermail/build/2020-February/010422.html

libtool: compile:  gcc -O2 -g -pipe
-I/home/joel/rtems-cron-6/rtems-source-builder/rtems/build/tmp/sb-1001/6/rtems-riscv/home/joel/rtems-cron-6/tools/6/include
-DHAVE_CONFIG_H -I.
-I../../sourceware-mirror-binutils-gdb-24872cb3021/bfd
-DBINDIR=\"/home/joel/rtems-cron-6/tools/6/bin\"
-DLIBDIR=\"/home/joel/rtems-cron-6/tools/6/lib\" -I.
-I../../sourceware-mirror-binutils-gdb-24872cb3021/bfd
-I../../sourceware-mirror-binutils-gdb-24872cb3021/bfd/../include
-DHAVE_riscv_elf32_vec -DHAVE_riscv_elf64_vec -DHAVE_elf64_le_vec
-DHAVE_elf64_be_vec -DHAVE_elf32_le_vec -DHAVE_elf32_be_vec -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wshadow
-I../../sourceware-mirror-binutils-gdb-24872cb3021/bfd/../zlib -g -O2
-MT elf.lo -MD -MP -MF .deps/elf.Tpo -c
../../sourceware-mirror-binutils-gdb-24872cb3021/bfd/elf.c -o elf.o
../../sourceware-mirror-binutils-gdb-24872cb3021/bfd/elfxx-riscv.c: In
function 'riscv_multi_letter_ext_valid_p':
../../sourceware-mirror-binutils-gdb-24872cb3021/bfd/elfxx-riscv.c:1404:3:
error: 'for' loop initial declarations are only allowed in C99 mode
   for (size_t i = 0; known_exts[i]; ++i)
   ^
../../sourceware-mirror-binutils-gdb-24872cb3021/bfd/elfxx-riscv.c:1404:3:
note: use option -std=c99 or -std=gnu99 to compile your code
../../sourceware-mirror-binutils-gdb-24872cb3021/bfd/elfxx-riscv.c: In
function 'riscv_parse_subset':
../../sourceware-mirror-binutils-gdb-24872cb3021/bfd/elfxx-riscv.c:1493:3:
error: 'for' loop initial declarations are only allowed in C99 mode
   for (size_t i = 0; i < ARRAY_SIZE (parse_config); ++i) {
   ^


--joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200218/4baa797c/attachment.html>


More information about the devel mailing list