Stream: t-compiler

Topic: can't compile rustc


gnzlbg (Dec 13 2018 at 10:34, on Zulip):

i've been trying to do a ./x.py build --stage 1 of rustc since yesterday morning without any luck
when building rustc_codegen_llvm the llvm-dsymutil is invoked, and that freezes my computer and I have to reboot

pnkfelix (Dec 13 2018 at 10:44, on Zulip):

what platform? Linux? If so, which distribution?

gnzlbg (Dec 13 2018 at 10:59, on Zulip):

MacOSX 10.14 mojave

gnzlbg (Dec 13 2018 at 11:01, on Zulip):

I've tried it again with the activity monitor open and it appears that llvm-dsymutil makes kernel_task consume all resources and freeze.

gnzlbg (Dec 13 2018 at 11:01, on Zulip):

the freeze happens so fast that the activity monitor never refreshes, so its hard to tell what's actually going on - I can't see memory consumption or CPU usage

gnzlbg (Dec 13 2018 at 11:02, on Zulip):

I can try straceing what happens, but I need to look up how to do that on OSX

gnzlbg (Dec 13 2018 at 11:05, on Zulip):

let me try that - brb after my computer crashes

gnzlbg (Dec 13 2018 at 11:19, on Zulip):

weird so I left my computer frozen, went grab a coffee, and now its not frozen anymore :/

gnzlbg (Dec 13 2018 at 11:22, on Zulip):

i wonder if opening xcode right before, which installed something, fixed the issue, or whether piping the system logs to a file did

nagisa (Dec 13 2018 at 11:32, on Zulip):

if it makes kernel spin up that’s a kernel bug

nagisa (Dec 13 2018 at 11:32, on Zulip):

do report it to Apple

nagisa (Dec 13 2018 at 11:33, on Zulip):

I bet it’ll have something to do with APFS

pnkfelix (Dec 13 2018 at 11:55, on Zulip):

i have a mojave system at home

pnkfelix (Dec 13 2018 at 11:55, on Zulip):

so I'll also try to reproduce this tonight

pnkfelix (Dec 13 2018 at 11:56, on Zulip):

BTW @gnzlbg i think the strace equivalent on "OS X" is dtruss

gnzlbg (Dec 13 2018 at 11:57, on Zulip):

so dtruss doesn't work in mjoave anymore - one has to use log stream

pnkfelix (Dec 13 2018 at 11:57, on Zulip):

:scared:

gnzlbg (Dec 13 2018 at 11:57, on Zulip):

i collected a log, but everything worked out fine this time =/ I have tried it 6 times since yesterday midday, and they all froze the computer

gnzlbg (Dec 13 2018 at 11:57, on Zulip):

for like > 15 min till i rebooted

gnzlbg (Dec 13 2018 at 11:58, on Zulip):

the only different things i did this time was 1) opening xcode before, which installed something, and 2) collect a log

pnkfelix (Dec 13 2018 at 11:58, on Zulip):

/me wonders if he should go back to the previous "OS X" version

gnzlbg (Dec 13 2018 at 11:59, on Zulip):

dtruss was never properly supported =/ you can use Instruments if you need more info that what log provides

gnzlbg (Dec 13 2018 at 11:59, on Zulip):

but I don't know how to use instruments for that =/

gnzlbg (Dec 13 2018 at 12:19, on Zulip):

So everything froze again but now I’m not collecting logs

pnkfelix (Dec 13 2018 at 12:20, on Zulip):

clearly your only choice is to always collect logs just to avoid Schrodinger's Cat freezing

gnzlbg (Dec 13 2018 at 12:22, on Zulip):

I’m going to wait

gnzlbg (Dec 13 2018 at 12:22, on Zulip):

But it’s rustc_codegen_llvm again

gnzlbg (Dec 13 2018 at 12:22, on Zulip):

Maybe 8Gb of Ram isn’t enough?

gnzlbg (Dec 13 2018 at 13:03, on Zulip):

So it’s been compiling for 40 minutes now but I managed to start dumping logs after the first 20

gnzlbg (Dec 13 2018 at 13:03, on Zulip):

-

gnzlbg (Dec 13 2018 at 13:03, on Zulip):

-

gnzlbg (Dec 13 2018 at 13:03, on Zulip):

The computer isn’t fully frozen, but almost

gnzlbg (Dec 13 2018 at 13:48, on Zulip):

So I was able to collect a better log and it appears that memory pressure is the reason

gnzlbg (Dec 13 2018 at 13:48, on Zulip):

So I was able to get a better log and it appears that memory pressure is the issue

gnzlbg (Dec 13 2018 at 13:49, on Zulip):

When dsymutil starts, the kernel starts killing processes like crazy, that’s probably the oom killer at work

gnzlbg (Dec 13 2018 at 13:52, on Zulip):

thats the log: https://gist.github.com/gnzlbg/c12a5b606e09cd105599ac0d0882bd32

gnzlbg (Dec 13 2018 at 13:53, on Zulip):

There are many:

kernel: memorystatus: killing_idle_process ...

After llvm-dsymutil starts executing.

Last update: Nov 22 2019 at 04:45UTC