dkulacz / gcc-v850-elf-toolchain

GCC-based toolchain for RH850
12 stars 8 forks source link

202106_bump #23

Closed dkulacz closed 3 years ago

lukasz-mitka commented 3 years ago

Great job figuring out gcc-10 issue!

lukasz-mitka commented 3 years ago

go bigger: https://gcc.gnu.org/gcc-11/

dkulacz commented 3 years ago

Root cause was gcc-10 has -fno-common enabled by default causing problems with newlib built-in syscalls (multiple definitions of errno when linking etc). Building newlib with -fcommon seems to mitigate this. Alternative to using -fcommon is building newlib without built-in syscalls and providing own implementation of i.e. _sbrk for malloc() etc.

dkulacz commented 3 years ago

go bigger: https://gcc.gnu.org/gcc-11/

challenge accepted ;)