-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
ccacheStdenv cannot find libcxx on Darwin #34817
Comments
Running this #!/usr/bin/env nix-shell --pure
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "darwin-stdenv-test";
shellHook = ''
cat << CODE > test.cc
#include <string>
CODE
echo NIX_CFLAGS_COMPILE: $NIX_CFLAGS_COMPILE
echo NIX_LDFLAGS: $NIX_LDFLAGS
echo NIX_CXXSTDLIB_COMPILE: $NIX_CXXSTDLIB_COMPILE
echo NIX_CXXSTDLIB_LINK: $NIX_CXXSTDLIB_LINK
$CXX -c test.cc
exit 0
'';
} returns
and running this #!/usr/bin/env nix-shell --pure
with import <nixpkgs> {};
let
myCcacheWrapper = ccacheWrapper.override {
extraConfig = ''
export CCACHE_COMPRESS=1
export CCACHE_DIR=/var/cache/ccache
export CCACHE_UMASK=007
'';
};
myStdenv = overrideCC stdenv myCcacheWrapper;
in
myStdenv.mkDerivation {
name = "darwin-ccacheStdenv-test";
shellHook = ''
cat << CODE > test.cc
#include <string>
CODE
echo NIX_CFLAGS_COMPILE: $NIX_CFLAGS_COMPILE
echo NIX_LDFLAGS: $NIX_LDFLAGS
echo NIX_CXXSTDLIB_COMPILE: $NIX_CXXSTDLIB_COMPILE
echo NIX_CXXSTDLIB_LINK: $NIX_CXXSTDLIB_LINK
$CXX -c test.cc
exit 0
'';
} returns
|
Yes, I think ccacheWrapper is broken right now... |
can you recreate this on ccache 3.6 ? |
|
This comment has been minimized.
This comment has been minimized.
Still important |
I marked this as stale due to inactivity. → More info |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/tensorflow-on-20-09-mac/11931/5 |
Issue description
The title says it all. I ran this on Darwin:
It succeeded. Then, I removed
libcxx
frombuildInputs
and ran it again. I sawTechnical details
"x86_64-darwin"
Darwin 17.5.0, macOS 10.13.4
no
no
nix-env (Nix) 2.0pre5889_c287d731
"darwin, nixpkgs-18.03pre127302.e860b651d6e"
/Users/mnacamura/Repos/nixpkgs
The text was updated successfully, but these errors were encountered: