Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 847421 - dev-lang/rust-1.61.0{,-bin}: SIGFPE building sys-apps/exa-0.10.1
Summary: dev-lang/rust-1.61.0{,-bin}: SIGFPE building sys-apps/exa-0.10.1
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Rust Project
URL: https://github.com/rust-lang/rust/iss...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-25 08:45 UTC by Toralf Förster
Modified: 2024-10-16 17:34 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.81 KB, text/plain)
2022-05-25 08:45 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,62.34 KB, application/x-bzip)
2022-05-25 08:45 UTC, Toralf Förster
Details
environment (environment,74.53 KB, text/plain)
2022-05-25 08:46 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,20.12 KB, application/x-bzip)
2022-05-25 08:46 UTC, Toralf Förster
Details
sys-apps:exa-0.10.1:20220525-035531.log (sys-apps:exa-0.10.1:20220525-035531.log,45.99 KB, text/plain)
2022-05-25 08:46 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,22.28 KB, application/x-bzip)
2022-05-25 08:46 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 2022-05-25 08:45:56 UTC
too long lines were shrinked:

     Running `rustc --crate-name libgit2_sys --edition=2018 /var/tmp/portage/sys-apps/exa-0.10.1/work/cargo_home/gentoo/libgit2-sys-0.12.18+1.1.0/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 link
   Compiling git2 v0.13.17
     Running `rustc --crate-name git2 --edition=2018 /var/tmp/portage/sys-apps/exa-0.10.1/work/cargo_home/gentoo/git2-0.13.17/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
     Running `rustc --crate-name exa --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 --cfg 'feature="default"' --cfg 'feature="git"' --cfg 'feature="git2"' -C metadata=1e76e6d469ed490
error: could not compile `exa`

Caused by:

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-j4-20220522-050006

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.1.1 *
clang/llvm (if any):
/usr/lib/llvm/14
14.0.3
Python 3.9.13
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.61.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.15_p10 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.332_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php8.1 *

  HEAD of ::gentoo
commit 49c4b761a8b37d35b024092443553b79eee35fef
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed May 25 01:17:58 2022 +0000

    2022-05-25 01:17:58 UTC

emerge -qpvO sys-apps/exa
[ebuild  N    ] sys-apps/exa-0.10.1  USE="git -debug (-man)"
Comment 1 Toralf Förster gentoo-dev 2022-05-25 08:45:57 UTC
Created attachment 780719 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-05-25 08:45:58 UTC
Created attachment 780722 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-05-25 08:46:00 UTC
Created attachment 780725 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-05-25 08:46:01 UTC
Created attachment 780728 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-05-25 08:46:02 UTC
Created attachment 780731 [details]
sys-apps:exa-0.10.1:20220525-035531.log
Comment 6 Toralf Förster gentoo-dev 2022-05-25 08:46:03 UTC
Created attachment 780734 [details]
temp.tar.bz2
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-25 08:50:19 UTC
native=/usr/lib64`
error: could not compile `exa`

