kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Linux Kernel build dpkg-buildpackage error 
@ 2021-08-15  7:25 Adverg Ebashinskii
  2021-08-15  9:05 ` Ewan Marshall
  0 siblings, 1 reply; 3+ messages in thread
From: Adverg Ebashinskii @ 2021-08-15  7:25 UTC (permalink / raw)
  To: kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 879 bytes --]


 
Hello!
 
I’m trying to build Linux Kernel from upstream and faced some build error.
 
Environment:
 
Ubuntu 20.04 
gcc  (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Linux Kernel 5.8.0-59-generic
 
Steps to build:
 
I follow the instructions specified in this site  https://wiki.ubuntu.com/KernelTeam/GitKernelBuild
 
1​​​​​​  cp /boot/config-$(uname -r) .config
 
2  make olddefconfig
 
3  make clean
 
4  make -j $(getconf _NPROCESSORS_ONLN) deb-pkg LOCALVERSION=-custom
 
After pretty long time of compiling source files I got the following error:
 
make[2]: *** [debian/rules:7: build-arch] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
make[1]: *** [scripts/Makefile.package:77: deb-pkg] Error 2
make: *** [Makefile:1559: deb-pkg] Error 2
 
Is there a way to fix that?
--
Regards,
Adverg Ebashinskii

[-- Attachment #1.2: Type: text/html, Size: 13727 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Linux Kernel build dpkg-buildpackage error
  2021-08-15  7:25 Linux Kernel build dpkg-buildpackage error Adverg Ebashinskii
@ 2021-08-15  9:05 ` Ewan Marshall
  2021-08-15  9:48   ` Adverg Ebashinskii
  0 siblings, 1 reply; 3+ messages in thread
From: Ewan Marshall @ 2021-08-15  9:05 UTC (permalink / raw)
  To: kernelnewbies

Try `make -j $(getconf _NPROCESSORS_ONLN) bindeb-pkg LOCALVERSION=-custom`

Line 77 of scripts/Makefile.Package is:
`$ mv $(KDEB_SOURCENAME).tar.gz 
../$(KDEB_SOURCENAME)_$${origversion}.orig.tar.gz`

which suggests it is not finding the file $(KDEB_SOURCENAME).tar.gz 
debians instructions tell one to use the bindeb-pkg build target instead 
of deb-pkg build target for some reason. I can't see it not working 
unless there is another error before this you are not giving us.

Regards,
Ewan

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Linux Kernel build dpkg-buildpackage error
  2021-08-15  9:05 ` Ewan Marshall
@ 2021-08-15  9:48   ` Adverg Ebashinskii
  0 siblings, 0 replies; 3+ messages in thread
From: Adverg Ebashinskii @ 2021-08-15  9:48 UTC (permalink / raw)
  To: Ewan Marshall, kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 325 bytes --]


>   can't see it not working  unless there is another error before this you are not giving us.
 
Thank you for the reply. Actually the root cause of the error was much earlier in the output. Running scripts/config --disable SYSTEM_TRUSTED_KEYS makes the kernel compiles successfully.
--
Regards,
Adverg Ebashinskii
 
 

[-- Attachment #1.2: Type: text/html, Size: 1688 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-15  9:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-15  7:25 Linux Kernel build dpkg-buildpackage error Adverg Ebashinskii
2021-08-15  9:05 ` Ewan Marshall
2021-08-15  9:48   ` Adverg Ebashinskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).