I tried to install dev-lang/rust-1.19.0 but it failed in the compile phase with the followign error quoted bellow. I suspect that this has to do with the fact that when the bundled version of llvm is compiled, it detects the presence of dev-lang/ocaml and tries to build support for it. If I remove dev-lang/ocaml temporarily, dev-lang/rust builds just fine. -- Installing: /var/tmp/portage/dev-lang/rust-1.19.0/work/rustc-1.19.0-src/build/x86_64-unknown-linux-gnu/llvm/lib/libLLVMProfileData.a -- Installing: /var/tmp/portage/dev-lang/rust-1.19.0/work/rustc-1.19.0-src/build/x86_64-unknown-linux-gnu/llvm/lib/libLLVMCoverage.a -- Installing: /var/tmp/portage/dev-lang/rust-1.19.0/work/rustc-1.19.0-src/build/x86_64-unknown-linux-gnu/llvm/lib/libLLVMPasses.a -- Installing: /var/tmp/portage/dev-lang/rust-1.19.0/work/rustc-1.19.0-src/build/x86_64-unknown-linux-gnu/llvm/lib/libLLVMLibDriver.a -- Installing: /var/tmp/portage/dev-lang/rust-1.19.0/work/rustc-1.19.0-src/build/x86_64-unknown-linux-gnu/llvm/lib/libLLVMXRay.a -- Installing: /usr/lib64/ocaml/llvm/llvm.mli * ACCESS DENIED: unlink: /usr/lib64/ocaml/llvm/llvm.mli * ACCESS DENIED: fopen_wr: /usr/lib64/ocaml/llvm/llvm.mli CMake Error at bindings/ocaml/llvm/cmake_install.cmake:44 (file): file INSTALL cannot copy file "/var/tmp/portage/dev-lang/rust-1.19.0/work/rustc-1.19.0-src/build/x86_64-unknown-linux-gnu/llvm/build/bindings/ocaml/llvm/llvm.mli" to "/usr/lib64/ocaml/llvm/llvm.mli". Call Stack (most recent call first): bindings/ocaml/cmake_install.cmake:37 (include) cmake_install.cmake:60 (include) gmake: *** [Makefile:138: install] Error 1 thread 'main' panicked at ' command did not execute successfully, got: exit code: 2 build script failed, must exit now', src/vendor/cmake/src/lib.rs:631 note: Run with `RUST_BACKTRACE=1` for a backtrace. finished in 2854.061 failed to run: /var/tmp/portage/dev-lang/rust-1.19.0/work/rustc-1.19.0-src/build/bootstrap/debug/bootstrap build Build completed unsuccessfully in 0:49:23 * ERROR: dev-lang/rust-1.19.0::gentoo failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 115: Called src_compile * environment, line 3135: Called die * The specific snippet of code: * ${EPYTHON} x.py build || die * * If you need support, post the output of `emerge --info '=dev-lang/rust-1.19.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-lang/rust-1.19.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-lang/rust-1.19.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/rust-1.19.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-lang/rust-1.19.0/work/rustc-1.19.0-src' * S: '/var/tmp/portage/dev-lang/rust-1.19.0/work/rustc-1.19.0-src' * --------------------------- ACCESS VIOLATION SUMMARY --------------------------- * LOG FILE: "/var/log/sandbox/sandbox-15917.log" * VERSION 1.0 FORMAT: F - Function called FORMAT: S - Access Status FORMAT: P - Path as passed to function FORMAT: A - Absolute Path (not canonical) FORMAT: R - Canonical Path FORMAT: C - Command Line F: unlink S: deny P: /usr/lib64/ocaml/llvm/llvm.mli A: /usr/lib64/ocaml/llvm/llvm.mli R: /usr/lib64/ocaml/llvm/llvm.mli C: /usr/bin/cmake -P cmake_install.cmake F: fopen_wr S: deny P: /usr/lib64/ocaml/llvm/llvm.mli A: /usr/lib64/ocaml/llvm/llvm.mli R: /usr/lib64/ocaml/llvm/llvm.mli C: /usr/bin/cmake -P cmake_install.cmake * --------------------------------------------------------------------------------
I had the same issue. I unmerged dev-lang/ocaml, then emerged rust successfully. Ocaml emerged with no problem afterward.
Same issue here -- uninstalling ocaml, allows rust to build and then ocaml can be emerged again afterwards.
Similar issues: bug 626090, bug 645836. Since these only appeared to have occurred with rust-1.19.0, I'm just going to close this for now. Please reopen if this issue still occurs.