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

Makefile error 2 while compiling kernel #978

Closed
sheikh1233 opened this issue Jul 20, 2024 · 6 comments
Closed

Makefile error 2 while compiling kernel #978

sheikh1233 opened this issue Jul 20, 2024 · 6 comments

Comments

@sheikh1233
Copy link

sheikh1233 commented Jul 20, 2024

prepare.log.txt
shell-output.log.txt
system-info.txt
customization.cfg.txt

On Gentoo Linux, during the compilation of the kernel, an error that states

make[1]: *** [/home/*****/linux-tkg/linux-src-git/Makefile:1937: .] Error 2
make: *** [Makefile:240: __sub-make] Error 2

(Name of my home directory is censored because it has my real name), and the exit cleanup happens. The text files with all the logs are attached above. I made sure to change the _configfile to "running-kernel" like the Gentoo section says, as I am using OpenRC. This happens without configuring the kernel with menuconfig.

@sheikh1233
Copy link
Author

sheikh1233 commented Jul 20, 2024

This is currently happening with kernel 6.10, with all the prompts in ./install.sh set to their defaults, both with clang and GCC, with ccache enabled.

@sheikh1233
Copy link
Author

sheikh1233 commented Jul 20, 2024

This still happens on 6.10 with ccache disabled, all the zen/liquorix patches disabled, clear linux patches disabled, as well as happening on 6.9.10, as well as happening all the way back in 6.6.

@aalhitennf
Copy link

aalhitennf commented Jul 21, 2024

Same, tried with 6.10 and 6.9.10. Just pressed enter on all questions to use defaults.

  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp2_transition.o
  LD [M]  drivers/gpu/drm/amd/amdgpu/amdgpu.o
  AR      drivers/gpu/built-in.a
  AR      drivers/built-in.a
make[1]: *** [/home/user/temp/linux-tkg/linux-src-git/Makefile:1921: .] Error 2
make: *** [Makefile:240: __sub-make] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
  -> exit cleanup done

@ptr1337
Copy link
Contributor

ptr1337 commented Jul 21, 2024

@sheikh1233

  AR      usr/built-in.a
make[3]: *** No rule to make target '/var/tmp/portage/sys-kernel/gentoo-kernel-6.6.35/temp/kernel_key.pem', needed by 'certs/signing_key.x509'.  Stop.
make[3]: *** Waiting for unfinished jobs....
  HOSTCC  certs/extract-cert
  CC      arch/x86/coco/tdx/tdx.o
  AS      arch/x86/entry/entry.o
make[2]: *** [scripts/Makefile.build:485: certs] Error 2
make[2]: *** Waiting for unfinished jobs...

It seems to search for keys to sign the kernel

@aalhitennf Without any further logs, information or equal its hard to help.

@Tk-Glitch
Copy link
Member

Duplicate of #948

@Tk-Glitch Tk-Glitch marked this as a duplicate of #948 Jul 21, 2024
@sheikh1233
Copy link
Author

I will close this and continue further discussion in #948 then.

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

4 participants