You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing linker symbols with incremental build #61917
= note: buck-out/dev/gen/scm/mononoke/mononoke_types/mononoke_types-unittest#binary,unittest/mononoke_types_unittest-3fe649e44bd0ade8.42tcmeh8woei6igl.rcgu.o:42tcmeh8woei6igl:function mononoke_types_unittest::hash::Sha256::from_bytes: error: undefined reference to '<T as core::convert::Into<U>>::into'
buck-out/dev/gen/scm/mononoke/mononoke_types/mononoke_types-unittest#binary,unittest/mononoke_types_unittest-3fe649e44bd0ade8.42tcmeh8woei6igl.rcgu.o:42tcmeh8woei6igl:function mononoke_types_unittest::hash::Sha1::from_bytes: error: undefined reference to '<T as core::convert::Into<U>>::into'
clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
I have no idea how to get a small repro for this, but:
This is a Buck build, rather than cargo
It only happens with incremental builds. If I either remove the incremental DB or disable incremental builds, it works
It only happens at opt-level=1; opt-level=0 and opt-level=3 are fine
It goes away if I make small code changes, but it doesn't seem to matter what (which says incremental)
Changing codegen-units doesn't affect anything.
This might be a dup of #45929, but I'm not sure what.
Ugh, and now I can't repro it again. This, or something like it, has been showing up every week or so, so I'll update the next time I hit it.
Yeah this has popped up quite a few times. Nominating to prioritize and maybe get to the bottom of these problems. I've also got a reliable reproduction of this in #59535.
Cargo recently had a user report something similar (rust-lang/cargo#7015) where disabling incremental solved the problem. I wasn't able to ever repro it myself, though. I'm not sure if T-compiler wants more examples or information, or if the general problem is understood.
Activity
jonas-schievink commentedon Jun 17, 2019
Yeah this has popped up quite a few times. Nominating to prioritize and maybe get to the bottom of these problems. I've also got a reliable reproduction of this in #59535.
ehuss commentedon Jun 18, 2019
Cargo recently had a user report something similar (rust-lang/cargo#7015) where disabling incremental solved the problem. I wasn't able to ever repro it myself, though. I'm not sure if T-compiler wants more examples or information, or if the general problem is understood.
dtolnay commentedon Jun 19, 2019
Closing in favor of #59535 which has a reliable repro based on Cargo. I transferred the nomination.