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

Commit 012c9a28470 is causing error: unknown type name 'wint_t' #73616

Open
williamtcdns opened this issue Jun 2, 2024 · 9 comments
Open

Commit 012c9a28470 is causing error: unknown type name 'wint_t' #73616

williamtcdns opened this issue Jun 2, 2024 · 9 comments
Assignees
Labels
area: picolibc Picolibc C Standard Library area: Xtensa Xtensa Architecture bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug Waiting for response Waiting for author's response

Comments

@williamtcdns
Copy link

Following commit is causing zephyr/build/modules/picolibc/picolibc/include/sys/_types.h:218:5: error: unknown type name 'wint_t':
012c9a2 libc/picolibc: Support Picolibc for toolchains without bundled Picolibc

We are seeing the error when building xtensa target using following command:
west build -b xt-sim samples/hello_world

@williamtcdns williamtcdns added the bug The issue is a bug, or the PR is fixing a bug label Jun 2, 2024
Copy link

github-actions bot commented Jun 2, 2024

Hi @williamtcdns! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙

@henrikbrixandersen henrikbrixandersen added area: Xtensa Xtensa Architecture area: picolibc Picolibc C Standard Library labels Jun 2, 2024
@nashif
Copy link
Member

nashif commented Jun 3, 2024

@williamtcdns trying the above west command, the sample builds fine for me, can you share more information about your environment?

@nashif nashif added the priority: low Low impact/importance bug label Jun 3, 2024
@nashif
Copy link
Member

nashif commented Jun 3, 2024

are you build with gcc or the xtensa toolchain?

@williamtcdns
Copy link
Author

We use patches that allows us to build with recent xtensa toolchain which uses clang.

@dcpleung
Copy link
Member

dcpleung commented Jun 3, 2024

Does your toolchain built with wide character support?

@dcpleung
Copy link
Member

dcpleung commented Jun 3, 2024

Note that I have built with xt-clang (RI-2022.10) where picolibc was built from source, and there was no errors related to wint_t.

@williamtcdns
Copy link
Author

williamtcdns commented Jun 3, 2024

Does your toolchain built with wide character support?

How can I tell whether toolchain was built with wide character support ?

I am using RJ-2024.3

@dcpleung
Copy link
Member

dcpleung commented Jun 4, 2024

I am not sure. You will need to look at the configurations that are used to build that toolchain.

@dcpleung dcpleung added the Waiting for response Waiting for author's response label Jun 13, 2024
@SzymonRichert
Copy link
Collaborator

@williamtcdns any update?

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

No branches or pull requests

5 participants