Summary: | =sys-devel/llvm-6.0.1[debug,llvm_targets_arm] cannot copy file in src_install | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Bernd <waebbl-gentoo> |
Component: | Current packages | Assignee: | LLVM support project <llvm> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | mgorny |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
llvm-6.0.1:20181105-213724.log.bz2 |
Created attachment 554456 [details]
llvm-6.0.1:20181105-213724.log.bz2
build log
Weird. Haven't you run out of space maybe? 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. 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. 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. The ebuild used to have check-reqs but with all the USE flag, arch, cflag combinations it was impossible to maintain correct numbers there. |
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.