Univention Bugzilla – Bug 40491
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
Last modified: 2019-01-03 07:22:24 CET
It is not possible to include <gnu/stubs.h> on i386 with gcc-multilib installed. In file included from /usr/include/features.h:388:0, from /usr/include/stdint.h:26, from ../../../include/grub/xen.h:34, from ../../../grub-core/commands/xen/lsxen.c:23: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory The files stubs-32.h and stubs-64.h come from different packages, and on amd64 the files are in the same directory: root@amd64: ~# dpkg -L libc6-dev|sort|grep stubs /usr/include/x86_64-linux-gnu/gnu/stubs-64.h /usr/include/x86_64-linux-gnu/gnu/stubs.h root@amd64: ~# dpkg -L libc6-dev-i386|sort|grep stubs /usr/include/x86_64-linux-gnu/gnu/stubs-32.h but on i386 the file stubs-32.h is not found because the files for amd64 are in a different directory: root@i386: ~# dpkg -L libc6-dev-amd64|sort|grep stubs /usr/include/gnu/stubs-64.h /usr/include/gnu/stubs.h root@i386: ~# dpkg -L libc6-dev|sort|grep stubs /usr/include/i386-linux-gnu/gnu/stubs-32.h /usr/include/i386-linux-gnu/gnu/stubs.h On amd64 /usr/include/gnu is a symlink: root@amd64: ~# ll -d /usr/include/gnu lrwxrwxrwx 1 root root 20 Nov 26 20:05 /usr/include/gnu -> x86_64-linux-gnu/gnu/ root@amd64: ~# dpkg -S /usr/include/gnu libc6-dev-i386: /usr/include/gnu but on i386 it is a directory: root@amd64: ~# ll -d /usr/include/gnu lrwxrwxrwx 1 root root 20 Nov 26 20:05 /usr/include/gnu -> x86_64-linux-gnu/gnu/ root@amd64: ~# dpkg -S /usr/include/gnu libc6-dev-i386: /usr/include/gnu
Workaround for building: Backup /var/univention/buildsystem2/pbuilder/ucs_4.1-0-errata4.1-0.tgz sudo pbuilder login --save-after-login --basetgz /var/univention/buildsystem2/pbuilder/ucs_4.1-0-errata4.1-0.tgz # apt-get update # apt-get install libc6-dev libc6-amd64-dev # cd /usr/include/gnu # ln -s /usr/include/i386-linux-gnu/gnu/stubs-32.h . # exit build package Restore /var/univention/buildsystem2/pbuilder/ucs_4.1-0-errata4.1-0.tgz
(In reply to Janek Walkenhorst from comment #1) > Workaround for building: > > Backup /var/univention/buildsystem2/pbuilder/ucs_4.1-0-errata4.1-0.tgz > > sudo pbuilder login --save-after-login --basetgz > /var/univention/buildsystem2/pbuilder/ucs_4.1-0-errata4.1-0.tgz > # apt-get update > # apt-get install libc6-dev libc6-amd64-dev apt-get install libc6-dev libc6-dev-amd64 > # cd /usr/include/gnu > # ln -s /usr/include/i386-linux-gnu/gnu/stubs-32.h . > # exit > > build package > > Restore /var/univention/buildsystem2/pbuilder/ucs_4.1-0-errata4.1-0.tgz
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018. Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.