I believe the error that I ran into was caused by inadvertently compiling with "-m32" without having linux-libc-dev:i386 installed, in which case the preprocessor somehow falls through to including the broken /usr/include/linux/errno.h
-- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1771309 Title: linux-libc-dev: linux/errno.h referrs to non-existing asm/errno.h Status in linux package in Ubuntu: New Bug description: /usr/include/asm does not exist on my machine - only /usr/include/asm-generic. This seems to be a common problem: (https://stackoverflow.com/questions/14795608/asm-errno-h-no-such-file-or-directory ) These are the relevant packages I have installed: dpkg -l | egrep "linux-(headers|libc)" ii linux-headers-4.4.0-124 4.4.0-124.148 all Header files related to Linux kernel version 4.4.0 ii linux-headers-4.4.0-124-generic 4.4.0-124.148 amd64 Linux kernel headers for version 4.4.0 on 64 bit x86 SMP ii linux-headers-generic 4.4.0.124.130 amd64 Generic Linux kernel headers ii linux-libc-dev:amd64 4.4.0-124.148 amd64 Linux Kernel Headers for development ii linux-libc-dev-armhf-cross 4.4.0-18.34cross1 all Linux Kernel Headers for development (for cross-compiling) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1771309/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp