Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910267 - www-apps/nextcloud-notify_push-0.6.3 - rustc: .../InstructionPrecedenceTracking.cpp:97: void llvm::InstructionPrecedenceTracking::
Summary: www-apps/nextcloud-notify_push-0.6.3 - rustc: .../InstructionPrecedenceTracki...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fischl Anton
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-12 16:16 UTC by Toralf Förster
Modified: 2023-12-10 07:06 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.29 KB, text/plain)
2023-07-12 16:16 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,190.15 KB, text/plain)
2023-07-12 16:16 UTC, Toralf Förster
Details
environment (environment,134.35 KB, text/plain)
2023-07-12 16:16 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,784 bytes, application/x-xz)
2023-07-12 16:16 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,16.36 KB, application/x-xz)
2023-07-12 16:17 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,46.63 KB, application/x-xz)
2023-07-12 16:17 UTC, Toralf Förster
Details
www-apps:nextcloud-notify_push-0.6.3:20230712-011038.log.xz (www-apps:nextcloud-notify_push-0.6.3:20230712-011038.log.xz,25.77 KB, application/x-xz)
2023-07-12 16:17 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 2023-07-12 16:16:55 UTC
too long lines were shrinked:

   Compiling sqlx v0.6.3
     Running `rustc --crate-name sqlx --edition=2021 /var/tmp/portage/www-apps/nextcloud-notify_push-0.6.3/work/cargo_home/gentoo/sqlx-0.6.3/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linke
   Compiling nextcloud-config-parser v0.8.0
     Running `rustc --crate-name nextcloud_config_parser --edition=2021 /var/tmp/portage/www-apps/nextcloud-notify_push-0.6.3/work/cargo_home/gentoo/nextcloud-config-parser-0.8.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info
     Running `rustc --crate-name notify_push --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linker-plugin-lto -C metadata=87da64a97ac230fa -C extra-filename=-87da64a97ac230fa --o
     Running `rustc --crate-name notify_push --edition=2018 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C opt-level=3 -C lto -C metadata=9613527311e891a5 -C extra-filename=-9613527311e891a5 --out-dir /var/tmp/portag
rustc: /var/tmp/portage/dev-lang/rust-1.70.0/work/rustc-1.70.0-src/src/llvm-project/llvm/lib/Analysis/InstructionPrecedenceTracking.cpp:97: void llvm::InstructionPrecedenceTracking::validate(const llvm::BasicBlock*) const: Assertion `It->second == nullptr && "Block is marked as having special instru
error: could not compile `notify_push` (bin "notify_push")


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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_plasma_systemd-20230708-142608

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 16.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.6
Python 3.11.4
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.70.0 *
The following VMs are available for generation-2:
1)	OpenJDK 17.0.7_p7 [openjdk-17]
2)	OpenJDK 8.372_p07 [openjdk-8]
*)	Eclipse Temurin JDK 17.0.7_p7 [openjdk-bin-17]
4)	Eclipse Temurin JDK 8.372_p07 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-8 
  [2]   openjdk-17 
  [3]   openjdk-bin-8 
  [4]   openjdk-bin-17  system-vm

php cli (if any):
go version go1.20.5 linux/amd64

  HEAD of ::gentoo
commit 0c6d698008a7270950079043f584b9476c474e7e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Jul 12 00:01:55 2023 +0000

    2023-07-12 00:01:55 UTC

emerge -qpvO www-apps/nextcloud-notify_push
[ebuild  N    ] www-apps/nextcloud-notify_push-0.6.3  USE="-debug"
Comment 1 Toralf Förster gentoo-dev 2023-07-12 16:16:56 UTC
Created attachment 865420 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-07-12 16:16:57 UTC
Created attachment 865421 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-07-12 16:16:58 UTC
Created attachment 865422 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-07-12 16:16:59 UTC
Created attachment 865423 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-07-12 16:17:00 UTC
Created attachment 865424 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-07-12 16:17:01 UTC
Created attachment 865425 [details]
temp.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-07-12 16:17:02 UTC
Created attachment 865426 [details]
www-apps:nextcloud-notify_push-0.6.3:20230712-011038.log.xz
Comment 8 Austin Morgan 2023-10-05 12:06:55 UTC
I have the same issue. rust 1.71.1
Comment 9 Fischl Anton 2023-11-30 20:43:15 UTC
(In reply to Austin Morgan from comment #8)
> I have the same issue. rust 1.71.1

I think I'm missing something here.

I can't reproduce this bug with either dev-lang/rust-bin-1.71.1 or dev-lang/rust-bin-1.70.0-r3

Does this bug still exist?

Upstream bug: https://github.com/nextcloud/notify_push/issues/344
but no reaction there, at this time
Comment 10 Francesco Riosa 2023-12-07 22:26:34 UTC
I can confirm this on
[ebuild   R    ] dev-lang/rust-1.71.1:stable/1.71::gentoo  USE="lto (-big-endian) -clippy -debug -dist -doc (-llvm-libunwind) (-miri) (-nightly) (-parallel-compiler) (-profiler) -rust-analyzer -rust-src -rustfmt (-system-bootstrap) (-system-llvm) -test -verify-sig -wasm" CPU_FLAGS_X86="sse2" LLVM_TARGETS="AArch64 AMDGPU ARM BPF NVPTX WebAssembly (X86) -AVR -Hexagon -Lanai -LoongArch -MSP430 -Mips -PowerPC -RISCV -Sparc -SystemZ -VE -XCore" 0 KiB


void llvm::InstructionPrecedenceTracking::validate(const llvm::BasicBlock*) const: Assertion `It->second == nullptr && "Block is marked as having special instructions but in fact it  has " "none!"' failed.
error: could not compile `notify_push` (bin "notify_push")

