Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948202 - llvm-core/llvm-19.1.7 - [gcc-15] blake3_sse2_x86-64_unix.S:1910: Error: operand type mismatch for mov
Summary: llvm-core/llvm-19.1.7 - [gcc-15] blake3_sse2_x86-64_unix.S:1910: Error: opera...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2025-01-16 19:57 UTC by Toralf Förster
Modified: 2025-01-16 23:13 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.54 KB, text/plain)
2025-01-16 19:57 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,26.39 KB, text/plain)
2025-01-16 19:57 UTC, Toralf Förster
Details
environment (environment,181.38 KB, text/plain)
2025-01-16 19:57 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2025-01-16 19:57 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,14.97 KB, application/x-xz)
2025-01-16 19:57 UTC, Toralf Förster
Details
llvm-core:llvm-19.1.7:20250116-194840.log (llvm-core:llvm-19.1.7:20250116-194840.log,231.82 KB, text/plain)
2025-01-16 19:57 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,54.82 KB, text/plain)
2025-01-16 19:58 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,47.10 KB, application/x-xz)
2025-01-16 19:58 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2025-01-16 19:57:52 UTC
too long lines were shrinked:

[154/3564] /usr/bin/x86_64-pc-linux-gnu-gcc -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/llvm-core/llvm-19.1.7/work/llvm_build-abi_x86_64.amd64/lib/Support/BLAKE3 -I/var/tmp/portage/llvm-core/llvm-19.1.7/work/llvm/lib/Support/BLAKE3 -I/var/tm
[155/3564] /usr/bin/x86_64-pc-linux-gnu-gcc -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/llvm-core/llvm-19.1.7/work/llvm_build-abi_x86_64.amd64/lib/Support/BLAKE3 -I/var/tmp/portage/llvm-core/llvm-19.1.7/work/llvm/lib/Support/BLAKE3 -I/var/tm
[156/3564] /usr/bin/x86_64-pc-linux-gnu-gcc -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/llvm-core/llvm-19.1.7/work/llvm_build-abi_x86_64.amd64/lib/Support/BLAKE3 -I/var/tmp/portage/llvm-core/llvm-19.1.7/work/llvm/lib/Support/BLAKE3 -I/var/tm
FAILED: lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_sse2_x86-64_unix.S.o 
/usr/bin/x86_64-pc-linux-gnu-gcc -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/llvm-core/llvm-19.1.7/work/llvm_build-abi_x86_64.amd64/lib/Support/BLAKE3 -I/var/tmp/portage/llvm-core/llvm-19.1.7/work/llvm/lib/Support/BLAKE3 -I/var/tmp/portage/l
/var/tmp/portage/llvm-core/llvm-19.1.7/work/llvm/lib/Support/BLAKE3/blake3_sse2_x86-64_unix.S: Assembler messages:
/var/tmp/portage/llvm-core/llvm-19.1.7/work/llvm/lib/Support/BLAKE3/blake3_sse2_x86-64_unix.S:1910: Error: operand type mismatch for `mov'
/var/tmp/portage/llvm-core/llvm-19.1.7/work/llvm/lib/Support/BLAKE3/blake3_sse2_x86-64_unix.S:1911: Error: operand type mismatch for `mov'
[157/3564] /usr/bin/x86_64-pc-linux-gnu-gcc -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/llvm-core/llvm-19.1.7/work/llvm_build-abi_x86_64.amd64/lib/Support/BLAKE3 -I/var/tmp/portage/llvm-core/llvm-19.1.7/work/llvm/lib/Support/BLAKE3 -I/var/tm

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib_hardened-20250116-103007

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
llvm-config: Python 3.12.8
go version go1.23.4 linux/amd64
Available Rust versions:
  [1]   rust-bin-1.84.0 *

  HEAD of ::gentoo
commit 023ac9e0463088e1ae81b72c9145402239fc30e4
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Jan 16 18:48:32 2025 +0000

    2025-01-16 18:48:31 UTC

