Linux Compilation Errors

87 views
Skip to first unread message

Gabe R

unread,
Nov 6, 2021, 9:47:04 PM11/6/21
to RISC-V Developer Board Community
Hello all,
I have been trying to compile my own Linux kernel for the D1 using the instructions on https://fedoraproject.org/wiki/Architectures/RISC-V/Allwinner, but I seem to have hit a wall.

When I tried to compile the kernel, I got a message about missing linux/arch/riscv/ nezha_fedora_defconfig , so I switched to a different branch that had that file and re-ran the compiler, but I am now receiving the following error:

  GEN     kernel/kheaders_data.tar.xz
make[2]: *** [kernel/Makefile:159: kernel/kheaders_data.tar.xz] Error 127
make[1]: *** [Makefile:1851: kernel] Error 2
make[1]: Leaving directory '/home/builder/fedora-d1/linux'
make: *** [Makefile:39: linux] Error 2

I see some advice online about using menuconfig to disable kernel headers, but as I don't have any experience compiling the Kernel, and the Fedora page does not mention doing this, I am wary to make any changes to the build process..

Has anyone else managed to follow these (or any other) instructions and build their own Linux image?

Gabe

Robert Lipe

unread,
Nov 7, 2021, 12:31:24 AM11/7/21
to Gabe R, RISC-V Developer Board Community
Can it be something as benign as being out of disk write space? That looks like something doing a lot of copies and then creating a compressed copy of the same.

--
You received this message because you are subscribed to the Google Groups "RISC-V Developer Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to devboard-commun...@riscv.org.

Gabe R

unread,
Nov 7, 2021, 4:49:14 PM11/7/21
to RISC-V Developer Board Community, rober...@gmail.com, RISC-V Developer Board Community, Gabe R
Robert,

I just checked, its not a disk space issue.

Gabe

Gabe R

unread,
Nov 7, 2021, 4:54:17 PM11/7/21
to RISC-V Developer Board Community, Gabe R, rober...@gmail.com, RISC-V Developer Board Community
Aha. I did a little bit more googling and found something I missed before. Seems I needed to install the cpio. Now I have a different error that I suspect is from another missing package. Once I get this all figured out I am going to put up a Dockerfile and image on Dockerhub for others to use.

Gabe.
Reply all
Reply to author
Forward
0 new messages