Just a thought here, but could this be related to this post? I wasn't able to build with sprintf()
unless I added --specs=nosys.specs
in the recipe for /pdex.elf, line 145 of C_API/buildsupport/common.mk. It's conceivable that the same issue is happening here.