Skip to content
Advertisement

glibc configure doesn’t recognize Linux header files

I’ve downloaded Linux kernel source from kernel.org to cross-compile glibc onto aarch64 Linux (emulated by QEMU). However, when I run:

JavaScript

I get this error:

JavaScript

Any idea what I am doing wrong?

Advertisement

Answer

--with-headers=/home/teo.samarzija/linux-5.7.6/include

This looks like a checked-out kernel tree. You need to install the kernel tree first and specify that location, using a command like this:

JavaScript

(You still have to set CC et al. appropriate to pick up the cross-compiler.)

And the use --with-headers=/home/teo.samarzija/linux-5.7.6-installed/usr/include.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement