Skip to content

bpftools: add enableDebugger, set to false on Power64 (WIP)#192670

Closed
ghost wants to merge 1 commit intomasterfrom
unknown repository
Closed

bpftools: add enableDebugger, set to false on Power64 (WIP)#192670
ghost wants to merge 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Sep 23, 2022

Marked as draft for now; I will try to find and fix the root cause if possible.

Description of changes

bpftools is needed by systemd, but bpf_dbg is not. Currently bpf_dbg
fails to build with the error message below. Nothing else in the NixOS ISO
needs bpf_dbg, so until I can track down the root cause it's easier to simply
disable that build target.

error: builder for '/nix/store/daq740s0f31akfv12p828fv3ri01mv4p-bpftools-5.19.8.drv' failed with exit code 2;
       last 10 log lines:
       > gcc -Wall -O2 -D__EXPORTED_HEADERS__ -I/build/linux-5.19.8/tools/include/uapi -I/build/linux-5.19.8/tools/include -DDISASM_FOUR_ARGS_SIGNATURE -o bpf_asm bpf_asm.o bpf_exp.yacc.o bpf_exp.lex.o
       > gcc -Wall -O2 -D__EXPORTED_HEADERS__ -I/build/linux-5.19.8/tools/include/uapi -I/build/linux-5.19.8/tools/include -DDISASM_FOUR_ARGS_SIGNATURE -c -o bpf_dbg.o /build/linux-5.19.8/tools/bpf/bpf_dbg.c
       > In file included from /nix/store/kmpmsx894r939p7wbr6d3g3lfzm41i56-glibc-2.35-163-dev/include/asm/sigcontext.h:14,
       >                  from /nix/store/kmpmsx894r939p7wbr6d3g3lfzm41i56-glibc-2.35-163-dev/include/bits/sigcontext.h:30,
       >                  from /nix/store/kmpmsx894r939p7wbr6d3g3lfzm41i56-glibc-2.35-163-dev/include/signal.h:301,
       >                  from /build/linux-5.19.8/tools/bpf/bpf_dbg.c:51:
       > /nix/store/kmpmsx894r939p7wbr6d3g3lfzm41i56-glibc-2.35-163-dev/include/asm/elf.h:160:9: error: unknown type name '__vector128'
       >   160 | typedef __vector128 elf_vrreg_t;
       >       |         ^~~~~~~~~~~
       > make: *** [Makefile:67: bpf_dbg.o] Error 1
       For full logs, run 'nix log /nix/store/daq740s0f31akfv12p828fv3ri01mv4p-bpftools-5.19.8.drv'.
Things done
  • Built on platform(s)
    • powerpc64le-linux
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Sep 23, 2022
`bpftools` is needed by `systemd`, but `bpf_dbg` is not.  Currently `bpf_dbg`
fails to build with the error message below.  Nothing else in the NixOS ISO
needs `bpf_dbg`, so until I can track down the root cause it's easier to simply
disable that build target.

```
error: builder for '/nix/store/daq740s0f31akfv12p828fv3ri01mv4p-bpftools-5.19.8.drv' failed with exit code 2;
       last 10 log lines:
       > gcc -Wall -O2 -D__EXPORTED_HEADERS__ -I/build/linux-5.19.8/tools/include/uapi -I/build/linux-5.19.8/tools/include -DDISASM_FOUR_ARGS_SIGNATURE -o bpf_asm bpf_asm.o bpf_exp.yacc.o bpf_exp.lex.o
       > gcc -Wall -O2 -D__EXPORTED_HEADERS__ -I/build/linux-5.19.8/tools/include/uapi -I/build/linux-5.19.8/tools/include -DDISASM_FOUR_ARGS_SIGNATURE -c -o bpf_dbg.o /build/linux-5.19.8/tools/bpf/bpf_dbg.c
       > In file included from /nix/store/kmpmsx894r939p7wbr6d3g3lfzm41i56-glibc-2.35-163-dev/include/asm/sigcontext.h:14,
       >                  from /nix/store/kmpmsx894r939p7wbr6d3g3lfzm41i56-glibc-2.35-163-dev/include/bits/sigcontext.h:30,
       >                  from /nix/store/kmpmsx894r939p7wbr6d3g3lfzm41i56-glibc-2.35-163-dev/include/signal.h:301,
       >                  from /build/linux-5.19.8/tools/bpf/bpf_dbg.c:51:
       > /nix/store/kmpmsx894r939p7wbr6d3g3lfzm41i56-glibc-2.35-163-dev/include/asm/elf.h:160:9: error: unknown type name '__vector128'
       >   160 | typedef __vector128 elf_vrreg_t;
       >       |         ^~~~~~~~~~~
       > make: *** [Makefile:67: bpf_dbg.o] Error 1
       For full logs, run 'nix log /nix/store/daq740s0f31akfv12p828fv3ri01mv4p-bpftools-5.19.8.drv'.
```
@Atemu
Copy link
Copy Markdown
Member

Atemu commented Nov 17, 2022

Is this still needed with #198587?

@ghost
Copy link
Copy Markdown
Author

ghost commented Nov 23, 2022

Is this still needed with #198587?

It is not! Thank you for letting me know!

@ghost ghost closed this Nov 23, 2022
@ghost ghost deleted the pr/bpftools/enableDebugger branch November 23, 2022 04:50
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant