!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

579 Members
129 Servers

Load older messages


SenderMessageTime
20 Sep 2021
@qyliss:fairydust.spaceAlyssa Rossso it runs x86_64-unknown-linux-musl-g++ -shared -v, sees the -L for that directory, and then will always check there for libstdc++.so before even considering whether there's a static version23:56:52
21 Sep 2021
@qyliss:fairydust.spaceAlyssa Ross where is libstdc++.a, come to think of it? 00:39:02
@qyliss:fairydust.spaceAlyssa Rosslooks like the static libraries end up in gcc's $out, but the dynamic libraries end up in $lib01:00:13
@qyliss:fairydust.spaceAlyssa Rossis... is that intentional?01:00:21
@qyliss:fairydust.spaceAlyssa RossI suppose since the static libraries aren't required at runtime?01:16:44
@siraben:matrix.orgsiraben sterni: thanks, looks better now 02:06:44
@siraben:matrix.orgsiraben
{ nixpkgs ? fetchTarball "https://github.com/NixOS/nixpkgs/archive/e0ce3c683ae677cf5aab597d645520cddd13392b.tar.gz"
, pkgs ? (import nixpkgs {}).pkgsCross.arm-embedded
}:

pkgs.callPackage ({ mkShell, pkgsBuildBuild }: mkShell {
  packages = [ pkgsBuildBuild.gcc ];
}) {}
02:06:47
@sternenseemann:systemli.orgsterni Alyssa Ross: looks like another reason for gcc-ng then 09:43:06
@qyliss:fairydust.spaceAlyssa RossI managed to get it to work by both 1) putting the static gcc libraries in the same output as the dynamic ones 2) setting LDFLAGS=-all-static in the program I'm trying to build09:45:02
@qyliss:fairydust.spaceAlyssa Rossbut I'm confused that there seems to be no way to get autotools to pass -all-static without me just setting LDFLAGS 09:46:39
@qyliss:fairydust.spaceAlyssa Ross because afaict libtool will only look for static libraries if it gets -static or -all-static. 09:47:19
@qyliss:fairydust.spaceAlyssa RossI wonder if the wrapper should set -all-static when stdenv.hostPlatform.isStatic...10:17:30
@qyliss:fairydust.spaceAlyssa Rossalthough actually that wouldn't help here, because the argument needs to get to libtool10:17:59
@qyliss:fairydust.spaceAlyssa RossI suppose I should just write up an issue with what I've discovered so far10:18:27
22 Sep 2021
@colemickens:matrix.orgcolemickens 🏳️‍🌈does someone have a "working cross-compiling" rev of armv6l?02:40:11
@colemickens:matrix.orgcolemickens 🏳️‍🌈It sorta maybe seems like gobject-introspection cross compilation is broken, maybe due to an upgrade of meson ~recently in nixpkgs02:40:42
@sternenseemann:systemli.orgsterniafaik gobject-introspection cross compilation never works09:17:56
@sternenseemann:systemli.orgsterni * afaik gobject-introspection cross compilation never worked09:18:00
@sternenseemann:systemli.orgsterniwe disabled gobject-introspection when cross-compiling usually09:18:14
@rick:matrix.ciphernetics.nlRick (Mindavi)
In reply to @sternenseemann:systemli.org
we disabled gobject-introspection when cross-compiling usually
Yes
09:30:31
@rick:matrix.ciphernetics.nlRick (Mindavi)It doesn't work, John is trying to get it to work but upstream is not a big fan of the patches09:30:52
@rick:matrix.ciphernetics.nlRick (Mindavi)See https://github.com/NixOS/nixpkgs/issues/72868 and https://github.com/NixOS/nixpkgs/pull/8822209:40:23
@colemickens:matrix.orgcolemickens 🏳️‍🌈I'd actually seen John's commits/prs in gobject-introspection. I'm trying to figure out if I did something unexpected or if I just lost track of what branch folks are cross-building from...20:20:11
@colemickens:matrix.orgcolemickens 🏳️‍🌈anyway, if someone has a nixpkgs-rev/config that works for x86->armv6l cross compiling, please let me know. <3 thanks21:39:08
@sternenseemann:systemli.orgsterniarmv6 is the non-raspberry pi armv6 one?23:37:59
23 Sep 2021
@mic92:nixos.devMic92
In reply to @qyliss:fairydust.space
I wonder if the wrapper should set -all-static when stdenv.hostPlatform.isStatic...
We also missed the opportunity to document that pkgsStatic exists. I recently had to explain it in discourse.
15:46:14
@mic92:nixos.devMic92I think we should be more picky with changes we merge w.r.t. documentation. Whenever there is a change in buildRustPackage or buildGoModule, I always insist on updating documentation.15:48:22
@sternenseemann:systemli.orgsternipkgsStatic is something entirely different15:50:19
@sternenseemann:systemli.orgsterniI think you have to trade off such features and experimentation against building up expectations about it15:51:00
@sternenseemann:systemli.orgsternisure, it should be documented in some capacity, agreed15:51:31

Show newer messages


Back to Room ListRoom Version: 6