!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

398 Members
92 Servers

Load older messages


SenderMessageTime
6 Oct 2024
@suskeyhose:matrix.orgsrasuthanks117:31:18
@suskeyhose:matrix.orgsrasu * thanks!17:31:20
@artturin:matrix.orgArtturin buildPackages.clang is completely wrong in buildInputs 17:31:40
@artturin:matrix.orgArtturinremove it17:31:46
@suskeyhose:matrix.orgsrasu now to try and figure out the windows, where I get pkgs = pkgs.pkgsCross.etc resulting in infinite recursion 17:32:12
@artturin:matrix.orgArtturin pkgs' = pkgs... 17:34:41
@artturin:matrix.orgArtturin or mingwPkgs or whatever you want the name to be 17:34:59
@suskeyhose:matrix.orgsrasuaiight17:35:01
@suskeyhose:matrix.orgsrasuOk, I tried that, but when I try to nix develop with that nixshell, I just get the allowUnsupportedSystem config being necessary, and when I set that I get build failures for expand-response-params-x86_64-w64-mingw3217:37:29
@artturin:matrix.orgArtturinI fixed that failure on unstable https://github.com/NixOS/nixpkgs/pull/341299 But getting that failure indicates that you're getting something from the wrong set17:39:02
@artturin:matrix.orgArtturinPush the change 17:39:21
@artturin:matrix.orgArtturin * I fixed that failure on unstable https://github.com/NixOS/nixpkgs/pull/341299 But getting that failure(or it in the dependency tree now) indicates that you're getting something from the wrong set17:41:33
@suskeyhose:matrix.orgsrasusure, just a sec. I can also swap my nixpkgs to unstable and update my local flake.lock17:44:50
@suskeyhose:matrix.orgsrasupushed17:50:08
@suskeyhose:matrix.orgsrasuit's going through with the rebuild on the new nixpkgs, we'll see what I get17:52:12
@suskeyhose:matrix.orgsrasu
warning: Git tree '/home/srasu/Programming/Projects/C/template' is dirty
error: builder for '/nix/store/jcjkcm41naiarmsfyn861mfr51lxmi3g-isl-x86_64-w64-mingw32-0.20.drv' failed with exit code 2;
       last 10 log lines:
       >   CC       schedule_cmp.o
       > x86_64-w64-mingw32-gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
       > x86_64-w64-mingw32-gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
       >   CCLD     libisl.la
       > libtool:   error: can't build x86_64-w64-mingw32 shared library unless -no-undefined is specified
       > make[2]: *** [Makefile:1332: libisl.la] Error 1
       > make[2]: Leaving directory '/build/isl-0.20'
       > make[1]: *** [Makefile:1622: all-recursive] Error 1
       > make[1]: Leaving directory '/build/isl-0.20'
       > make: *** [Makefile:1219: all] Error 2
       For full logs, run 'nix log /nix/store/jcjkcm41naiarmsfyn861mfr51lxmi3g-isl-x86_64-w64-mingw32-0.20.drv'.
error: 1 dependencies of derivation '/nix/store/whlcf7hxizd00s7vm2h2q2v4xifyha31-gcc-x86_64-w64-mingw32-13.3.0.drv' failed to build
error (ignored): error: cannot unlink '/tmp/nix-build-llvm-x86_64-w64-mingw32-18.1.8.drv-1/build/llvm-src-18.1.8/llvm': Directory not empty
error (ignored): error: cannot unlink '/tmp/nix-build-gettext-x86_64-w64-mingw32-0.21.1.drv-1/build': Directory not empty
error (ignored): error: cannot unlink '/tmp/nix-build-bash-x86_64-w64-mingw32-5.2p32.drv-1/build/bash-5.2': Directory not empty
error: 1 dependencies of derivation '/nix/store/q50ywzxdgcal3clvrag7hbpv48nyqm3q-clang-wrapper-18.1.8.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ammihz31s4kc7f7f5g3iqlgy1483pv2j-blocksruntime-x86_64-w64-mingw32-unstable-2014-06-24.drv' failed to build
error: 1 dependencies of derivation '/nix/store/q91mmig120v9jgjlj2cfq74bwg01zjni-nix-shell-x86_64-w64-mingw32-env.drv' failed to build
17:52:47
@artturin:matrix.orgArtturin libblocksruntime is wrong lol 17:53:48
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/blob/9ceb0b0d72f9e8c7e0c78660a697b28ba1409a78/pkgs/development/libraries/libblocksruntime/default.nix#L1417:53:48
@artturin:matrix.orgArtturinIt was added in 2017 when people weren't as cross aware17:54:04
@suskeyhose:matrix.orgsrasuah, that seems very fixable17:54:07
@artturin:matrix.orgArtturinI'll pr, you can overrideAttrs17:54:19
@suskeyhose:matrix.orgsrasuYeah, I already am to get the new version17:54:36
@artturin:matrix.orgArtturinthe package has lots of bad practices like overriding phases without runHook pre and post17:54:52
@suskeyhose:matrix.orgsrasuyeah I noticed that too17:55:12
@artturin:matrix.orgArtturin Just buildInputs = [ ] configurePhase = "" 17:58:46
@artturin:matrix.orgArtturinIt doesn't seem to even need clang17:58:50
@artturin:matrix.orgArtturinDiffoscope shows that hte output doesn't change17:58:58
@artturin:matrix.orgArtturin * Diffoscope shows that the output doesn't change17:59:01
@suskeyhose:matrix.orgsrasuOk, I was able to get the windows shell environment to work18:01:11
@suskeyhose:matrix.orgsrasunow to see if it'll build18:01:27

Show newer messages


Back to Room ListRoom Version: 6