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

fatal error: setjmp.h: No such file or directory #31203

Closed
Quincy-Zh opened this issue Jan 9, 2021 · 2 comments
Closed

fatal error: setjmp.h: No such file or directory #31203

Quincy-Zh opened this issue Jan 9, 2021 · 2 comments
Assignees
Labels
area: C Library C Standard Library bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@Quincy-Zh
Copy link

I'm trying to compile Lua with Zephyr, but an error has occurred, some *.h can not find. setjmp.h, locale.h for now.

I checked toolchain gcc-arm-none-eabi-8-2019-q3-update-win32 and gcc-arm-none-eabi-10-2020-q4-major-win32, the problem is still.

I create an project without zephyr, the problem not happend.

Maybe some compiler options missing in zephyr project...

@Quincy-Zh Quincy-Zh added the bug The issue is a bug, or the PR is fixing a bug label Jan 9, 2021
@pabigot
Copy link
Collaborator

pabigot commented Jan 11, 2021

You're probably using Zephyr's internal minimal libc, which doesn't have that header. Try setting CONFIG_NEWLIB_LIBC=y.

@pabigot pabigot self-assigned this Jan 11, 2021
@nashif nashif added priority: low Low impact/importance bug area: C Library C Standard Library labels Jan 12, 2021
@Quincy-Zh
Copy link
Author

CONFIG_NEWLIB_LIBC=y works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: C Library C Standard Library bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

3 participants