emerge -qpvO =llvm-core/llvm-19.1.7
[ebuild  N    ] llvm-core/llvm-19.1.7  USE="binutils-plugin libedit libffi xml zstd -debug -debuginfod -doc -exegesis -test -verify-sig -z3" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (LoongArch) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) -ARC -CSKY -DirectX -M68k -SPIRV -Xtensa"
Comment 1 Toralf Förster gentoo-dev 2025-01-16 19:57:53 UTC
Created attachment 916744 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-01-16 19:57:54 UTC
Created attachment 916745 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2025-01-16 19:57:55 UTC
Created attachment 916746 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2025-01-16 19:57:56 UTC
Created attachment 916747 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2025-01-16 19:57:57 UTC
Created attachment 916748 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-01-16 19:57:58 UTC
Created attachment 916749 [details]
llvm-core:llvm-19.1.7:20250116-194840.log
Comment 7 Toralf Förster gentoo-dev 2025-01-16 19:57:59 UTC
The file size of ./files/logs.tar.xz is too big (1.3M) for an upload. For few weeks the link http://tinderbox.zwiebeltoralf.de:31560/23.0_no_multilib_hardened-20250116-103007/var/tmp/tb/issues/20250116-195117-llvm-core_llvm-19.1.7/files/logs.tar.xz is valid.
Comment 8 Toralf Förster gentoo-dev 2025-01-16 19:58:00 UTC
Created attachment 916750 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2025-01-16 19:58:02 UTC
Created attachment 916751 [details]
temp.tar.xz
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-16 20:02:22 UTC
I think this is another instance of bug 948147.

But wait? Your emerge-history.txt shows...
```
2025-01-16T11:09:45 >>> sys-apps/lsb-release-3.3
2025-01-16T11:09:52 >>> sys-devel/binutils-2.43-r2
2025-01-16T11:11:32 >>> dev-lang/rust-bin-1.84.0
2025-01-16T11:12:13 >>> sys-devel/gcc-15.0.0_pre20250112-r2
2025-01-16T12:55:03 <<< sys-devel/gcc-14.2.1_p20241221
[...]
2025-01-16T15:48:46 >>> sys-devel/binutils-2.43-r2
```
which means that your binutils should be built by a *fixed* GCC (-r1 and then -r2 had followup fixes for ifcombine).

The bug may not be fully fixed. Needs investigation.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-16 20:07:06 UTC
toralf, in this image, can you run...
1) emerge -v1o --with-test-deps sys-devel/binutils;
2) FEATURES=test emerge -v1 sys-devel/binutils
and tell me if tests pass? If not, please show logs.
Comment 12 Larry the Git Cow gentoo-dev 2025-01-16 23:11:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=e42dbea5f6e2a59e7a2aafe1f406ddf697a2658e

commit e42dbea5f6e2a59e7a2aafe1f406ddf697a2658e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-01-16 23:04:53 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-16 23:07:49 +0000

    15.0.0: fix ifcombine patches again
    
    Apparently I lost 82_all_PR118409-ifcombine.patch. Bring the patches
    back to respin the patchset...
    
    This reverts commit 2e47edeb6aa67d66f1ebe828137dd296fd9bb4dc temporarily.
    This reverts commit 5c4e50d6f18794b3bece70beadb05d256087f45d temporarily.
    This reverts commit 98a192aae9698ea3961ab037cd44029c76cf3db4 temporarily.
    
    Cloess: https://bugs.gentoo.org/948147
    Closes: https://bugs.gentoo.org/948202
    Signed-off-by: Sam James <sam@gentoo.org>

 15.0.0/gentoo/82_all_PR118409-ifcombine.patch      | 154 +++++++++
 ...xtend-constants-to-compare-with-bitfields.patch | 214 +++++++++++++
 ...PR118456-robustify-decode_field_reference.patch | 354 +++++++++++++++++++++
 ...-Fix-build-for-STORE_FLAG_VALUE-0-targets.patch |  87 +++++
 15.0.0/gentoo/README.history                       |   6 +-
 5 files changed, 811 insertions(+), 4 deletions(-)
Comment 13 Larry the Git Cow gentoo-dev 2025-01-16 23:13:12 UTC
The bug has been closed via the following commit(s):

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

commit b153d321e7b499c94cb370165dd58a0694195208
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-01-16 23:12:21 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-16 23:12:51 +0000

    sys-devel/gcc: restore lost ifcombine patch
    
    I'd lost one of the ifcombine patches which fixed the binutils miscompilation,
    bleh.
    
    Closes: https://bugs.gentoo.org/948147
    Closes: https://bugs.gentoo.org/948202
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest                             |  3 +-
 sys-devel/gcc/gcc-15.0.0_pre20250112-r2.ebuild     | 53 ----------------------
 ...-r1.ebuild => gcc-15.0.0_pre20250112-r3.ebuild} |  2 +-
 3 files changed, 2 insertions(+), 56 deletions(-)