!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

482 Members
101 Servers

Load older messages


SenderMessageTime
21 Apr 2025
@rosscomputerguy:matrix.orgTristan RossSo when make is calling make, the toplevel make is verbose00:25:09
@rosscomputerguy:matrix.orgTristan RossBut the child make isn't00:25:13
@dramforever:matrix.orgdramforeveri'm pretty sure that is not how makefile works00:25:25
@rosscomputerguy:matrix.orgTristan Ross

Well, one of the lines is literally this:

linux> make -C /build/linux-6.6.87/tools/lib/subcmd/ OUTPUT=/build/linux-6.6.87/build/tools/bpf/resolve_btfids/libsubcmd/ \
linux>             DESTDIR=/build/linux-6.6.87/build/tools/bpf/resolve_btfids/libsubcmd/ AR="/nix/store/0w9bd0ljiyj2crmywkm0mvm4nwsswgb0-binutils-wrapper-2.44/bin/ar" CC="/nix/store/rpxlridr3yn6mbmd34r0bya9qv91b79s-gcc-wrapper-14.2.1.20250322/bin/cc" LD="/nix/store/0w9bd0ljiyj2crmywkm0mvm4nwsswgb0-binutils-wrapper-2.44/bin/ld" ARCH="arm64" CROSS_COMPILE="" EXTRA_CFLAGS="" prefix= subdir= \
linux>             /build/linux-6.6.87/build/tools/bpf/resolve_btfids/libsubcmd/libsubcmd.a install_headers
00:26:03
@rosscomputerguy:matrix.orgTristan Ross And I don't see a V=1 00:26:16
@rosscomputerguy:matrix.orgTristan RossThe source is this: https://github.com/torvalds/linux/tree/v6.6/tools/bpf/resolve_btfids00:26:35
@dramforever:matrix.orgdramforever on one hand, V=1 is definitely passed down 00:26:58
@dramforever:matrix.orgdramforever the way it works in linux is in the top level Makefile it actually goes, if V set in command line, set KBUILD_VERBOSE to that 00:27:22
@rosscomputerguy:matrix.orgTristan RossHuh, even when it's building the host stuff?00:27:38
@dramforever:matrix.orgdramforever and then it sends these down in environment variablesexport quiet Q KBUILD_VERBOSE 00:27:43
@dramforever:matrix.orgdramforever * and then it sends these down in environment variables export quiet Q KBUILD_VERBOSE 00:27:46
@rosscomputerguy:matrix.orgTristan Rosshttps://github.com/torvalds/linux/blob/v6.6/tools/bpf/resolve_btfids/Makefile#L79-L8300:28:48
@rosscomputerguy:matrix.orgTristan Ross🤔00:28:50
@dramforever:matrix.orgdramforeveri am so confused00:30:44
@rosscomputerguy:matrix.orgTristan RossMe too00:31:20
@rosscomputerguy:matrix.orgTristan RossI rebased https://github.com/NixOS/nixpkgs/pull/390631 and got into this mess lol00:31:40
@rosscomputerguy:matrix.orgTristan Ross Just a simple nix build .#pkgsLLVM.linux 00:31:54
@dramforever:matrix.orgdramforeverjust patch the makefile00:32:09
@dramforever:matrix.orgdramforeverprint the heck out of everything00:32:24
@dramforever:matrix.orgdramforeveridk00:32:27
@dramforever:matrix.orgdramforever what on earth is Build 00:34:00
@rosscomputerguy:matrix.orgTristan Ross Huh, Build? 00:34:43
@dramforever:matrix.orgdramforeverare the tools just in a completely different world from the rest of the kernel build system?00:34:57
@rosscomputerguy:matrix.orgTristan RossI think so00:35:11
@dramforever:matrix.orgdramforeverhttps://github.com/torvalds/linux/blob/v6.6/tools/bpf/resolve_btfids/Build00:35:16
@dramforever:matrix.orgdramforeverare these... meant to be compilable outside the kernel?00:35:31
@dramforever:matrix.orgdramforever lol tools/build/Makefile.build 00:36:18
@dramforever:matrix.orgdramforever tools/: we have kbuild at home 00:36:31
@dramforever:matrix.orgdramforevercursed00:37:07
@rosscomputerguy:matrix.orgTristan RossSo my copy-paste method of rebasing didn't work lol00:40:04

Show newer messages


Back to Room ListRoom Version: 6