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

Fails to compile with clang, but succeeds with gcc #59

Open
gregtatum opened this issue Mar 14, 2024 · 0 comments
Open

Fails to compile with clang, but succeeds with gcc #59

gregtatum opened this issue Mar 14, 2024 · 0 comments

Comments

@gregtatum
Copy link

When using clang to compile, I'm getting -Wc++11-narrowing errors which are blocking compilation. I was able to remove clang from my path, and force the build to using gcc, which then succeeded. This is a workaround if anyone else needs it.

      /private/var/folders/y7/0gx4dtxs223gpzqt_6rqjrmm0000gp/T/pip-install-8cxaw5wp/pycld2_8ff418c9577344cebc10f9fd1a688b05/cld2/internal/cld_generated_cjk_uni_prop_80.cc:168:1: error: constant expression evaluates to -14 which cannot be narrowed to type 'uint8' (aka 'unsigned char') [-Wc++11-narrowing]
        168 | -14,-14,-14,-14,-14,-14,-14,-14, -14,-14,-14,-14,-14,-14,-14,-14,
            | ^~~

I think the fix would be to pass in -Wc++11-narrowing as an option to the clang build command to disable this narrowing check. Although I'm unsure if there are other breaking warnings beyond that.

I am using an arm macOS for the record.

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

1 participant