!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

579 Members
129 Servers

Load older messages


SenderMessageTime
18 Sep 2021
@sternenseemann:systemli.orgsterniI guess GNU binutils on aarch64-darwin are a problem, but honestly, I couldn't care less12:09:20
@sternenseemann:systemli.orgsterni * I guess GNU binutils on aarch64-darwin are a problem (since strip needs to sign apparently?), but honestly, I couldn't care less12:09:33
@qyliss:fairydust.spaceAlyssa Rossyeah let somebody else worry about that12:10:36
@mic92:nixos.devMic92What does homebrew uses for linking?16:06:01
@sternenseemann:systemli.orgsternipkgsLLVM.libgcc now somehow ends up with llvm-bintools somewhere lol23:46:11
@sternenseemann:systemli.orgsterniokay, that's not accurate, rather building the gcc cross toolchain for that fails because we have llvm-bintools somewhere in there23:47:37
@sternenseemann:systemli.orgsterni

ugh:

    [
      "--with-as=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-as"
      "--with-ld=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-ld"
    ]
23:53:39
@sternenseemann:systemli.orgsternithis is in the gcc configure flag thing23:54:19
@sternenseemann:systemli.orgsterni John Ericson: can we get rid of that (🔼) somehow? It's kind of terrible that gcc(-unwrapped) inspects targetPackages.stdenv and thus bypasses the wrapper later completely 23:55:41
@sternenseemann:systemli.orgsterni Specifically this breaks pkgsLLVM.gccStdenv atm since it'll be configured to use the llvm-as which doesn't understand some flags gcc's configure script will inevitably pass to it 23:56:24
@sternenseemann:systemli.orgsternihm the gcc derivation seems to assume that the next stage also uses gcc as its default compiler in general23:58:05
19 Sep 2021
@Ericson2314:matrix.orgJohn Ericson sterni can't talk much now, but you could take the gccNG patch I made that causes it to look up prefixed binaries in -B directories. Then we can get rid of those two --with flags altogether I believe. 00:35:52
@sternenseemann:systemli.orgsterniinteresting, I also wonder why it started to become a problem just now, since that used to work18:51:54
@sternenseemann:systemli.orgsternie. g. pkgsLLVM.libgcc etc. was possible to compile iirc18:52:09
20 Sep 2021
@qyliss:fairydust.spaceAlyssa RossHas anybody ever come across a better solution than this when dealing with the combination of pkgsStatic, C++, and libtool? https://github.com/NixOS/nixpkgs/pull/103270/files15:41:11
@qyliss:fairydust.spaceAlyssa Rosscc sternenseemann Ericson231415:41:15
@Ericson2314:matrix.orgJohn EricsonI do not know15:45:46
@Ericson2314:matrix.orgJohn Ericsonmaybe after gccNg I will know more about these things :/15:45:59
@qyliss:fairydust.spaceAlyssa RossI've hit this sort of issue twice today15:46:24
@qyliss:fairydust.spaceAlyssa Rossthe first package also offered a CMake build so I just switched it to CMake15:46:33
@Ericson2314:matrix.orgJohn Ericsoni have no yet had to learn just how libtool is so crazy yet15:48:08
@Ericson2314:matrix.orgJohn Ericson * i have no yet had to learn just how libtool is so crazy15:48:13
@qyliss:fairydust.spaceAlyssa Rosstbh I think this might be a problem we introduce in our own libtool modifications15:51:46
@qyliss:fairydust.spaceAlyssa RossHmm, I was sure we modified libtool to make it use absolute paths, but I can't find it now15:55:02
@qyliss:fairydust.spaceAlyssa Rossoh no I'm thinking of gobject-introspection15:55:22
@Ericson2314:matrix.orgJohn Ericsonthe other fun one :)15:58:34
@rick:matrix.ciphernetics.nlRick (Mindavi)Still waiting on upstream to review the patches...16:01:24
@qyliss:fairydust.spaceAlyssa Rosslibtool is my second least favourite thing to debug after cmake16:44:19
@qyliss:fairydust.spaceAlyssa Rossif a cmake-based package doesn't cross-compile i usually just give up 16:44:47
@rick:matrix.ciphernetics.nlRick (Mindavi)CMake doesn't really have a concept for mixed arch compilation16:52:30

Show newer messages


Back to Room ListRoom Version: 6