Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 720774 - sys-devel/clang-11.0.0.9999 fails with "Header checksum mismatch, aborting."
Summary: sys-devel/clang-11.0.0.9999 fails with "Header checksum mismatch, aborting."
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-03 10:43 UTC by Mariusz Ceier
Modified: 2020-05-06 06:20 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mariusz Ceier 2020-05-03 10:43:38 UTC
emerging sys-devel/clang-11.0.0.9999 ends with:

 * ERROR: sys-devel/clang-11.0.0.9999::gentoo failed (install phase):
 *   Header checksum mismatch, aborting.
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_install
 *   environment, line 4534:  Called multilib-minimal_src_install
 *   environment, line 3188:  Called multilib_foreach_abi 'multilib-minimal_abi_src_install'
 *   environment, line 3401:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 *   environment, line 3075:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 *   environment, line 3073:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_install'
 *   environment, line  904:  Called multilib-minimal_abi_src_install
 *   environment, line 3185:  Called multilib_check_headers
 *   environment, line 3244:  Called die
 * The specific snippet of code:
 *               die "Header checksum mismatch, aborting.";


since clang installs additional headers for native ABI (after addition of clang-tidy-headers to the distribution components) which are missing in non-native ABI.



Reproducible: Always

Steps to Reproduce:
1. emerge '=sys-devel/clang-11.0.0.9999'
2.
3.
Actual Results:  
emerge fails with error message during installation phase:


ERROR: install
Header files have changed between ABIs.
--- /var/tmp/portage/sys-devel/clang-11.0.0.9999/temp/.multilib_header_cksum	2020-05-03 08:55:37.316680828 +0200
+++ /var/tmp/portage/sys-devel/clang-11.0.0.9999/temp/.multilib_header_cksum.new	2020-05-03 08:55:39.831729961 +0200
@@ -16,6 +16,7 @@
 2385275863 1037 /var/tmp/portage/sys-devel/clang-11.0.0.9999/image/usr/include/clangrt/11.0.0/include/openmp_wrappers/__clang_openmp_device_functions.h
 1434460327 104062 /var/tmp/portage/sys-devel/clang-11.0.0.9999/image/usr/include/clang/Basic/DiagnosticParseKinds.inc
 2254046682 10515 /var/tmp/portage/sys-devel/clang-11.0.0.9999/image/usr/include/clang/ASTMatchers/Dynamic/Parser.h
+3614946283 1053 /var/tmp/portage/sys-devel/clang-11.0.0.9999/image/usr/include/clang-tidy/bugprone/PosixReturnCheck.h
 1077952267 10557 /var/tmp/portage/sys-devel/clang-11.0.0.9999/image/usr/include/clangrt/11.0.0/include/cpuid.h
 1006780932 10697 /var/tmp/portage/sys-devel/clang-11.0.0.9999/image/usr/include/clangrt/11.0.0/include/avx512bf16intrin.h
 1053937520 1076 /var/tmp/portage/sys-devel/clang-11.0.0.9999/image/usr/include/clangrt/11.0.0/include/ptwriteintrin.h

[rest of the diff omitted]

ERROR: sys-devel/clang-11.0.0.9999::gentoo failed (install phase):
  Header checksum mismatch, aborting.

Call stack:
    ebuild.sh, line  125:  Called src_install
  environment, line 4534:  Called multilib-minimal_src_install
  environment, line 3188:  Called multilib_foreach_abi 'multilib-minimal_abi_src_install'
  environment, line 3401:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
  environment, line 3075:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
  environment, line 3073:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_install'
  environment, line  904:  Called multilib-minimal_abi_src_install
  environment, line 3185:  Called multilib_check_headers
  environment, line 3244:  Called die
The specific snippet of code:
              die "Header checksum mismatch, aborting.";



Expected Results:  
emerging clang shouldn't fail during installation
Comment 1 Larry the Git Cow gentoo-dev 2020-05-06 06:20:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64b09b6db494dccc609b94f8492e4e85e21aed8f

commit 64b09b6db494dccc609b94f8492e4e85e21aed8f
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2020-05-06 06:20:14 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-05-06 06:20:14 +0000

    sys-devel/clang: Do not install clang-tidy-headers after all
    
    Stop installing clang-tidy-headers since no libraries are installed
    corresponding to these headers.
    
    Closes: https://bugs.gentoo.org/720774
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 sys-devel/clang/clang-11.0.0.9999.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)