x86_64-pc-linux-gnu-g++ -o aelparse -pthread -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wl,--defsym=__gentoo_check_ldflags__=0 aelparse.o aelbison.o pbx_ael.o hashtab.o lock.o ael_main.o ast_expr2f.o ast_expr2.o strcompat.o pval.o extconf.o astmm.o -lpthread -lc -lm /var/tmp/portage/net-misc/asterisk-18.24.2/work/asterisk-18.24.2/include/asterisk/pbx.h:540:5: error: type of ‘ast_add_extension2’ does not match original declaration [-Werror=lto-type-mismatch] 540 | int ast_add_extension2(struct ast_context *con, int replace, const char *extension, | ^ ael_main.c:221:5: note: type mismatch in parameter 11 221 | int ast_add_extension2(struct ast_context *con, | ^ ael_main.c:221:5: note: ‘ast_add_extension2’ was previously declared here /var/tmp/portage/net-misc/asterisk-18.24.2/work/asterisk-18.24.2/include/asterisk/cli.h:268:5: error: type of ‘__ast_cli_register_multiple’ does not match original declaration [-Werror=lto-type-mismatch] 268 | int __ast_cli_register_multiple(struct ast_cli_entry *e, int len, struct ast_module *mod); | ^ ael_main.c:204:6: note: return value type mismatch 204 | void __ast_cli_register_multiple(void) | ^ ael_main.c:204:6: note: type ‘void’ should match type ‘int’ ael_main.c:204:6: note: ‘__ast_cli_register_multiple’ was previously declared here /var/tmp/portage/net-misc/asterisk-18.24.2/work/asterisk-18.24.2/include/asterisk/pbx.h:352:6: error: type of ‘ast_context_destroy’ does not match original declaration [-Werror=lto-type-mismatch] 352 | void ast_context_destroy(struct ast_context *con, const char *registrar); | ^ ael_main.c:414:6: note: type mismatch in parameter 1 414 | void ast_context_destroy(void) | ^ ael_main.c:414:6: note: ‘ast_context_destroy’ was previously declared here /var/tmp/portage/net-misc/asterisk-18.24.2/work/asterisk-18.24.2/include/asterisk/cli.h:283:5: error: type of ‘ast_cli_unregister_multiple’ does not match original declaration [-Werror=lto-type-mismatch] 283 | int ast_cli_unregister_multiple(struct ast_cli_entry *e, int len); | ^ ael_main.c:408:6: note: return value type mismatch 408 | void ast_cli_unregister_multiple(void) | ^ ael_main.c:408:6: note: type ‘void’ should match type ‘int’ ael_main.c:408:6: note: ‘ast_cli_unregister_multiple’ was previously declared here /var/tmp/portage/net-misc/asterisk-18.24.2/work/asterisk-18.24.2/include/asterisk/pbx.h:327:6: error: type of ‘ast_merge_contexts_and_delete’ does not match original declaration [-Werror=lto-type-mismatch] 327 | void ast_merge_contexts_and_delete(struct ast_context **extcontexts, struct ast_hashtab *exttable, const char *registrar); | ^ ael_main.c:389:6: note: type mismatch in parameter 1 389 | void ast_merge_contexts_and_delete(void) | ^ ael_main.c:389:6: note: ‘ast_merge_contexts_and_delete’ was previously declared here /var/tmp/portage/net-misc/asterisk-18.24.2/work/asterisk-18.24.2/include/asterisk/pbx.h:953:5: error: type of ‘ast_context_verify_includes’ does not match original declaration [-Werror=lto-type-mismatch] 953 | int ast_context_verify_includes(struct ast_context *con); | ^ ael_main.c:395:6: note: return value type mismatch 395 | void ast_context_verify_includes(void) | ^ ael_main.c:395:6: note: type ‘void’ should match type ‘int’ ael_main.c:395:6: note: ‘ast_context_verify_includes’ was previously declared here /var/tmp/portage/net-misc/asterisk-18.24.2/work/asterisk-18.24.2/include/asterisk/pbx.h:1338:21: error: type of ‘ast_walk_contexts’ does not match original declaration [-Werror=lto-type-mismatch] 1338 | struct ast_context *ast_walk_contexts(struct ast_context *con); | ^ ael_main.c:401:22: note: type mismatch in parameter 1 401 | struct ast_context * ast_walk_contexts(void) | ^ ael_main.c:401:22: note: ‘ast_walk_contexts’ was previously declared here lto1: some warnings being treated as errors lto-wrapper: fatal error: x86_64-pc-linux-gnu-g++ returned 1 exit status compilation terminated. /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status make[1]: *** [/var/tmp/portage/net-misc/asterisk-18.24.2/work/asterisk-18.24.2/Makefile.rules:204: aelparse] Error 1 make[1]: Leaving directory '/var/tmp/portage/net-misc/asterisk-18.24.2/work/asterisk-18.24.2/utils' make: *** [Makefile:399: utils] Error 2 * ERROR: net-misc/asterisk-18.24.2::gentoo failed (compile phase):
Created attachment 903928 [details] emerge --info
Created attachment 903929 [details] build log