1

I'm trying to build Linux Kernel ffor Ubuntu 20.04 with GCC 9.3.0.

There are instructions out there https://wiki.ubuntu.com/KernelTeam/GitKernelBuild

make -j $(getconf _NPROCESSORS_ONLN) deb-pkg LOCALVERSION=-custom

After long running compiling C source files process I got the 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

What this error could be about?

Some Name
  • 8,555
  • 5
  • 27
  • 77
  • 3
    This is offtopic. Not really programming question. Our sister site about Ubuntu may be more relevant (link on top right icon). In any case, you miss the relevant errors. It should be few line earlier. – Giacomo Catenazzi Aug 15 '21 at 07:43
  • 1
    There are probably error messages further up the output. Since the make is building things in parallel (that is what the `-j` option specifies), those error messages will be mixed in with the normal build messages. – Ian Abbott Aug 16 '21 at 09:43
  • 1
    @GiacomoCatenazzi Thanks for pointing out where to look for the answer. It was due to wrong certificate config. – Some Name Aug 16 '21 at 10:13
  • @SomeName Could elaborate a bit more on how to fix this issue? – MadPhysicist Aug 04 '22 at 10:41
  • @MadPhysicist This is not actually the root cause (at least in my case). The core problem usually logged much earlier. To troubleshoot it you could try to redirect stdout into a separate file so you can see what stderr shows. – Some Name Aug 04 '22 at 12:54
  • @SomeName Thanks! I resorted to just running it on one core. Then I was able to see the true error that previously stayed somewhere above in the logs. – MadPhysicist Aug 05 '22 at 15:00

0 Answers0