newlib and sscanf


Andrew Holt
 

I have a program that uses sscanf (amongst others) and I'm trying to build it for Zephyr.

I have added :

CONFIG_NEWLIB_LIBC=y

to the project config.  When I build it I get

In file included from ../include/zephyr/types.h:10:0,
                 from ../include/kernel_includes.h:17,
                 from ../include/kernel.h:17,
                 from ../kernel/include/kernel_structs.h:10,
                 from /home/andrewh/Source/zephyrproject/zephyr/arch/x86/core/offsets/offsets.c:29:
../lib/libc/newlib/include/stdint.h:15:10: fatal error: newlib.h: No such file or directory
 #include <newlib.h>
          ^~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.

I have search for the header file but can't find it.

What do I need to do ?

Regards,
Andrew

Join devel@lists.zephyrproject.org to automatically receive all group messages.