ARM-software / LLVM-embedded-toolchain-for-Arm

A project dedicated to building LLVM toolchain for 32-bit Arm embedded targets.
Apache License 2.0
377 stars 85 forks source link

Broken builds with latest revisions of picolibc #450

Closed Laur59 closed 2 weeks ago

Laur59 commented 2 weeks ago

Since some time my building of the toolchain ends in error in building picolibc libraries. To remove the errors, I edited two files.

newlib/libc/search/qsort.c

Remove the lines 167-169

# ifdef __GNUC__
__typeof(qsort_r) __bsd_qsort_r;
#endif

newlib/libc/string/xpg_strerror_r.c

Remove the lines 7-8

__typeof(strerror_r) __xpg_strerror_r;

With these modifications I can build again a toolchain. The toolchain has been used to build our embedded projects and no problems have been noticed. The binaries are running on the hardware board. However no exhaustive tests have been performed to check if the modified source of picolibc are breaking something in running firmware.

Laur59 commented 2 weeks ago

revision 348601d3 of picolibc resolves this issue