libtool: compile: x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2 -DCONFDIR=\"/etc/conf.d\" -D_FILE_OFFSET_BITS=64 -Werror=terminate -O2 -pipe -march=native -std=c++11 -Wall -Wextra -Wformat=2 -Wnon-virtual-dtor -Wno-unused-parameter -c Btrfs.cc -fPIC -DPIC -o .libs/Btrfs.o Btrfs.cc: In member function ‘virtual void snapper::Btrfs::deleteSnapshot(unsigned int) const’: Btrfs.cc:411:53: error: ‘subvolid’ was not declared in this scope qgroup_destroy(subvolume_dir.fd(), calc_qgroup(0, subvolid)); ^~~~~~~~ make[2]: *** [Makefile:564: Btrfs.lo] Error 1 ----------------------------------------------------------------- This is an unstable amd64 chroot image (named desktop-abi32+64_20170324-193625) at a hardened host acting as a tinderbox. ----------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-6.3.0 * Available Python interpreters, in order of preference: [1] python3.4 [2] python2.7 (fallback) Available Ruby profiles: [1] ruby21 (with Rubygems) * java-config: The following VMs are available for generation-2: *) IcedTea JDK 3.3.0 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 system-vm
Created attachment 468468 [details] emerge-info.txt
Created attachment 468470 [details] app-backup:snapper-0.4.1:20170327-075528.log
Created attachment 468472 [details] config.log.tbz2
Created attachment 468474 [details] emerge-history.txt
Created attachment 468476 [details] environment
Created attachment 468478 [details] etc.portage.tbz2
Created attachment 468480 [details] temp.tbz2
I believe this is the same as https://bugs.gentoo.org/show_bug.cgi?id=613890. It's not GCC-6 related. A compile/run test in the configure script fails because of an undefined symbol '__error'. This causes the macro 'HAVE_LIBBTRFS' to not be defined in config.h. When 'ENABLE_BTRFS_QUOTA' is defined and 'HAVE_LIBBTRFS' is not, certain necessary headers are not included in files like Btrfs.cc and BtrfsUtils.cc. Failures ensue.
commit edcb856801e88470339d0954fd87bade95a1a73b Author: Michael Vetter <jubalh@iodoru.org> Date: Fri Mar 16 10:21:37 2018 +0000 app-backup/snapper: remove ext4, force btrfs Snapper's ext4 code does not work anymore. So we need to compile with --disable-ext4 by default. Also snapper does not seem to work without btrfs enabled, so we need to enable it by default. Closes: https://github.com/gentoo/gentoo/pull/7473 Package-Manager: Portage-2.3.19, Repoman-2.3.6