| 20 Sep 2021 |
Alyssa Ross | so 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 version | 23:56:52 |
| 21 Sep 2021 |
Alyssa Ross | where is libstdc++.a, come to think of it? | 00:39:02 |
Alyssa Ross | looks like the static libraries end up in gcc's $out, but the dynamic libraries end up in $lib | 01:00:13 |
Alyssa Ross | is... is that intentional? | 01:00:21 |
Alyssa Ross | I suppose since the static libraries aren't required at runtime? | 01:16:44 |
siraben | sterni: thanks, looks better now | 02:06:44 |
siraben | { 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 |
sterni | Alyssa Ross: looks like another reason for gcc-ng then | 09:43:06 |
Alyssa Ross | I 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 build | 09:45:02 |
Alyssa Ross | but 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 |
Alyssa Ross | because afaict libtool will only look for static libraries if it gets -static or -all-static. | 09:47:19 |
Alyssa Ross | I wonder if the wrapper should set -all-static when stdenv.hostPlatform.isStatic... | 10:17:30 |
Alyssa Ross | although actually that wouldn't help here, because the argument needs to get to libtool | 10:17:59 |
Alyssa Ross | I suppose I should just write up an issue with what I've discovered so far | 10:18:27 |
| 22 Sep 2021 |
colemickens 🏳️🌈 | does someone have a "working cross-compiling" rev of armv6l? | 02:40:11 |
colemickens 🏳️🌈 | It sorta maybe seems like gobject-introspection cross compilation is broken, maybe due to an upgrade of meson ~recently in nixpkgs | 02:40:42 |
sterni | afaik gobject-introspection cross compilation never works | 09:17:56 |
sterni | * afaik gobject-introspection cross compilation never worked | 09:18:00 |
sterni | we disabled gobject-introspection when cross-compiling usually | 09:18:14 |
Rick (Mindavi) | In reply to @sternenseemann:systemli.org we disabled gobject-introspection when cross-compiling usually Yes | 09:30:31 |
Rick (Mindavi) | It doesn't work, John is trying to get it to work but upstream is not a big fan of the patches | 09:30:52 |
Rick (Mindavi) | See https://github.com/NixOS/nixpkgs/issues/72868 and https://github.com/NixOS/nixpkgs/pull/88222 | 09:40:23 |
colemickens 🏳️🌈 | 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 🏳️🌈 | anyway, if someone has a nixpkgs-rev/config that works for x86->armv6l cross compiling, please let me know. <3 thanks | 21:39:08 |
sterni | armv6 is the non-raspberry pi armv6 one? | 23:37:59 |
| 23 Sep 2021 |
Mic92 | 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 | I 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 |
sterni | pkgsStatic is something entirely different | 15:50:19 |
sterni | I think you have to trade off such features and experimentation against building up expectations about it | 15:51:00 |
sterni | sure, it should be documented in some capacity, agreed | 15:51:31 |