Caused by:
  process didn't exit successfully: `rustc --crate-name notify_push --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C opt-level=3 -C lto -C metadata=a5ae5305e421d79e -C extra-filename=-a5ae5305e421d79e --out-dir /var/tmp/portage/www-apps/nextcloud-notify_push-0.6.5/work/notify_push-0.6.5/target/release/deps -L dependency=/var/tmp/portage/www-apps/nextcloud-notify_push-0.6.5/work/notify_push-0.6.5/target/release/deps --extern ahash=/var/tmp/portage/www-apps/nextcloud-notify_push-0.6.5/work/notify_push-0.6.5/target/release/deps/libahash-a392f608f7defb76.rlib --extern dashmap=/var/tmp/portage/www-apps/nextcloud-notify_push-0.6.5/work/notify_push-0.6.5/target/release/deps/libdashmap-c94394b1577b9162.rlib --extern derivative=/var/tmp/portage/www-apps/nextcloud-notify_push-0.6.5/work/notify_push-0.6.5/target/release/deps/libderivative-caf11e67ec3c8d3b.so --extern dotenv=/var/tmp/portage/www-apps/nextcloud-notify_push-0.6.5/work/notify_push-0.6.5/target/release/deps/libdotenv-21e2e2aa0a7ebb74.rlib --extern flexi_logger=/var/tmp/portage/www-apps/nextcloud-notify_push-0.6.5/work/notify_push-0.6.5/target/release/deps/libflexi_logger-a0da3673c62f30d6.rlib --extern futures=/var/tmp/portage/www-apps/nextcloud-notify_push-0.6.5/work/notify_push-0.6.5/target/release/deps/libfutures-7dae696379fb6356.rlib --extern log=/var/tmp/portage/www-apps/nextcloud-notify_push-0.6.5/work/notify_push-0.6.5/target/release/deps/liblog-c09982cab0ddc0ae.rlib --extern miette=/var/tmp/portage/www-apps/nextcloud-notify_push-0.6.5/work/notify_push-0.6.5/target/release/deps/libmiette-fef2dc5c4b52e5ca.rlib --extern nextcloud_config_parser=/var/tmp/portage/www-apps/nextcloud-notify_push-0.6.5/work/notify_push-0.6.5/target/release/deps/libnextcloud_config_parser-e9d99c5ec53616c0.rlib --extern notify_push=/var/tmp/portage/www-apps/nextcloud-notify_push-0.6.5/work/notify_push-0.6.5/target/release/deps/libnotify_push-fbddcb6ff674e6ac.rlib --extern once_cell=/var/tmp/portage/www-apps/nextcloud-notify_push-0.6.5/work/notify_push-0.6.5/target/release/deps/libonce_cell-357a5ad99d552c9d.rlib --extern parse_display=/var/tmp/portage/www-apps/nextcloud-notify_push-0.6.5/work/notify_push-0.6.5/target/release/deps/libparse_display-aa149c13679800c4.rlib --extern percent_encoding=/var/tmp/portage/www-apps/nextcloud-notify_push-0.6.5/work/notify_push-0.6.5/target/release/deps/libpercent_encoding-ce8e86df4a818f6c.rlib --extern rand=/var/tmp/portage/www-apps/nextcloud-notify_push
Comment 11 Fischl Anton 2023-12-09 06:08:28 UTC
Thank you, now I know what I have been missing all this time.

Error seems to be reproducable with dev-lang/rust but NOT with dev-lang/rust-bin
Comment 12 Fischl Anton 2023-12-10 07:06:06 UTC
after much testing (based on gentoo/stage3:amd64-desktop-systemd docker image), I found the following:

dev-lang/rust-bin-1.69.0-r1: compiles fine
dev-lang/rust-bin-1.71.0: compiles fine
dev-lang/rust-bin-1.72.0: compiles fine
dev-lang/rust-bin-1.73.0: compiles fine
dev-lang/rust-1.71.1 + sys-devel/llvm:16: doesn't compile
dev-lang/rust-1.73.0 + sys-devel/llvm:17: compiles fine
dev-lang/rust-1.74.1 + sys-devel/llvm:17: compiles fine

I conclude that this error is probable something about sys-devel/llvm:16 and/or dev-lang/rust-1.71.1
Workaround would be to either use dev-lang/rust-bin or use unstable sys-devel/llvm + dev-lang/rust

This bug should therefor "fix itself" as soon as sys-devel/llvm:17 and >=dev-lang/rust-1.73.0 is marked stable

Thanks to @pastalian on #gentoo-proxy-maint for pointing me towards llvm