Repository navigation
Conversation
|
I'm not sure I quite understand the problem or its proposed solution, but you'll need to apply the formatter at a minimum. |
|
Yea a reproduction build cmd that fails before and passes after would be helpful. |
ok i will try to explain with more details. so the kernel derivation just pulls in the compiler from stdenv, which is a wrapped compiler. with gcc, it works. but in general, since wrapper insert all kinds of flags thing can go wrong. and it does go wrong if you try to build kernel with clang. see: ClangBuiltLinux/linux#2041 ClangBuiltLinux/linux#1983 two main issues:
and also other minor issues, like the wrapper constantly complaining: so i did just that, use the unwrapped clang instead. since the unwrapped compiler cannot build normal programs - it cannot find standard headers or libraries, you need both wrapped and unwrapped clang to build the kernel. wrapped version for building tools that runs on the host during build, and unwrapped version for building the kernel. this is done by specifying and the kernel builds perfectly fine with this, but downstream packages don't. because they would pick up the wrong compiler from like the kernel, zfs has user space parts and kernel parts, and does accept different compiler for each. the problem is just the variable names are different. equivalent of |
|
Please provide reproduction steps. |
|
#435553 mapped the kernel flags but not sure if it works for clang. |
|
IMHO wie should still consider merging this variant, as its a more clean approach into solving the actual issue as its doing an educated mapping instead of just copying everything as |
|
What is HOSTCC used for when building ZFS? I cross compiled linuxPackages.zfs_unstable with HOSTC=false in makeFlags, and it worked, so to me it seems like it doesn't do anything for ZFS…
|
|
@alyssais sorry but that's not what i meant. maybe i wasn't clear. just like you need to set
|
Won't that be configured correctly by |
|
if you don't care if zfs tools are built with the same compiler as the kernel |
|
This should fix #473637 |
Fixes #408428
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.