tags 884775 + unreproducible notabug close 884775 thanks I suspect the original issue was caused by having a non-standard "ld" in your $PATH - specifically, I suspect it was the guix ld-wrapper[1]. (Or perhaps a non-standard "cc" that in turn uses this guix ld)
The reply to your stack overflow question[2] suggests that GUIX_LD_WRAPPER_ALLOW_IMPURITIES=y should disable this assertion in ld-wrapper. .. Or of course fiddling with $PATH such that you return to using the standard Debian gcc/binutils binaries. If any of that sounds incorrect, please reopen this bug. [1] https://github.com/drewc/guix/blob/d34c0ac6e9c669702bc4957faa5ee51f2b9465c3/gnu/packages/ld-wrapper.scm#L142 [2] https://stackoverflow.com/questions/47737761/rust-on-debian-9-2-error-due-to-impure-library - Gus