Hello, this is a bit ackward, because I have 2 computers with the same setup (make.conf); in one binutils compiles well all versions, and the other fails everything. Also don't remember changing anything related in the one that can't compile it but its the most probably thing because I have installed 2.42-r1 in the one that have this problem but could not recompile it o_0!? All versions that I tried are in the summary and all fails in the same way. Compile logs are provided. Hope you can pinpoint to what I have done. Best.
Created attachment 905024 [details] build log The build log
Created attachment 905025 [details] emerge --info log emerge --info log
Created attachment 905026 [details] The emerge --info from the binutils merged
/var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c: In function ‘stat_alloc’: /var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c:175:1: error: source locations for function ‘stat_alloc’ have changed, the profile data may be out of date [-Werror=coverage-mismatch] 175 | stat_alloc (size_t size) | ^~~~~~~~~~ /var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c:175:1: error: source locations for function ‘stat_alloc’ have changed, the profile data may be out of date [-Werror=coverage-mismatch] /var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c: At top level: /var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c:9959:1: warning: Missing counts for called function lang_do_memory_regions/428 9959 | } | ^ /var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c:9959:1: warning: Missing counts for called function lang_get_regions/399 /var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c:9959:1: warning: Missing counts for called function lang_list_remove_tail/375 /var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c:9959:1: warning: Missing counts for called function lang_do_assignments_1/335 /var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c:9959:1: warning: Missing counts for called function lang_size_relro_segment/330 /var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c:9959:1: warning: Missing counts for called function lang_size_sections_1/325 /var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c:9959:1: warning: Missing counts for called function lang_write_ctf/284 /var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c:9959:1: warning: Missing counts for called function open_input_bfds/278 /var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c:9959:1: warning: Missing counts for called function check_excluded_libs/262 /var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c:9959:1: warning: Missing counts for called function wont_add_section_p/255 /var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c:9959:1: warning: Missing counts for called function init_os/250 /var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c:9959:1: warning: Missing counts for called function insert_os_after/244 /var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c:9959:1: warning: Missing counts for called function output_section_statement_newfunc/229 /var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c:9959:1: warning: Missing counts for called function new_afile/226 /var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c:9959:1: warning: Missing counts for called function resolve_wilds/217 /var/tmp/portage/sys-devel/binutils-2.42-r2/work/binutils-2.42/ld/ldlang.c:9959:1: warning: Missing counts for called function analyze_walk_wild_section_handler/215 cc1: some warnings being treated as errors make[4]: *** [Makefile:1621: ldlang.o] Error 1 make[4]: Leaving directory '/var/tmp/portage/sys-devel/binutils-2.42-r2/work/build/ld' make[3]: *** [Makefile:1903: all-recursive] Error 1 make[2]: *** [Makefile:1092: all] Error 2
Please try: a) disabling ccache; b) disabling bashrc-mv I can't see where on earth that -Werror=x is coming from..
Well, Ishame on me because I should have tried this before complainig because is always the way to test things before filling a bug report: FEATURES="-ccache" doas emerge -vau1 binutils It compiles now. So sorry for wasting your precious time. It won't happen again. Now we can close this ticket. Best.
Thank you for the update!