21 Apr 2025 |
dramforever | what's the command for the actual build of exec-cmd.o ? | 00:16:55 |
Tristan Ross | Idk, I don't see it | 00:18:09 |
dramforever | V=1 to makeflags probably | 00:22:58 |
dramforever | * V=1 to makeFlags probably | 00:23:03 |
Tristan Ross | That's already set | 00:23:14 |
dramforever | huh, really? no exec-cmd.o at all in log? | 00:23:34 |
Tristan Ross | I added CFLAGS=-I$(readlink -e include) and get even worse errors | 00:23:36 |
Tristan Ross | None | 00:23:40 |
Tristan Ross | Because it's a make inside a make | 00:23:45 |
dramforever | i don't see why that matters | 00:24:27 |
Tristan Ross | It's not passing through the V | 00:24:59 |
Tristan Ross | So when make is calling make, the toplevel make is verbose | 00:25:09 |
Tristan Ross | But the child make isn't | 00:25:13 |
dramforever | i'm pretty sure that is not how makefile works | 00:25:25 |
Tristan 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 |
Tristan Ross | And I don't see a V=1 | 00:26:16 |
Tristan Ross | The source is this: https://github.com/torvalds/linux/tree/v6.6/tools/bpf/resolve_btfids | 00:26:35 |
dramforever | on one hand, V=1 is definitely passed down | 00:26:58 |
dramforever | 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 |
Tristan Ross | Huh, even when it's building the host stuff? | 00:27:38 |
dramforever | and then it sends these down in environment variablesexport quiet Q KBUILD_VERBOSE | 00:27:43 |
dramforever | * and then it sends these down in environment variables export quiet Q KBUILD_VERBOSE | 00:27:46 |
Tristan Ross | https://github.com/torvalds/linux/blob/v6.6/tools/bpf/resolve_btfids/Makefile#L79-L83 | 00:28:48 |
Tristan Ross | 🤔 | 00:28:50 |
dramforever | i am so confused | 00:30:44 |
Tristan Ross | Me too | 00:31:20 |
Tristan Ross | I rebased https://github.com/NixOS/nixpkgs/pull/390631 and got into this mess lol | 00:31:40 |
Tristan Ross | Just a simple nix build .#pkgsLLVM.linux | 00:31:54 |
dramforever | just patch the makefile | 00:32:09 |
dramforever | print the heck out of everything | 00:32:24 |