Caused by:
  process didn't exit successfully: `rustc --crate-name exa --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 --cfg 'feature="default"' --cfg 'feature="git"' --cfg 'feature="git2"' -C metadata=1e76e6d469ed4908 -C extra-filename=-1e76e6d469ed4908 --out-dir /var/tmp/portage/sys-apps/exa-0.10.1/work/exa-0.10.1/target/release/deps -L dependency=/var/tmp/portage/sys-apps/exa-0.10.1/work/exa-0.10.1/target/release/deps --extern ansi_term=/var/tmp/portage/sys-apps/exa-0.10.1/work/exa-0.10.1/target/release/deps/libansi_term-7a2f5b24394af86a.rlib --extern datetime=/var/tmp/portage/sys-apps/exa-0.10.1/work/exa-0.10.1/target/release/deps/libdatetime-1f6fb032ed0b2419.rlib --extern git2=/var/tmp/portage/sys-apps/exa-0.10.1/work/exa-0.10.1/target/release/deps/libgit2-102f63166683ea5e.rlib --extern glob=/var/tmp/portage/sys-apps/exa-0.10.1/work/exa-0.10.1/target/release/deps/libglob-023a5ddb3e769dc1.rlib --extern lazy_static=/var/tmp/portage/sys-apps/exa-0.10.1/work/exa-0.10.1/target/release/deps/liblazy_static-d41ca21dec8b0771.rlib --extern libc=/var/tmp/portage/sys-apps/exa-0.10.1/work/exa-0.10.1/target/release/deps/liblibc-d81602184783f4f2.rlib --extern locale=/var/tmp/portage/sys-apps/exa-0.10.1/work/exa-0.10.1/target/release/deps/liblocale-f31e295436a9ba78.rlib --extern log=/var/tmp/portage/sys-apps/exa-0.10.1/work/exa-0.10.1/target/release/deps/liblog-b62690a7783e06dc.rlib --extern natord=/var/tmp/portage/sys-apps/exa-0.10.1/work/exa-0.10.1/target/release/deps/libnatord-f4d9ddd248c87024.rlib --extern num_cpus=/var/tmp/portage/sys-apps/exa-0.10.1/work/exa-0.10.1/target/release/deps/libnum_cpus-0feefb6f591d9ae0.rlib --extern number_prefix=/var/tmp/portage/sys-apps/exa-0.10.1/work/exa-0.10.1/target/release/deps/libnumber_prefix-7efb1d77d0543926.rlib --extern scoped_threadpool=/var/tmp/portage/sys-apps/exa-0.10.1/work/exa-0.10.1/target/release/deps/libscoped_threadpool-a2cf35eaa1a14f8a.rlib --extern term_grid=/var/tmp/portage/sys-apps/exa-0.10.1/work/exa-0.10.1/target/release/deps/libterm_grid-d7e0903e0fb0e245.rlib --extern term_size=/var/tmp/portage/sys-apps/exa-0.10.1/work/exa-0.10.1/target/release/deps/libterm_size-39cfa6bf25f53e62.rlib --extern unicode_width=/var/tmp/portage/sys-apps/exa-0.10.1/work/exa-0.10.1/target/release/deps/libunicode_width-b549f562942988f0.rlib --extern users=/var/tmp/portage/sys-apps/exa-0.10.1/work/exa-0.10.1/target/release/deps/libusers-c7c23f441e82dfa0.rlib --extern zoneinfo_compiled=/var/tmp/portage/sys-apps/exa-0.10.1/work/exa-0.10.1/target/release/deps/libzoneinfo_compiled-c71d37f63434af93.rlib -Ctarget-cpu=native -v -L native=/usr/lib64` (signal: 8, SIGFPE: erroneous arithmetic operation)
 * ERROR: sys-apps/exa-0.10.1::gentoo failed (compile phase):
 *   cargo build failed

???
Comment 8 Toralf Förster gentoo-dev 2022-05-25 08:54:05 UTC
or related to bug 675890 ?
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-25 17:22:07 UTC
(In reply to Toralf Förster from comment #8)
> or related to bug 675890 ?

No, reproduced just now, but good thinking!
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-25 17:30:39 UTC
Ah, it's Rust 1.61! https://github.com/ogham/exa/issues/1068
Comment 11 Georgy Yakovlev archtester gentoo-dev 2022-05-25 17:58:15 UTC
can you try building it with USE=-git ? 

I can't repro on ppc64 and I don't have amd64 machine with rust-1.61.0 yet and unlikely to have soon.
Comment 12 Larry the Git Cow gentoo-dev 2022-05-25 21:09:47 UTC
The bug has been referenced in the following commit(s):

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

commit 3b7815004b8f2952c642c81bbfb37cd7945e6cc3
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2022-05-25 20:08:49 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2022-05-25 21:09:32 +0000

    dev-lang/rust: add llvm patches to 1.61.0 to fix SIGFPE
    
    Bug: https://bugs.gentoo.org/847421
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 .../rust/files/1.61.0-llvm_addrspacecast.patch     | 52 +++++++++++++++++
 .../files/1.61.0-llvm_selectInterleaveCount.patch  | 66 ++++++++++++++++++++++
 .../{rust-1.61.0.ebuild => rust-1.61.0-r1.ebuild}  |  2 +
 3 files changed, 120 insertions(+)
Comment 13 Georgy Yakovlev archtester gentoo-dev 2022-05-25 21:18:33 UTC
source  version patched, unfortunately -bin is still affected.

let's see how upstream reacts, I asked for 1.61.1 with llvm fixes.