Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Surface pro 6 fail to build #1021

Open
d-dedrat opened this issue Jun 28, 2024 · 1 comment
Open

Surface pro 6 fail to build #1021

d-dedrat opened this issue Jun 28, 2024 · 1 comment

Comments

@d-dedrat
Copy link

d-dedrat commented Jun 28, 2024

I have a fresh of install of nixos on my surface and tried to add the surface-pro-intel build to my system through the guidelines.

imports =
    [ # Include the results of the hardware scan.
      <nixos-hardware/microsoft/surface/surface-pro-intel>
      ./hardware-configuration.nix
    ];

However I encountered this error:

/nix/store/r73z9i18vbjcph7k2f3isrysxzx6sqjx-gcc-wrapper-13.2.0/bin/ld: line 269: 177963 Killed                  /nix/store/7v7g86ml0ri171gfcrs1d442px5bi1p3-binutils-2.41/bin/ld ${extraBefore+"${extraBefore[@]}"} ${params+"${params[@]}"} ${extraAfter+"${extraAfter[@]}"}
  BTF     .btf.vmlinux.bin.o
libbpf: failed to get EHDR from .tmp_vmlinux.btf
pahole: .tmp_vmlinux.btf: Invalid argument
  LD      .tmp_vmlinux.kallsyms1
.btf.vmlinux.bin.o: file not recognized: file format not recognized
make[2]: *** [../scripts/Makefile.vmlinux:37: vmlinux] Error 1
make[1]: *** [/build/linux-6.9.3/Makefile:1160: vmlinux] Error 2
make: *** [../Makefile:240: __sub-make] Error 2
error: builder for '/nix/store/ih1vbzmmpd60rwj26ks1bl5p62wiris2-linux-6.9.3.drv' failed with exit code 2
error: 1 dependencies of derivation '/nix/store/f68dvsfs5q4j6cxhc1npz7kqa9rf5wa1-nixos-system-nixos-24.05.2150.89c49874fb15.drv' failed to build

I have seen another issue talking about the BTF, but the situation they were in seemed a little different.

I can provide additional information if need be.

@Mic92
Copy link
Member

Mic92 commented Jun 29, 2024

cc @stigtsp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants