Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 626160 - dev-lang/rust-1.19.0 : CMake Error at bindings/.../cmake_install.cmake:44 (file):
Summary: dev-lang/rust-1.19.0 : CMake Error at bindings/.../cmake_install.cmake:44 (fi...
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-07-25 19:08 UTC by Toralf Förster
Modified: 2018-06-06 09:14 UTC (History)
5 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.58 KB, text/plain)
2017-07-25 19:08 UTC, Toralf Förster
Details
dev-lang:rust-1.19.0:20170724-210910.log (dev-lang:rust-1.19.0:20170724-210910.log,398.12 KB, text/plain)
2017-07-25 19:08 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,339.25 KB, text/plain)
2017-07-25 19:08 UTC, Toralf Förster
Details
environment (environment,123.28 KB, text/plain)
2017-07-25 19:08 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,25.13 KB, application/x-bzip)
2017-07-25 19:08 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,24.47 KB, application/x-bzip)
2017-07-25 19:08 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,53.85 KB, application/x-bzip)
2017-07-25 19:08 UTC, Toralf Förster
Details
rust-1.19.0-config-ix.cmake-llvm_ocaml_bindings.patch (rust-1.19.0-config-ix.cmake-llvm_ocaml_bindings.patch,613 bytes, patch)
2017-12-14 22:13 UTC, Iván Escrivá
Details | Diff
rust-1.19.0-config-ix.cmake-no_llvm_ocaml_bindings.patch (rust-1.19.0-config-ix.cmake-no_llvm_ocaml_bindings.patch,1.21 KB, patch)
2017-12-14 22:15 UTC, Iván Escrivá
Details | Diff
rust-1.19.0-r1.ebuild (rust-1.19.0-r1.ebuild,4.52 KB, text/plain)
2017-12-14 22:19 UTC, Iván Escrivá
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-07-25 19:08:16 UTC
-- 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
CMake Error at bindings/ocaml/llvm/cmake_install.cmake:44 (file):
  file cannot create directory: /usr/lib64/ocaml/llvm.  Maybe need
  administrative privileges.
Call Stack (most recent call first):

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0_20170716-131855

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.6 (fallback)
  [3]   python3.5 (fallback)
  [4]   python2.7 (fallback)
  [5]   pypy3 (fallback)
  [6]   pypy (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
  [2]   ruby22 (with Rubygems)
Comment 1 Toralf Förster gentoo-dev 2017-07-25 19:08:19 UTC
Created attachment 486818 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-07-25 19:08:23 UTC
Created attachment 486820 [details]
dev-lang:rust-1.19.0:20170724-210910.log
Comment 3 Toralf Förster gentoo-dev 2017-07-25 19:08:26 UTC
Created attachment 486822 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-07-25 19:08:29 UTC
Created attachment 486824 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-07-25 19:08:32 UTC
Created attachment 486826 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-07-25 19:08:35 UTC
Created attachment 486828 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-07-25 19:08:38 UTC
Created attachment 486830 [details]
temp.tbz2
Comment 8 Pankaj Chauhan 2017-09-10 21:46:54 UTC
I have similar error.

-- 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-unkn
own-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)

Just recently switched to gcc-5.4.0, and emerged world.  I can post the output of emerge --info/environment/build log, if required.

Thanks,

Pankaj
Comment 9 Iván Escrivá 2017-12-14 22:13:03 UTC
Created attachment 510056 [details, diff]
rust-1.19.0-config-ix.cmake-llvm_ocaml_bindings.patch
Comment 10 Iván Escrivá 2017-12-14 22:14:35 UTC
Comment on attachment 510056 [details, diff]
rust-1.19.0-config-ix.cmake-llvm_ocaml_bindings.patch

patch to prevent "rust" from trying to copy his llvm ocaml bindings to the system
Comment 11 Iván Escrivá 2017-12-14 22:15:25 UTC
Created attachment 510058 [details, diff]
rust-1.19.0-config-ix.cmake-no_llvm_ocaml_bindings.patch

patch to disable buld of llvm ocaml bindings if you don't have installed dev-ml/llvm-ocaml
Comment 12 Iván Escrivá 2017-12-14 22:19:14 UTC
Created attachment 510062 [details]
rust-1.19.0-r1.ebuild

This ebuild use attachments
510056 rust-1.19.0-config-ix.cmake-llvm_ocaml_bindings.patch
510058 rust-1.19.0-config-ix.cmake-no_llvm_ocaml_bindings.patch
Comment 13 Dirkjan Ochtman (RETIRED) gentoo-dev 2018-06-06 09:14:12 UTC
No longer seems to happen with more recent versions, closing.