Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snprintf.c:41:35: fatal error: c99-snprintf/snprintf.c: No such file or directory #3434

Closed
vidalouiswang opened this issue May 22, 2021 · 3 comments

Comments

@vidalouiswang
Copy link

vidalouiswang commented May 22, 2021

Expected behavior

Build successsfully.

Actual behavior

CC app/platform/sdcard.c
CC app/platform/ucg_nodemcu_hal.c
AR app/platform/
xtensa-lx106-elf-ar: creating .output/eagle/debug/lib/libplatform.a
make[2]: Leaving directory '/home/vidawang/nodemcu-firmware/app/platform'
make[2]: Entering directory '/home/vidawang/nodemcu-firmware/app/libc'
DEPEND: CC app/libc/math.c
DEPEND: CC app/libc/snprintf.c
snprintf.c:41:35: fatal error: c99-snprintf/snprintf.c: No such file or directory
#include "c99-snprintf/snprintf.c"
^
compilation terminated.
DEPEND: CC app/libc/stdlib.c
DEPEND: CC app/libc/snprintf.c
snprintf.c:41:35: fatal error: c99-snprintf/snprintf.c: No such file or directory
#include "c99-snprintf/snprintf.c"
^
compilation terminated.
CC app/libc/stdlib.c
CC app/libc/snprintf.c
snprintf.c:41:35: fatal error: c99-snprintf/snprintf.c: No such file or directory
#include "c99-snprintf/snprintf.c"
^
compilation terminated.
../../Makefile:422: recipe for target '.output/eagle/debug/obj/snprintf.o' failed
make[2]: *** [.output/eagle/debug/obj/snprintf.o] Error 1
make[2]: Leaving directory '/home/vidawang/nodemcu-firmware/app/libc'
../Makefile:380: recipe for target '.subdirs' failed
make[1]: *** [.subdirs] Error 2
make[1]: Leaving directory '/home/vidawang/nodemcu-firmware/app'
Makefile:380: recipe for target '.subdirs' failed
make: *** [.subdirs] Error 2
make: Leaving directory '/home/vidawang/nodemcu-firmware'

Test code

Provide a Minimal, Complete, and Verifiable example which will reproduce the problem.

make LUA=53

NodeMCU startup banner

Cloned from the branch release yesterday.

Hardware

Ubuntu 18.04

@vidalouiswang
Copy link
Author

And then I add include to the file nodemcu-firmware/app/libc/snprintf.c like this:
屏幕截图 2021-05-22 235336
It doesn't work.

@pjsg
Copy link
Member

pjsg commented May 22, 2021 via email

@vidalouiswang
Copy link
Author

vidalouiswang commented May 22, 2021

did you do a git submodule update?

On Sat, May 22, 2021, 11:55 vidalouiswang @.***> wrote: And then I add include to the file nodemcu-firmware/app/libc/snprintf.c like this: [image: 屏幕截图 2021-05-22 235336] https://user-images.githubusercontent.com/26226049/119232795-109adc80-bb59-11eb-8e50-c648ca9cb979.png It doesn't work. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#3434 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALQLTOYSV7SY5GBARTOPCLTO7HVZANCNFSM45KYLGXA .

Thank you, I used "git clone --recurse-submodules -b release https://github.com/nodemcu/nodemcu-firmwa
re.git" and it worked. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants