!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

556 Members
119 Servers

Load older messages


SenderMessageTime
1 Nov 2021
@qyliss:fairydust.spaceAlyssa Ross We've been stuck for years because we've been stuck on it on Darwin, and everything uses LLVM on Darwin. 09:19:43
@trofi:matrix.orgtrofiOh, that makes sense.. I was very confused to see that mesa uses llvmPackages_latest (from llvm-12) and libclc (from llvm-11, hardcodes source version in .nix file). And libclc is built against llvmPackages libraries (llvm-7).09:33:20
@trofi:matrix.orgtrofi * Oh, that makes sense. I was very confused to see that mesa uses llvmPackages_latest (from llvm-12) and libclc (from llvm-11, hardcodes source version in .nix file). And libclc is built against llvmPackages libraries (llvm-7).09:33:39
@qyliss:fairydust.spaceAlyssa Rossthe place to watch is https://github.com/NixOS/nixpkgs/pull/12641109:36:23
@domenkozar:matrix.orgDomen Kožarit's basically ready it's waiting on the next NixOS cycle (ironically, darwin is stuck due to linux, which is stuck due to darwin)18:27:11
@trofi:matrix.orgtrofiSorry, I don't know how nixpkgs manages toolchain lifecycle :) Does cycle here mean NixOS release? Or just a staging->master merge? 19:33:32
@sternenseemann:systemli.orgsterninixos release19:33:48
@sternenseemann:systemli.orgsternispecifically upgrading LLVM from 7 to 11 is not possible anymore due to the feature freeze disallowing breaking changes on staging-next19:34:16
@sternenseemann:systemli.orgsterniit would have been fine if the PR would have been ready earlier19:34:29
@trofi:matrix.orgtrofi Ah, it's a matter of pre-release freeze. Otherwise, would it be fine to change major compiler version say, every 2 months in staging? (Not that they release that frequently). 19:37:47
@qyliss:fairydust.spaceAlyssa Rossyes19:38:21
@qyliss:fairydust.spaceAlyssa RossRedacted or Malformed Event19:38:31
@qyliss:fairydust.spaceAlyssa Rossas long as packages keep building19:38:56
@trofi:matrix.orgtrofi nod. Thank you! 19:39:09
@sternenseemann:systemli.orgsterni shouldn't libexec be installed to $out/$bin? 19:45:33
@trofi:matrix.orgtrofi probably rather $out/$lib. otherwise installing such a package would get internal tools (or their dir) into PATH. postfix or git should be good examples. 19:51:04
@sternenseemann:systemli.orgsternilibexec is never in PATH?19:51:29
@trofi:matrix.orgtrofiI think it's never in PATH. https://www.gnu.org/prep/standards/html_node/Directory-Variables.html also says it's not for users.19:53:23
@AleXoundOS:matrix.org@AleXoundOS:matrix.org ldd gets removed when crosscompiling: https://github.com/NixOS/nixpkgs/blob/18b9519c0a887baa8648ce82c2f2c9d965be0690/pkgs/development/libraries/glibc/common.nix#L292
How can I get ldd then?
20:37:10
@AleXoundOS:matrix.org@AleXoundOS:matrix.org * ldd gets removed from glibc bin output when crosscompiling: https://github.com/NixOS/nixpkgs/blob/18b9519c0a887baa8648ce82c2f2c9d965be0690/pkgs/development/libraries/glibc/common.nix#L292
How can I get ldd then?
20:37:32
@sternenseemann:systemli.orgsternihmmmm https://github.com/NixOS/nixpkgs/blob/fd70eae72fddf2f7e1556c7705d3ad4bb97cb551/pkgs/development/tools/build-managers/cmake/setup-hook.sh#L9720:39:10
@sternenseemann:systemli.orgsterni John Ericson: for clang it would be a lot easier if CMAKE_LIBEXEC_DIR was in $out instead of $lib. A lot of tools depend on ../libexec/ccc-analyzer working and it would be annoying to add yet another patch for this 20:40:00
@sternenseemann:systemli.orgsterninot sure if we should change it globally or just overriding the value passed here somehow makes more sense20:40:17
@sternenseemann:systemli.orgsterni
In reply to @AleXoundOS:matrix.org
ldd gets removed from glibc bin output when crosscompiling: https://github.com/NixOS/nixpkgs/blob/18b9519c0a887baa8648ce82c2f2c9d965be0690/pkgs/development/libraries/glibc/common.nix#L292
How can I get ldd then?
what do you need ldd for?
20:40:35
@AleXoundOS:matrix.org@AleXoundOS:matrix.org
In reply to @sternenseemann:systemli.org
what do you need ldd for?
I need to get the list of all dynamic libraries linked (so that I keep only them on the target 16 MiB filesystem). But yeah, I know readelf can show dynamic libraries (but not recursively). I just thought I could quickly run ldd to observe the situation.
20:44:10
@sternenseemann:systemli.orgsterni you may want to use nix-store --query --references <store path> for this purpose which shows you which nix store paths are referenced by the build result 20:45:21
@sternenseemann:systemli.orgsternithis also accounts for data files and like hardcoded executable calls20:45:38
@sternenseemann:systemli.orgsternialso maybe nix-copy-closure is interesting for you for purpose of copying everything necessary from your build system to the host system20:46:04
@sternenseemann:systemli.orgsternihm seems like glibc does weird stuff with ldd i. e. the installed ldd always runs on the build platform?20:47:04
@sternenseemann:systemli.orgsterniat least that is what it seems like from the comment20:47:20

There are no newer messages yet.


Back to Room ListRoom Version: 6