Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627308 - emerge dev-lang/rust-1.19.0 fails when dev-lang/ocaml is also installed
Summary: emerge dev-lang/rust-1.19.0 fails when dev-lang/ocaml is also installed
Status: RESOLVED OBSOLETE
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: 2017-08-08 12:04 UTC by redneb
Modified: 2018-06-06 08:58 UTC (History)
8 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description redneb 2017-08-08 12:04:42 UTC
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
 * --------------------------------------------------------------------------------
Comment 1 njharris 2017-08-08 22:24:04 UTC
I had the same issue.  I unmerged dev-lang/ocaml, then emerged rust successfully.   Ocaml emerged with no problem afterward.
Comment 2 Scott Turner 2017-08-14 12:33:12 UTC
I had the same issue.  I unmerged dev-lang/ocaml, then emerged rust successfully.   Ocaml emerged with no problem afterward.
Comment 3 Chicago 2017-10-06 05:06:00 UTC
Same issue here -- uninstalling ocaml, allows rust to build and then ocaml can be emerged again afterwards.
Comment 4 Dirkjan Ochtman (RETIRED) gentoo-dev 2018-06-06 08:58:25 UTC
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.