Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 670630 - =sys-devel/llvm-6.0.1[debug,llvm_targets_arm] cannot copy file in src_install
Summary: =sys-devel/llvm-6.0.1[debug,llvm_targets_arm] cannot copy file in src_install
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-07 20:03 UTC by Bernd
Modified: 2018-11-15 18:32 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,12.51 KB, text/plain)
2018-11-07 20:03 UTC, Bernd
Details
llvm-6.0.1:20181105-213724.log.bz2 (llvm-6.0.1:20181105-213724.log.bz2,100.94 KB, application/x-bzip)
2018-11-07 20:05 UTC, Bernd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2018-11-07 20:03:30 UTC
Created attachment 554454 [details]
emerge-info.txt

When trying to build llvm:6 with debug USE flag enabled it fails with

-- Installing: /var/tmp/portage/sys-devel/llvm-6.0.1/image/usr/lib/llvm/6/lib32/libLLVMARMCodeGen.so.6.0.1
CMake Error at lib/Target/ARM/cmake_install.cmake:36 (file):
  file INSTALL cannot copy file
  "/var/tmp/portage/sys-devel/llvm-6.0.1/work/llvm-6.0.1.src-abi_x86_32.x86/lib32/libLLVMARMCodeGen.so.6.0.1"
  to
  "/var/tmp/portage/sys-devel/llvm-6.0.1/image/usr/lib/llvm/6/lib32/libLLVMARMCodeGen.so.6.0.1".
Call Stack (most recent call first):
  lib/Target/cmake_install.cmake:58 (include)
  lib/cmake_install.cmake:53 (include)
  cmake_install.cmake:53 (include)


FAILED: CMakeFiles/install.util 

Only a few days ago, it built fine without debug USE flag.
Comment 1 Bernd 2018-11-07 20:05:30 UTC
Created attachment 554456 [details]
llvm-6.0.1:20181105-213724.log.bz2

build log
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-11-14 17:11:37 UTC
Weird.  Haven't you run out of space maybe?
Comment 3 Bernd 2018-11-14 18:15:52 UTC
Haven't checked this possibility. Although, I can't guarantee, I don't think I did run out of space. I'm using a 8GB tmpfs to build most packages, including this one.

I can re-check whether this was the case.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-11-14 18:30:57 UTC
8G sounds a bit small for debug-enabled build.  The error really looks like CMake failing to copy a file with lack of proper error output, and I doubt it was I/O error.
Comment 5 Bernd 2018-11-15 16:41:49 UTC
You were right, it was due to running out of space on the tmpfs. I apologize for not checking first. Didn't had this possibility on mind.

It compiled fine, when building on hdd. I think you can close the bug then.

Maybe we could add a check_reqs test to llvm (and clang) when debug is enabled?

With this configuration

$ emerge -pqv llvm:6::gentoo
[ebuild   R   ] sys-devel/llvm-6.0.1  USE="debug doc gold libffi ncurses xar xml -libedit -test" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AArch64 ARM BPF NVPTX (X86) -AMDGPU -Hexagon -Lanai -MSP430 -Mips -PowerPC -Sparc -SystemZ -XCore" 

I needed about 9GB of build / install space.

 * Final size of build directory: 7089772 KiB (6.7 GiB)
 * Final size of installed tree:  2473980 KiB (2.3 GiB)


Also for clang:

$ emerge -pqv clang:6::gentoo
[ebuild   R   ] sys-devel/clang-6.0.1  USE="debug doc static-analyzer xml -default-compiler-rt -default-libcxx -test (-z3)" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AArch64 ARM BPF NVPTX (X86) -AMDGPU -Hexagon -Lanai -MSP430 -Mips -PowerPC -Sparc -SystemZ -XCore" PYTHON_TARGETS="python2_7" 

 * Final size of build directory: 8379828 KiB (7.9 GiB)
 * Final size of installed tree:  3144752 KiB (2.9 GiB)

~11GB is needed.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-11-15 18:32:25 UTC
The ebuild used to have check-reqs but with all the USE flag, arch, cflag combinations it was impossible to maintain correct numbers there.