Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937525 - dev-lang/rust-1.79.0 - [icu-75.1] [gcc-15] /.../Allocator.h: error: class llvm::SmallVector<void , 4> has no member named begin
Summary: dev-lang/rust-1.79.0 - [icu-75.1] [gcc-15] /.../Allocator.h: error: class llv...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Randy Barlow
URL: https://github.com/llvm/llvm-project/...
Whiteboard:
Keywords: PullRequest
: 939509 939661 (view as bug list)
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-08-07 17:32 UTC by Toralf Förster
Modified: 2025-03-14 20:17 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.23 KB, text/plain)
2024-08-07 17:32 UTC, Toralf Förster
Details
dev-lang:rust-1.79.0:20240807-071809.log.xz (dev-lang:rust-1.79.0:20240807-071809.log.xz,80.05 KB, application/x-xz)
2024-08-07 17:32 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,89.59 KB, application/x-xz)
2024-08-07 17:32 UTC, Toralf Förster
Details
environment (environment,186.58 KB, text/plain)
2024-08-07 17:32 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.36 KB, application/x-xz)
2024-08-07 17:32 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,53.16 KB, application/x-xz)
2024-08-07 17:32 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,11.39 KB, application/x-xz)
2024-08-07 17:32 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,93.79 KB, application/x-xz)
2024-08-07 17:32 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,38.69 KB, application/x-xz)
2024-08-07 17:32 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 2024-08-07 17:32:48 UTC
      |                                                 ^~~~~~~~
      |                                                         ;
/var/tmp/portage/dev-lang/rust-1.79.0/work/rustc-1.79.0-src/src/llvm-project/llvm/include/llvm/Support/Allocator.h:352:58: error: 'E' does not name a type
  352 |                        SmallVectorImpl<void *>::iterator E) {
      |                                                          ^
/var/tmp/portage/dev-lang/rust-1.79.0/work/rustc-1.79.0-src/src/llvm-project/llvm/include/llvm/Support/Allocator.h: In destructor 'llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold, GrowthDelay>::~BumpPtrAllocatorImpl()':
/var/tmp/portage/dev-lang/rust-1.79.0/work/rustc-1.79.0-src/src/llvm-project/llvm/include/llvm/Support/Allocator.h:98:27: error: 'class llvm::SmallVector<void*, 4>' has no member named 'begin'
   98 |     DeallocateSlabs(Slabs.begin(), Slabs.end());
      |                           ^~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_hardened_systemd-20240801-090532

  UNMASKED:
    Please re-assign to toolchain@ if you get a test failure in C, C++, or Fortran code which makes no sense.
  <sys-devel/gcc-15.0.9999:15
    Requested by sam
  ~dev-libs/icu-75.1
  ~dev-libs/icu-layoutex-75.1

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang/llvm (if any):
clang version 18.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.8
Python 3.12.4
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.79.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.24_p8 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.12_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.422_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.5 linux/amd64

  HEAD of ::gentoo
commit 593ca61ea5438ce06895aeb0cfc04ccd561611dd
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Aug 7 06:36:19 2024 +0000

    Merge commit 'bbba9c645e3767933f8d769ab743fca8728487ab'

emerge -qpvO dev-lang/rust
[ebuild  N    ] dev-lang/rust-1.79.0  USE="(-big-endian) -clippy -debug -dist -doc (-llvm-libunwind) -lto (-miri) -nightly (-parallel-compiler) -profiler -rust-analyzer -rust-src -rustfmt -system-bootstrap -system-llvm -test -verify-sig -wasm" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARC -ARM -AVR -BPF -CSKY -DirectX -Hexagon -Lanai -LoongArch -M68k -MSP430 -Mips -NVPTX -PowerPC -RISCV -SPIRV -Sparc -SystemZ -VE -WebAssembly -XCore -Xtensa"
Comment 1 Toralf Förster gentoo-dev 2024-08-07 17:32:49 UTC
Created attachment 899397 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-08-07 17:32:50 UTC
Created attachment 899398 [details]
dev-lang:rust-1.79.0:20240807-071809.log.xz
Comment 3 Toralf Förster gentoo-dev 2024-08-07 17:32:52 UTC
Created attachment 899399 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2024-08-07 17:32:53 UTC
Created attachment 899400 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-08-07 17:32:54 UTC
Created attachment 899401 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-08-07 17:32:55 UTC
Created attachment 899402 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-08-07 17:32:55 UTC
Created attachment 899403 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-08-07 17:32:57 UTC
Created attachment 899404 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-08-07 17:32:58 UTC
Created attachment 899405 [details]
temp.tar.xz
Comment 10 matoro archtester 2024-08-07 18:08:09 UTC
Fixed by the wonderful sam already in https://github.com/llvm/llvm-project/pull/101761 , needs to be cherry-picked to rust fork.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-14 14:07:06 UTC
(In reply to matoro from comment #10)
> Fixed by the wonderful sam already in
> https://github.com/llvm/llvm-project/pull/101761 , needs to be cherry-picked
> to rust fork.

<3

Would you mind doing a PR to pull it in on our side to bundled llvm?
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-14 18:48:27 UTC
This needs all the patches from bug 937164.
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-01 08:24:33 UTC
(In reply to Sam James from comment #11)
> (In reply to matoro from comment #10)
> > Fixed by the wonderful sam already in
> > https://github.com/llvm/llvm-project/pull/101761 , needs to be cherry-picked
> > to rust fork.
> 
> <3
> 
> Would you mind doing a PR to pull it in on our side to bundled llvm?

ping
Comment 14 Larry the Git Cow gentoo-dev 2024-10-12 04:04:03 UTC
The bug has been closed via the following commit(s):

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

commit 867d488d1eedef28864dc3f773e020dac36979b4
Author:     Matoro Mahri <matoro_gentoo@matoro.tk>
AuthorDate: 2024-10-11 22:51:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-10-12 04:03:13 +0000

    dev-lang/rust: backport llvm patches for gcc-15
    
    No revbump since this is build-only.
    
    Bug: https://bugs.gentoo.org/937164
    Closes: https://bugs.gentoo.org/937525
    Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
    Closes: https://github.com/gentoo/gentoo/pull/38947
    Signed-off-by: Sam James <sam@gentoo.org>

 .../rust/files/1.81.0-backport-bug937164.patch     | 15 +++++++++++
 .../rust/files/1.81.0-backport-llvm-pr101761.patch | 30 ++++++++++++++++++++++
 .../rust/files/1.81.0-backport-llvm-pr101766.patch | 29 +++++++++++++++++++++
 dev-lang/rust/rust-1.81.0.ebuild                   |  3 +++
 4 files changed, 77 insertions(+)
Comment 15 Kostadin Shishmanov 2025-03-14 20:17:24 UTC
*** Bug 939661 has been marked as a duplicate of this bug. ***
Comment 16 Kostadin Shishmanov 2025-03-14 20:17:34 UTC
*** Bug 939509 has been marked as a duplicate of this bug. ***