Am Sonntag, 9. Oktober 2016 11:17:30 UTC+2 schrieb Jimmy Axenhus: > Den 2016-10-09 kl. 11:05, skrev Dimitri: > > I didn't build the archlinux template for a long time. Once it worked as > > described here https://www.qubes-os.org/doc/templates/archlinux/ but now it > > fails with this error (for 3.1 and 3.2): > > > > libxl_utils.c: In function 'libxl__remove_directory': > > libxl_utils.c:480:9: error: 'readdir_r' is deprecated > > [-Werror=deprecated-declarations] > > int r = readdir_r(d, de_buf, &de); > > ^~~ > > In file included from libxl_internal.h:25:0, > > from libxl_utils.c:20: > > /usr/include/dirent.h:183:12: note: declared here > > extern int readdir_r (DIR *__restrict __dirp, > > ^~~~~~~~~ > > cc1: all warnings being treated as errors > > make[3]: *** > > [/home/user/qubes-src/vmm-xen/src/xen-4.6.1/tools/libxl/../../tools/Rules.mk:107: > > libxl_utils.o] Error 1 > > make[3]: Leaving directory > > '/home/user/qubes-src/vmm-xen/src/xen-4.6.1/tools/libxl' > > make[2]: *** > > [/home/user/qubes-src/vmm-xen/src/xen-4.6.1/tools/../tools/Rules.mk:123: > > subdir-install-libxl] Error 2 > > make[2]: Leaving directory > > '/home/user/qubes-src/vmm-xen/src/xen-4.6.1/tools' > > make[1]: *** > > [/home/user/qubes-src/vmm-xen/src/xen-4.6.1/tools/../tools/Rules.mk:118: > > subdirs-install] Error 2 > > make[1]: Leaving directory > > '/home/user/qubes-src/vmm-xen/src/xen-4.6.1/tools' > > make: *** [Makefile:102: install-tools] Error 2 > > ==> ERROR: A failure occurred in build(). > > Aborting... > > /home/user/qubes-builder/qubes-src/builder-archlinux/Makefile.archlinux:120: > > recipe for target 'dist-package' failed > > make[2]: *** [dist-package] Error 2 > > > > > > How can I fix this? Ignoring the deprecation? Replace readdir_r with a non > > deprecated alternative? > > > > Thanks for help! > > > > I built the archlinux template yesterday and ran into the same problem. > I had to modify /etc/makepkg.conf and add "-Wno-deprecated-declarations" > to CFLAGS. > > That's not enough however as I also had to bind mount /dev/pts on the > chroot because gpg was failing when installing packages. I poked around > in various scripts and somehow got to it work.
Thanks. Modifying /etc/makepkg.conf was sufficient! -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/8d4188e5-68f3-4c1f-9c81-c97a6d393e8b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
