Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941086 - sys-devel/binutils fails to build no matter which version. Tried 2.42-r1, 2.42-r2 and 2.43-r1
Summary: sys-devel/binutils fails to build no matter which version. Tried 2.42-r1, 2.4...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-06 19:47 UTC by mrpingo
Modified: 2024-10-07 13:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (sys-devel:binutils-2.42-r2:20241006-183255.log.bz2,64.70 KB, application/x-bzip2)
2024-10-06 19:53 UTC, mrpingo
Details
emerge --info log (emerge-info.log,29.09 KB, text/plain)
2024-10-06 19:57 UTC, mrpingo
Details
The emerge --info from the binutils merged (emerge-info-binutils.log,30.25 KB, text/plain)
2024-10-06 20:00 UTC, mrpingo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mrpingo 2024-10-06 19:47:57 UTC
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.
Comment 1 mrpingo 2024-10-06 19:53:57 UTC
Created attachment 905024 [details]
build log

The build log
Comment 2 mrpingo 2024-10-06 19:57:42 UTC
Created attachment 905025 [details]
emerge --info log

emerge --info log
Comment 3 mrpingo 2024-10-06 20:00:28 UTC
Created attachment 905026 [details]
The emerge --info from the binutils merged
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-07 06:27:47 UTC
/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
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-07 06:29:26 UTC
Please try:
a) disabling ccache;
b) disabling bashrc-mv

I can't see where on earth that -Werror=x is coming from..
Comment 6 mrpingo 2024-10-07 13:52:25 UTC
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.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-07 13:55:14 UTC
Thank you for the update!