On Thu, Mar 19, 2020 at 9:17 AM John Rippetoe
<jrippe...@roboticresearch.com> wrote:
> I am working on a new board port for the STM32H7 that's not yet in the
> repo. However, the same issue occurs when trying to build the existing
> H7 boards and with many of the F7 boards as well. All of the affected
> configs are flat builds, including my own.  The functions the compiler
> is complaining about are defined in up_mpu.c, which is only included for
> protected builds. So it makes sense you wouldn't see the issue when
> building in protected mode.
>
> To answer your other question: yes, I have done a clean build. I have
> also run a distclean and reconfigured, but the issue persists. The only
> way to get a build to complete is to comment out line 270 below from
> compiler.h
>
> /* GCC supports inlined functions for C++ and for C version C99 and above */
>
> 266   #  if defined(__cplusplus) || (defined(__STDC_VERSION__) &&
> __STDC_VERSION__ >= 199901L)
> 267   #    define CONFIG_HAVE_INLINE 1
> 268   #  else
> 269   #    undef CONFIG_HAVE_INLINE
> 270   #    define inline
> 271   #  endif

Which toolchain are you using?

Which version of that toolchain?

What's in your board's Make.defs?

Cheers,
Nathan

Reply via email to