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
Build failure: phpExtensions.opentelemetry 1.0.2 on MacOS Sonoma #304809
Comments
Sadly I don't have a Mac to debug and fix this, sorry :(. However, I'm gladly accepting sponsors so I can buy one, I'm lurking on the new Mac Mini M4 arriving at the end of this year. |
Thanks I often run into compilation errors like these on macos due to stricter clang errors, is there any well-known workaround for this kind of thing? |
So I can get it to compile by disabling the opentelemetry.overrideAttrs (attrs: {
NIX_CFLAGS_COMPILE = (attrs.NIX_CFLAGS_COMPILE or "") + " -Wno-parentheses-equality";
}) I assume that at some point the upstream package may fix the code that causes the error. What should nixpkgs do in the meantime? Add the workaround? Mark it as broken? |
That's great! I will provide the fix before lunch then. I'll ping you when it's done. |
This should fix NixOS#304809 Issue introduced in NixOS@a399db4
@drupol I believe this issue should be reported on the original repository. Maybe we should also make sure the compilation is done with gcc instead of clang, as I don't see any reference to clang in the original repository. |
@drupol An issue has been created about this: open-telemetry/opentelemetry-php#1283 |
Thank you @gaelreyrol ! |
Hello from upstream. I'm one of the maintainers of the opentelemetry PHP extension. I'm happy to fix that error and get a new beta out, but I'd also like to update our CI/checks to pick future issues up. We test against aline:3.16 and debian:bookworm using the compiler that's provided by their respective package managers. I can't find any way to trigger the parentheses warning mentioned here, does anybody know how to dial up the strictness to be closer/equivalent to what macos has? |
Hi @brettmc! I was wondering if it was not coming from clang which is the default CC compiler on MacOS. Have you tried with it instead of gcc? |
Just my 2 cents: |
Thanks for the info, I've since added macos to our builds, and it successfully revealed the issue reported here. There should be a new version in the coming days, and hopefully this will be the last macos incompatibility that makes it out into the wild. |
I've just now published opentelemetry 1.0.3beta1 to pecl. Could somebody verify that it works on macos, please? |
@brettmc I can check in a couple days, when I get back to my work computer |
@brettmc Works for me (using nixpkgs obv :) With the new version it builds without needing to disable the compiler flag 👍 |
Just released: https://pecl.php.net/package/opentelemetry/1.0.3 |
Steps To Reproduce
Steps to reproduce the behavior:
Build log
Additional context
This occurred after this PR was merged: #303437
Notify maintainers
@drupol
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: