Skip to content

Instantly share code, notes, and snippets.

@elsandosgrande
Last active November 11, 2019 02:31
Show Gist options
  • Save elsandosgrande/d33a9553a72e4828dfae3817377e0c8a to your computer and use it in GitHub Desktop.
Save elsandosgrande/d33a9553a72e4828dfae3817377e0c8a to your computer and use it in GitHub Desktop.
sys-apps/apparmor *FLAGS="-O2 -pipe -march=bdver4"
* Package: sys-apps/apparmor-2.13.3
* Repository: gentoo
* Maintainer: [email protected] [email protected]
* USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
* FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
* /etc/portage/package.cflags/ltoworkarounds.conf -> sys-apps/apparmor: *FLAGS-=-flto* # Issue #299, ODR violation, still builds and runs on some configurations
* /etc/portage/package.cflags/apparmor.conf -> sys-apps/apparmor: *FLAGS="-O2 -pipe -march=bdver4"
* FEATURES='assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr'
* CFLAGS='-O2 -pipe -march=bdver4'
* CXXFLAGS='-O2 -pipe -march=bdver4'
* FFLAGS='-O2 -pipe -march=bdver4'
* FCFLAGS='-O2 -pipe -march=bdver4'
* F77FLAGS='-O2 -pipe -march=bdver4'
* MAKEOPTS='-j2'
* gcc (Gentoo Hardened 9.2.0-r1 p2) 9.2.0
* Linux sandys-pavilion 5.3.8-gentoo #2 SMP PREEMPT Sun Nov 10 06:50:45 CET 2019 x86_64 AMD A9-9410 RADEON R5, 5 COMPUTE CORES 2C+3G AuthenticAMD GNU/Linux
>>> Unpacking source...
>>> Unpacking apparmor-2.13.3.tar.gz to /var/tmp/portage/sys-apps/apparmor-2.13.3/work
>>> Source unpacked in /var/tmp/portage/sys-apps/apparmor-2.13.3/work
>>> Preparing source in /var/tmp/portage/sys-apps/apparmor-2.13.3/work/apparmor-2.13.3/parser ...
* Applying apparmor-2.13.1-makefile.patch ... [ ok ]
* Applying apparmor-2.11.1-dynamic-link.patch ... [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-apps/apparmor-2.13.3/work/apparmor-2.13.3/parser ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-apps/apparmor-2.13.3/work/apparmor-2.13.3/parser ...
make -j2 CC=x86_64-pc-linux-gnu-gcc CXX=x86_64-pc-linux-gnu-g++ USE_SYSTEM=1 arch manpages
which: no rpm in (/usr/lib/portage/python3.7/ebuild-helpers/xattr:/usr/lib/portage/python3.7/ebuild-helpers:/usr/lib/llvm/9/bin:/usr/lib/llvm/8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin)
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o parser_common.o parser_common.c
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o parser_include.o parser_include.c
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o parser_interface.o parser_interface.c
bison -d -o parser_yacc.c parser_yacc.y
echo "CAP_AUDIT_CONTROL CAP_AUDIT_READ CAP_AUDIT_WRITE CAP_BLOCK_SUSPEND CAP_CHOWN CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH CAP_FOWNER CAP_FSETID CAP_IPC_LOCK CAP_IPC_OWNER CAP_KILL CAP_LEASE CAP_LINUX_IMMUTABLE CAP_MAC_ADMIN CAP_MAC_OVERRIDE CAP_MKNOD CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW CAP_SETFCAP CAP_SETGID CAP_SETPCAP CAP_SETUID CAP_SYSLOG CAP_SYS_ADMIN CAP_SYS_BOOT CAP_SYS_CHROOT CAP_SYS_MODULE CAP_SYS_NICE CAP_SYS_PACCT CAP_SYS_PTRACE CAP_SYS_RAWIO CAP_SYS_RESOURCE CAP_SYS_TIME CAP_SYS_TTY_CONFIG CAP_WAKE_ALARM" | LC_ALL=C sed -n -e "s/[ \\t]\\?CAP_\\([A-Z0-9_]\\+\\)/\{\"\\L\\1\", \\UCAP_\\1\},\\n/pg" > cap_names.h
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o parser_merge.o parser_merge.c
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o parser_symtab.o parser_symtab.c
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o parser_yacc.o parser_yacc.c
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o parser_regex.o parser_regex.c
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o parser_variable.o parser_variable.c
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o parser_policy.o parser_policy.c
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o parser_alias.o parser_alias.c
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o common_optarg.o common_optarg.c
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o lib.o lib.c
echo "AF_UNSPEC 0, AF_UNIX 1, AF_INET 2, AF_AX25 3, AF_IPX 4, AF_APPLETALK 5, AF_NETROM 6, AF_BRIDGE 7, AF_ATMPVC 8, AF_X25 9, AF_INET6 10, AF_ROSE 11, AF_NETBEUI 13, AF_SECURITY 14, AF_KEY 15, AF_NETLINK 16, AF_PACKET 17, AF_ASH 18, AF_ECONET 19, AF_ATMSVC 20, AF_RDS 21, AF_SNA 22, AF_IRDA 23, AF_PPPOX 24, AF_WANPIPE 25, AF_LLC 26, AF_IB 27, AF_MPLS 28, AF_CAN 29, AF_TIPC 30, AF_BLUETOOTH 31, AF_IUCV 32, AF_RXRPC 33, AF_ISDN 34, AF_PHONET 35, AF_IEEE802154 36, AF_CAIF 37, AF_ALG 38, AF_NFC 39, AF_VSOCK 40, AF_KCM 41, AF_QIPCRTR 42, AF_SMC 43, AF_XDP 44, AF_MAX 45," | LC_ALL=C sed -n -e 's/[ \t]\?AF_MAX[ \t]\+[0-9]\+,//g' -e 's/[ \t]\+\?AF_\([A-Z0-9_]\+\)[ \t]\+\([0-9]\+\),/#ifndef AF_\1\n# define AF_\1 \2\n#endif\nAA_GEN_NET_ENT("\L\1", \UAF_\1)\n\n/pg' > af_names.h
echo "AF_UNSPEC 0, AF_UNIX 1, AF_INET 2, AF_AX25 3, AF_IPX 4, AF_APPLETALK 5, AF_NETROM 6, AF_BRIDGE 7, AF_ATMPVC 8, AF_X25 9, AF_INET6 10, AF_ROSE 11, AF_NETBEUI 13, AF_SECURITY 14, AF_KEY 15, AF_NETLINK 16, AF_PACKET 17, AF_ASH 18, AF_ECONET 19, AF_ATMSVC 20, AF_RDS 21, AF_SNA 22, AF_IRDA 23, AF_PPPOX 24, AF_WANPIPE 25, AF_LLC 26, AF_IB 27, AF_MPLS 28, AF_CAN 29, AF_TIPC 30, AF_BLUETOOTH 31, AF_IUCV 32, AF_RXRPC 33, AF_ISDN 34, AF_PHONET 35, AF_IEEE802154 36, AF_CAIF 37, AF_ALG 38, AF_NFC 39, AF_VSOCK 40, AF_KCM 41, AF_QIPCRTR 42, AF_SMC 43, AF_XDP 44, AF_MAX 45," | LC_ALL=C sed -n -e 's/.*,[ \t]\+AF_MAX[ \t]\+\([0-9]\+\),\?.*/#define AA_AF_MAX \1\n/p' >> af_names.h
# cat af_names.h
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o mount.o mount.cc
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o dbus.o dbus.cc
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o profile.o profile.cc
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o rule.o rule.cc
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o signal.o signal.cc
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o ptrace.o ptrace.cc
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o af_rule.o af_rule.cc
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o af_unix.o af_unix.cc
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o policy_cache.o policy_cache.c
make: Nothing to be done for 'manpages'.
make[1]: Entering directory '/var/tmp/portage/sys-apps/apparmor-2.13.3/work/apparmor-2.13.3/parser/libapparmor_re'
bison -o parse.cc parse.y
parse.y:63.1-21: warning: deprecated directive, use ‘%define api.prefix {regex_}’ [-Wdeprecated]
63 | %name-prefix "regex_"
| ^~~~~~~~~~~~~~~~~~~~~
parse.y: warning: fix-its can be applied. Rerun with option '--update'. [-Wother]
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -c -o expr-tree.o expr-tree.cc
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -c -o hfa.o hfa.cc
In file included from hfa.cc:36:
hfa.h:47:16: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
47 | perms_t(void) throw(int): allow(0), deny(0), audit(0), quiet(0), exact(0) { };
| ^~~~~
hfa.h:195:44: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
195 | State(int l, ProtoState &n, State *other) throw(int):
| ^~~~~
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -c -o chfa.o chfa.cc
In file included from chfa.cc:32:
hfa.h:47:16: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
47 | perms_t(void) throw(int): allow(0), deny(0), audit(0), quiet(0), exact(0) { };
| ^~~~~
hfa.h:195:44: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
195 | State(int l, ProtoState &n, State *other) throw(int):
| ^~~~~
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -c -o aare_rules.o aare_rules.cc
flex -B -v -oparser_lex.c parser_lex.l
flex version 2.6.4 usage statistics:
scanner options: -vB8 -Cem -oparser_lex.c
1291/2000 NFA states
560/1000 DFA states (5477 words)
88 rules
Compressed tables always back-up
22/40 start conditions
659 epsilon states, 479 double epsilon states
148/200 character classes needed 4684/4750 words of storage, 0 reused
23792 state/nextstate pairs created
2360/21432 unique/duplicate transitions
716/1000 base-def entries created
4866/6000 (peak 10941) nxt-chk entries created
2808/10000 (peak 8736) template nxt-chk entries created
466 empty table entries
173 protos created
156 templates created, 332 uses
56/256 equivalence classes created
18/256 meta-equivalence classes created
1 (83 saved) hash collisions, 1845 DFAs equal
23 sets of reallocations needed
11476 total table entries needed
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o parser_main.o parser_main.c
In file included from aare_rules.cc:33:
hfa.h:47:16: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
47 | perms_t(void) throw(int): allow(0), deny(0), audit(0), quiet(0), exact(0) { };
| ^~~~~
hfa.h:195:44: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
195 | State(int l, ProtoState &n, State *other) throw(int):
| ^~~~~
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o parser_misc.o parser_misc.c
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -c -o parse.o parse.cc
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o network.o network.c
ar -rcs libapparmor_re.a parse.o expr-tree.o hfa.o chfa.o aare_rules.o
make[1]: Leaving directory '/var/tmp/portage/sys-apps/apparmor-2.13.3/work/apparmor-2.13.3/parser/libapparmor_re'
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -c -o parser_lex.o parser_lex.c
parser_lex.l: In function ‘int yylex()’:
parser_lex.l:324:8: warning: unused variable ‘exists’ [-Wunused-variable]
324 |
| ^
parser_lex.c: At global scope:
parser_lex.c:3925:16: warning: ‘int yy_top_state()’ defined but not used [-Wunused-function]
3925 |
| ^
x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver4 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -o apparmor_parser parser_common.o parser_include.o parser_interface.o parser_lex.o parser_main.o parser_misc.o parser_merge.o parser_symtab.o parser_yacc.o parser_regex.o parser_variable.o parser_policy.o parser_alias.o common_optarg.o lib.o network.o mount.o dbus.o profile.o rule.o signal.o ptrace.o af_rule.o af_unix.o policy_cache.o \
libapparmor_re/libapparmor_re.a -static-libgcc -static-libstdc++ -L. -Wl,-Bdynamic -lapparmor -Wl,-Bdynamic -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib64/libapparmor.so: undefined reference to `aa_query_label'
collect2: error: ld returned 1 exit status
make: *** [Makefile:190: apparmor_parser] Error 1
* ERROR: sys-apps/apparmor-2.13.3::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=sys-apps/apparmor-2.13.3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-apps/apparmor-2.13.3::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-apps/apparmor-2.13.3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/apparmor-2.13.3/temp/environment'.
* Working directory: '/var/tmp/portage/sys-apps/apparmor-2.13.3/work/apparmor-2.13.3/parser'
* S: '/var/tmp/portage/sys-apps/apparmor-2.13.3/work/apparmor-2.13.3/parser'
Portage 2.3.78 (python 3.7.5-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-9.2.0, glibc-2.29-r6, 5.3.8-gentoo x86_64)
=================================================================
System uname: Linux-5.3.8-gentoo-x86_64-AMD_A9-9410_RADEON_R5,_5_COMPUTE_CORES_2C+3G-with-gentoo-2.6
KiB Mem: 7534040 total, 280136 free
KiB Swap: 16777212 total, 16777212 free
Timestamp of repository gentoo: Sun, 10 Nov 2019 13:00:01 +0000
Head commit of repository gentoo: 7e5eaba5460fb4da936b81ac439875698bd1019c
Timestamp of repository jorgicio: Sun, 10 Nov 2019 05:05:39 +0000
Head commit of repository jorgicio: 2fb0bf40811745af5970568785a5ade96276b5c6
Timestamp of repository kde: Wed, 06 Nov 2019 23:43:05 +0000
Head commit of repository kde: 48bdd775fe038a49f908bf65fef72e8e59789c86
Timestamp of repository lto-overlay: Sat, 09 Nov 2019 15:09:41 +0000
Head commit of repository lto-overlay: 7ecd94336993a622a1a5fc96d582d5d6e2f47f51
Timestamp of repository matrix: Wed, 06 Nov 2019 23:42:54 +0000
Head commit of repository matrix: 287fd0690c74a318db689199469e0b4ba36178b0
Timestamp of repository mv: Sat, 09 Nov 2019 15:09:13 +0000
Head commit of repository mv: a18180fac91c02a0da2c20590d4d7fdd4f9d0e42
Timestamp of repository snapd: Wed, 06 Nov 2019 23:43:17 +0000
Head commit of repository snapd: 6ac60c065de4ef0c3ee5257d7293aadf8f03d226
Timestamp of repository steam-overlay: Sun, 10 Nov 2019 00:25:28 +0000
Head commit of repository steam-overlay: 8ab94ebfced8076b553f9e9c2e6f10f9e8e7a71f
sh bash 5.0_p11
ld GNU ld (Gentoo 2.32 p2) 2.32.0
ccache version 3.7.5 [disabled]
app-shells/bash: 5.0_p11::gentoo
dev-java/java-config: 2.2.0-r4::gentoo
dev-lang/perl: 5.30.0::gentoo
dev-lang/python: 2.7.16-r102::lto-overlay, 3.6.9-r1::lto-overlay, 3.7.5-r1::gentoo
dev-util/ccache: 3.7.5::gentoo
dev-util/cmake: 3.15.5::gentoo
sys-apps/baselayout: 2.6-r1::gentoo
sys-apps/sandbox: 2.18::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils: 2.32-r1::gentoo
sys-devel/gcc: 8.3.0-r2::gentoo, 9.2.0-r1::gentoo
sys-devel/gcc-config: 2.1::gentoo
sys-devel/libtool: 2.4.6-r5::gentoo
sys-devel/make: 4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers)
sys-libs/glibc: 2.29-r6::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-metamanifest: yes
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 24
jorgicio
location: /var/db/repos/jorgicio
sync-type: git
sync-uri: https://github.com/gentoo-mirror/jorgicio.git
masters: gentoo
kde
location: /var/db/repos/kde
sync-type: git
sync-uri: https://github.com/gentoo-mirror/kde.git
masters: gentoo
localrepo
location: /var/db/repos/localrepo
masters: gentoo
lto-overlay
location: /var/db/repos/lto-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/lto-overlay.git
masters: gentoo mv
matrix
location: /var/db/repos/matrix
sync-type: git
sync-uri: https://github.com/gentoo-mirror/matrix.git
masters: gentoo
mv
location: /var/db/repos/mv
sync-type: git
sync-uri: https://github.com/gentoo-mirror/mv.git
masters: gentoo
snapd
location: /var/db/repos/snapd
sync-type: git
sync-uri: https://github.com/gentoo-mirror/snapd.git
masters: gentoo
steam-overlay
location: /var/db/repos/steam-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
masters: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=bdver4 -pipe -pthread -fira-hoist-pressure -fira-loop-pressure -fbranch-target-load-optimize -fweb -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=2 -fuse-linker-plugin -fuse-ld=bfd -Wall -Wextra"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc/locale* /etc/nginx/nginx.conf /etc/portage/make.conf /etc/security/limits.conf /etc/sudoers /etc/systemd/logind.conf /etc/systemd/system/ /usr/lib/sysctl.d/90-override.conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O3 -march=bdver4 -pipe -pthread -fira-hoist-pressure -fira-loop-pressure -fbranch-target-load-optimize -fweb -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=2 -fuse-linker-plugin -fuse-ld=bfd -Wall -Wextra"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O3 -march=bdver4 -pipe -pthread -fira-hoist-pressure -fira-loop-pressure -fbranch-target-load-optimize -fweb -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=2 -fuse-linker-plugin -fuse-ld=bfd -Wall -Wextra"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O3 -march=bdver4 -pipe -pthread -fira-hoist-pressure -fira-loop-pressure -fbranch-target-load-optimize -fweb -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=2 -fuse-linker-plugin -fuse-ld=bfd -Wall -Wextra"
GENTOO_MIRRORS="http://ftp.ntua.gr/pub/linux/gentoo/ https://mirrors.evowise.com/gentoo/ https://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-O3 -march=bdver4 -pipe -pthread -fira-hoist-pressure -fira-loop-pressure -fbranch-target-load-optimize -fweb -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=2 -fuse-linker-plugin -fuse-ld=bfd -Wall -Wextra -Wl,-O1 -Wl,--as-needed -Wl,-O3"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="* 7zip X a52 aac acl acpi activities aio alsa amd64 amr amrenc androiddump apache2 appstream aribsub asm audiofile bash-completion berkdb bluetooth branding brightness-control browser-integration bzip2 cairo caps cdda cddb cdio cdr cdrom cgroup-hybrid cholmod ciscodump cjk clamdtop cli color-management colord connection-sharing context corefonts cracklib crypt cups cxx cycles d3d9 dav1d dbus declarative designer dri dri3 drm dts dvd dvdr egl emboss encode eps examples exif extras fam farstream fcitx fcitx4 fdt ffmpeg fftw filecaps flac fluidsynth fontconfig fortran fpm frei0r ftp fuse gallium gbm gd gdbm gentoo-vm geolocation gif git gles gles3 glib gme gmp gnuefi gnuplot googledrive gpg gpm gps graphite grub gsl gstreamer gtk gtk3 guile guile2 handbook hardened heif hpn iconv icu id3tag imagemagick introspection ipv6 iso java joystick jpeg jpeg2k json kde kdenlive kipi kms kwallet latex layers lcms ldap lensfun libaom libass libcaca libdrm libinput libkms libnotify libtirpc libxml2 llvm lm-sensors lrz lto lz4 lzma lzo mad man matroska mem-scramble midi minizip mng modern-top mount mousepad mp3 mp4 mpeg mpi mtp multilib musepack mysql mysqli native-headset ncurses networkmanager nfs nghttp2 nginx nls nptl numpy ogg omxil openal opencl opencv openexr opengl openh264 openimageio openmp opus orientation osmesa pam pango pch pci pcre pdf pdfimport phonon pie plasma png policykit posix postproc postscript ppds prison projectm ptex pulseaudio python qalculate qml qt4 qt5 qtmedia quad quicktime rar raw readline realtime rubberband sasl sbc sbsms scanner scripts sdl seccomp semantic-desktop sha3 shout sid skins smi sound sox speex spell spice split-usr sqlite ssl startup-notification svg swaybar swaybg swaymsg swaynag symlink sync-plugin-portage system-llvm systemd systemtap taglib tcpd theora threads tiff tls-heartbeat tools touchpad truetype twolame udev udisks umfpack unicode unwind upower usb usbredir user-permissions user-session utils uuid v4l vaapi vala vamp vcd vdpau video vim-pager vim-syntax virgl virt-network vlc vorbis vpx vulkan vulkan-overlay wallpapers wayland webengine webp widgets wifi wireshark-plugins wxwidgets x264 x265 xattr xcb xcomposite xml xpm xv xvid yaml zlib zvbi" ABI_X86="32 64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good acc_power nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 sse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm perfctr_core perfctr_nb bpext ptsc mwaitx cpb hw_pstate ssbd vmmcall fsgsbase bmi1 avx2 smep bmi2 xsaveopt arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU WebAssembly" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_7 python3_6 python2_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
NTHREADS="2"
source /etc/portage/make.conf.lto.defines
CHOST="x86_64-pc-linux-gnu"
COMMON_FLAGS="-O3 -march=bdver4 -pipe -pthread -fira-hoist-pressure -fira-loop-pressure -fbranch-target-load-optimize -fweb ${GRAPHITE} ${DEVIRTLTO} ${IPAPTA} ${SEMINTERPOS} ${FLTO} -fuse-linker-plugin -fuse-ld=bfd -Wall -Wextra"
LOG="trace"
#CC="gcc"
#CXX="g++"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
LDFLAGS="${COMMON_FLAGS} ${LDFLAGS} -Wl,-O3"
CPU_FLAGS_X86="fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good acc_power nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 sse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm perfctr_core perfctr_nb bpext ptsc mwaitx cpb hw_pstate ssbd vmmcall fsgsbase bmi1 avx2 smep bmi2 xsaveopt arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov"
MAKEOPTS="-j${NTHREADS}"
VIDEO_CARDS="amdgpu radeonsi radeon"
INPUT_DEVICES="libinput wacom"
PYTHON_TARGETS="python3_7 python3_6 python2_7"
ABI_X86="32 64"
GRUB_PLATFORMS="efi-64"
#FEATURES="buildpkg"
USE="* -selinux -sesandbox -minimal -static-libs -static -doc -nsplugin -webkit -bindist -classic -javamail -xa -xvmc -mariadb -evince midi introspection json designer d3d9 osmesa berkdb guile guile2 vim-pager cgroup-hybrid unwind vamp lzo quicktime farstream utils xvid uuid gmp modern-top wireshark-plugins aio ptex context numpy opencv dbus virt-network amr amrenc cdio rubberband libaom libdrm frei0r kdenlive user-permissions caps scanner colord speex imagemagick gps webengine drm libkms brightness-control mem-scramble tls-heartbeat asm hpn cracklib lensfun vala umfpack cholmod gsl raw color-management openexr qtmedia heif eps cjk hardened pch pie lto androiddump ciscodump libxml2 nghttp2 sbc smi clamdtop gnuefi sasl cxx examples corefonts scripts extras yaml fuse iso lz4 dri3 gallium gbm vulkan-overlay -gccgo id3tag sbsms ftp graphite prison fcitx4 fcitx mousepad appstream lzma sha3 webp tiff xpm gd orientation gnuplot qalculate xml geolocation lrz rar 7zip tools pci quad mpi fftw cdrom pdfimport cddb projectm vpx fontconfig fluidsynth libass twolame postproc dav1d aribsub taglib musepack shout skins sid omxil nfs zvbi gme joystick touchpad pam threads user-session gpm system-llvm usbredir fdt usb systemtap filecaps sync-plugin-portage apache2 nginx fpm mysqli mysql unicode layers glib minizip fortran openmp bluetooth -vc ldap kde v4l jpeg2k vulkan wallpapers swaybg swaymsg swaynag swaybar man googledrive virgl spice vlc gentoo-vm java kms sqlite sync-plugin-portage gpg git flac bash-completion audiofile aac acpi browser-integration wallpapers grub gtk3 gtk handbook networkmanager vcd vim-syntax usb svg svga plasma posix postscript ogg mtp multilib mp4 mp3 png matroska lm-sensors libcaca latex libinput acl vaapi vdpau opus theora x265 openh264 openimageio cycles llvm ffmpeg gstreamer native-headset sox realtime qt5 qt4 pulseaudio openal opengl opencl wifi connection-sharing icu ssl egl gles3 gles wayland sound video X symlink python mount"
#POLICY_TYPES="strict targeted"
LLVM_TARGETS="AMDGPU WebAssembly"
ACCEPT_LICENSE="*"
GENTOO_MIRRORS="http://ftp.ntua.gr/pub/linux/gentoo/ https://mirrors.evowise.com/gentoo/ https://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/"
# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
CONFIG_PROTECT="-* /usr/lib/sysctl.d/90-override.conf /etc/nginx/nginx.conf /etc/systemd/system/ /etc/portage/make.conf /etc/locale* /etc/systemd/logind.conf /etc/sudoers /etc/security/limits.conf /etc/portage/make.conf"
ACCEPT_KEYWORDS="~amd64"
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment