You are not logged in.

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

rookie0
Member
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)

Offline

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

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 5,899

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

Offline

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

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 6,514

Re: [SOLVED] Xen - Missing headers

/.cache/yay/

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

Offline

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

rookie0
Member
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!

Offline

Board footer

Powered by FluxBB