You are not logged in.

#1 2019-01-11 21:18:01

Registered: 2017-02-19
Posts: 11

[SOLVED] Xen - Missing headers

Hi, I am trying to build Xen from the AUR.

All deps should be installed but the building stops with missing header files.
First it complains about "scsi/sg.h":

/home/[...]/.cache/yay/xen/src/xen-4.11.0/tools/qemu-xen-traditional/hw/scsi-generic.c:44:10: fatal error: scsi/sg.h: No such file or directory
 #include <scsi/sg.h>
compilation terminated.

That file exists under "/usr/src/linux-4.20.arch1/include/scsi/sg.h" but not under "/usr/include/scsi/".
I dont know if this is correct (and the build process is using a wrong include path) or if that file should exist there too.
I tried to symlink it and it worked but compiling failed with the next missing header which is "linux/compiler.h". Symlinked that too but only to see the next file not being found.

I guess I am missing something...?

Can anyone assist?
Many thanks.

Last edited by rookie0 (2019-01-12 13:49:34)


#2 2019-01-11 22:13:47

Forum Moderator
Registered: 2012-10-16
Posts: 6,615

Re: [SOLVED] Xen - Missing headers

pacman -Qo /usr/include/scsi/sg.h
/usr/include/scsi/sg.h is owned by glibc 2.28-5

Sounds like you have quite a broken system, Are there more missing files?

pacman -Qkk


#3 2019-01-12 11:11:03

From: Netherlands, Europe
Registered: 2005-10-04
Posts: 6,891

Re: [SOLVED] Xen - Missing headers


Are you building xen with yay ?
If so, try building with makepkg to verify whether the aur helper is part of the problem.

Multi-init booting with apg Openrc and systemd coexisting
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them


#4 2019-01-12 13:48:56

Registered: 2017-02-19
Posts: 11

Re: [SOLVED] Xen - Missing headers

Hi, thanks for the input!

glibc was missing 3 files under /usr/include/scsi.
I have no idea why that is. On my other PC those 3 files were missing too.

Builds fine now using yay (sorry I completly forgot to mention that I am using yay).

Many thanks to both of you for the help!


Board footer

Powered by FluxBB