Atmel start (ASF4) and gcc-arm-none-eabi 2020-q2-update

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

After updating to gcc-arm-none-eabi 2020-q2-update, I'm seeing the following compilation error.

 

It seems the assert in utils_assert.h is clashing with the one in assert.h.

 

In file included from ../lib/atmel_start/src/hpl/gmac/hpl_gmac.c:35:
../lib/atmel_start/src/hal/utils/include/utils_assert.h:88:73: error: macro "assert" passed 3 arguments, but takes just 1
   88 | void assert(const bool condition, const char *const file, const int line);
      |                                                                         ^
In file included from c:\progra~2\gnuarm~1\92020-~1\arm-none-eabi\include\sys\reent.h:503,
                 from c:\progra~2\gnuarm~1\92020-~1\arm-none-eabi\include\string.h:11,
                 from ../lib/atmel_start/src/hpl/gmac/hpl_gmac.c:34:
c:\progra~2\gnuarm~1\92020-~1\arm-none-eabi\include\assert.h:16: note: macro "assert" defined here
   16 | # define assert(__e) ((__e) ? (void)0 : __assert_func (__FILE__, __LINE__, \
      |

 

Last Edited: Fri. Jun 5, 2020 - 09:00 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I see the same error, it appears that the assert defined in utils_assert.h is colliding with the assert definition from GCC ARM.