Unable to link C++ application with libstdc++ when newlib is used (gcc 13 and perhaps also 12)

Torbjorn SVENSSON torbjorn.svensson@foss.st.com
Mon Sep 19 16:07:24 GMT 2022


On 2022-09-19 17:28, Sebastian Huber wrote:
> On 17/09/2022 19:45, Torbjorn SVENSSON wrote:
>> I suppose the origin of the problem is the definition of the 
>> getentropy function in the newlib provided unistd.h, but what is the 
>> appropriate fix for it?
>> - Create a stub function that just returns -1 and sets errno=ENOSYS?
> 
> This should be fine.
> 

What library should contain this? libnosys.a?


More information about the Newlib mailing list