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

std::basic_string<uint8_t> is broken for LLVM-19 #1129

Open
DebuggingLife46 opened this issue Apr 16, 2024 · 7 comments
Open

std::basic_string<uint8_t> is broken for LLVM-19 #1129

DebuggingLife46 opened this issue Apr 16, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@DebuggingLife46
Copy link

Describe the bug
The uint8_t type is typedef'ed as unsigned char in glibc. However the support for unsigned char type has been removed from std::char_traits in libc++ according to https://reviews.llvm.org/D138307. This gives an "implicit instantiation of undefined template std::char_traits<unsigned char>" error, during build.

To Reproduce
Steps to reproduce the behavior:

  1. Compile D++ using the latest libc++.

System Details:

  • OS: Linux

Additional context
I would like to know what could be the proposed fix for this? I wouldn't mind sending the PR.

@DebuggingLife46 DebuggingLife46 added the bug Something isn't working label Apr 16, 2024
@braindigitalis
Copy link
Contributor

what thing in dpp actually causes the warning, under what compiler and version?

@DebuggingLife46
Copy link
Author

It's on this line

std::basic_string<uint8_t> audio_data = {};
. The compiler is Clang 19.

@braindigitalis
Copy link
Contributor

I'm not sure this needs to be a string, perhaps a vector would suffice? it is important for it to be unsigned 8 bit wide elements though.

@DebuggingLife46
Copy link
Author

Yeah, I agree.

@Jaskowicz1
Copy link
Contributor

Any news on this?

@Mishura4
Copy link
Member

Idk we just need to have someone pick this up

@Mishura4
Copy link
Member

I can look into this next week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants