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

gperftools: drop an option that seems no longer supported #109996

Merged
merged 2 commits into from Jan 19, 2021

Conversation

vcunat
Copy link
Member

@vcunat vcunat commented Jan 19, 2021

warning: unknown warning option '-Wno-aligned-allocation-unavailable';
did you mean '-Wno-debug-compression-unavailable'? [-Wunknown-warning-option]


Only darwin gets rebuilt, but it needs to be tested.

> warning: unknown warning option '-Wno-aligned-allocation-unavailable';
>   did you mean '-Wno-debug-compression-unavailable'? [-Wunknown-warning-option]
@vcunat
Copy link
Member Author

vcunat commented Jan 19, 2021

It's de-facto revert of 6a560f4

@vcunat vcunat linked an issue Jan 19, 2021 that may be closed by this pull request
@vcunat vcunat added 6.topic: darwin Running or building packages on Darwin 9.needs: community feedback labels Jan 19, 2021
@vcunat
Copy link
Member Author

vcunat commented Jan 19, 2021

We were getting the warning even previously, but before it wasn't leading to this fatal problem. Most likely that was triggered by the autoconf update – default, we still keep 269 and could switch to it selectively.

@@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
'';

NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin

stdenv.lib is deprecated.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I'd fix all the places in this file at once. Can you link the deprecation?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

c06b2b3

You could have searched that yourself.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :-)

@prusnak
Copy link
Member

prusnak commented Jan 19, 2021

I confirm that removing -Wno-aligned-allocation-unavailable from NIX_CFLAGS_COMPILE fixes the build of gperftools on Darwin.

@vcunat vcunat merged commit 86f83d5 into NixOS:master Jan 19, 2021
@vcunat vcunat deleted the p/gperftools-darwin branch January 19, 2021 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gperftools: can't be installed in mac OS (blocking mongodb)
3 participants