Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 677406 - dev-lang/rust-1.32.0 - error: Could not compile `rustc_driver`.
Summary: dev-lang/rust-1.32.0 - error: Could not compile `rustc_driver`.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-07 07:23 UTC by Dmitry Grigoriev
Modified: 2019-02-08 20:01 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge-info.log,6.12 KB, text/plain)
2019-02-07 07:23 UTC, Dmitry Grigoriev
Details
/var/tmp/portage/dev-lang/rust-1.32.0/temp/build.log (build.log,19.30 KB, text/plain)
2019-02-07 07:24 UTC, Dmitry Grigoriev
Details
build.log with 'export RUST....' (build.log.2,17.40 KB, text/plain)
2019-02-08 01:46 UTC, Dmitry Grigoriev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Grigoriev 2019-02-07 07:23:55 UTC
Created attachment 564034 [details]
emerge --info

Had to unmask it to build firefox-65.0. Using libressl 2.6.5 (but everything is instelled from main repo except nodejs and qtnetwork are installed from libressl overlay). Attaching build.log and emerge-info.log.
Comment 1 Dmitry Grigoriev 2019-02-07 07:24:58 UTC
Created attachment 564036 [details]
/var/tmp/portage/dev-lang/rust-1.32.0/temp/build.log
Comment 2 Dmitry Grigoriev 2019-02-07 11:53:31 UTC
No detailed compilation logs, so cannot tell for usre, but this may be my hardware issue (segfault; I've got early buggy Ryzen7): some attempts resulted in compilation failures on different modules (not rustc_driver), until (N+1)th attempt finally succeeded.
Comment 3 Georgy Yakovlev archtester gentoo-dev 2019-02-07 19:27:26 UTC
Hi,

can you try reproducing again? but before the emerge/ebuild please export this:

export RUSTFLAGS="-v" RUST_BACKTRACE=1

this should provide a bit more detail, current log is useless.

it's such a pain to use those buggy Ryzens with gentoo, do you also see segfaults in gcc from time to time?
Comment 4 Dmitry Grigoriev 2019-02-08 01:18:37 UTC
> can you try reproducing again? but before the emerge/ebuild please export
> this:
> 
> export RUSTFLAGS="-v" RUST_BACKTRACE=1

Build.log is still short, even if I put this into ebuild's src_compile().

> it's such a pain to use those buggy Ryzens with gentoo, do you also see
> segfaults in gcc from time to time?

Yep, but with ccache, sequence of build runs is always convergent, haha. :)))
Comment 5 Dmitry Grigoriev 2019-02-08 01:46:04 UTC
Created attachment 564168 [details]
build.log with 'export RUST....'
Comment 6 Georgy Yakovlev archtester gentoo-dev 2019-02-08 20:01:40 UTC
probably something in the build system unsets it...

different crate again.
you already know it, it's your cpu.

the only thing I can suggest (aside from trying to RMA that Ryzen) is check out dev-util/sccache. I've recently added it to gentoo and it can work as ccache/distcc for rust. But it can do more harm that do good, so use with care. If a miscompiled crate gets into cache breakage will spread like cancer across all the rust packages using that crate.

Closing, feel free to reopen if you find it's not the faulty cpu to blame.