-
Notifications
You must be signed in to change notification settings - Fork 128
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 build on arch linux #736
Comments
Same problem with GCC on openSUSE Tumbleweed. The problem seems to be that GCC (possibly unlike clang) is more fussy (or less intelligent) about reaching the end of a non-void function without a
I believe that cubeb's default build may be set up to treat such return-type warnings as errors. The problem can be worked around by adding |
This was fixed a while ago in https://github.com/mozilla/cubeb/pull/571/files#diff-c83414b24af193c5d964ce25a94a079c72000e2b868d56d219a676b2ff28f809. The problem in the original post is different, it's a linker issue in a test. Let me know if it still happens, we mostly use clang these days so an issue with gcc is plausible. |
That fix is functionally equivalent to the workaround I propose, and has the advantage of being portable across compilers. I'm able to compile with it. Thanks! |
https://en.cppreference.com/w/cpp/utility/unreachable will be available in C++23, but Firefox (and therefore cubeb) is for now a C++17 project. It's not too hard with a little macro work to do a portable version, but what we have work for our purpose indeed. |
title, laltest commit e4da2d4 fails to build on arch linux even in a clean chroot. gist the terminal log: https://gist.github.com/wantija/8a91a1fec19781d18dbf01922bc83c4b
The text was updated successfully, but these errors were encountered: