funny, it copies llvm files to destdir with absolute path llvm build dir ends up in /tmp/portage/dev-lang/rust-1.35.0/image/tmp/portage/dev-lang/rust-1.35.0/work/rustc-1.35.0-src/build/x86_64-unknown-linux-gnu/llvm/ don't panic, you don't have to rebuild all over. just remove rm -r /tmp/portage/dev-lang/rust-1.35.0/image/tmp and ebuild rust-1.35.0.ebuild merge or build with system-llvm
Created attachment 577720 [details] emerge --info
Created attachment 577722 [details] post-install message Attached emerge --info and post-install message. I don't have anything in the /tmp/portage directory mentioned by Georgy.
(In reply to Georgy Yakovlev from comment #0) > funny, it copies llvm files to destdir with absolute path > > llvm build dir ends up in > /tmp/portage/dev-lang/rust-1.35.0/image/tmp/portage/dev-lang/rust-1.35.0/ > work/rustc-1.35.0-src/build/x86_64-unknown-linux-gnu/llvm/ > > don't panic, you don't have to rebuild all over. just remove > > rm -r /tmp/portage/dev-lang/rust-1.35.0/image/tmp > > and ebuild rust-1.35.0.ebuild merge > > or build with system-llvm I don't have the /tmp/portage dir nor do the directories mentioned in the post-install /var/tmp/portage appear to be there. Is there something else I need to remove, and should I still run the ebuild command?
Probably itβs /var/tmp/portage for you, I set my portage tmpdir differently.
rm -r /var/tmp/portage/dev-lang/rust-1.35.0/image/tmp And ebuild /usr/portage/dev-lang/rust/rust-1.35.0.ebuild merge Assuming you still have build files there.
looks like issue is caused by internal llvm cmakefiles .../cmake_install.cmake 4:if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5: set(CMAKE_INSTALL_PREFIX "/tmp/portage/dev-lang/rust-1.35.0/work/rustc-1.35.0-src/build/x86_64-unknown-linux-gnu/llvm") so CMAKE_INSTALL_PREFIX for whatever reason is set to $DESTDIR/$S/$SOMETHING but should be trying to find what actually sets it.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c39dfea3a0cea8f515ddede3d171879ad0df9cf9 commit c39dfea3a0cea8f515ddede3d171879ad0df9cf9 Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2019-05-26 06:25:06 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2019-05-26 06:25:32 +0000 dev-lang/rust: fix building 1.35.0 with internal llvm Closes: https://bugs.gentoo.org/686656 X-Upstream-Issue: https://github.com/rust-lang/rust/issues/61206 Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> ...commits-triggering-multiple-llvm-rebuilds.patch | 117 +++++++++++++++++++++ dev-lang/rust/rust-1.35.0.ebuild | 1 + 2 files changed, 118 insertions(+)
*** Bug 686772 has been marked as a duplicate of this bug. ***