Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 616646

Summary: sys-libs/libunwind-1.2 fails to compile: /usr/bin: file not recognized: Is a directory
Product: Gentoo Linux Reporter: fuse809
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
emerge --info output

Description fuse809 2017-04-26 09:03:34 UTC
Created attachment 470928 [details]
build log

I have tried to emerge libunwind-1.2 but it failed giving the error:

/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -pipe -fexceptions -Wall -Wsign-compare -XCClinker -nostartfiles -XCClinker -nostdlib  -version-info 8:1:0		 -Wl,-O1 -Wl,--as-needed -o libunwind.la -rpath /usr/lib64 os-linux.lo mi/init.lo mi/flush_cache.lo mi/mempool.lo mi/strerror.lo x86_64/is_fpreg.lo x86_64/regname.lo x86_64/Los-linux.lo mi/_ReadULEB.lo mi/_ReadSLEB.lo mi/backtrace.lo mi/dyn-cancel.lo mi/dyn-info-list.lo mi/dyn-register.lo mi/Ldyn-extract.lo mi/Lfind_dynamic_proc_info.lo mi/Lget_accessors.lo mi/Lget_proc_info_by_ip.lo mi/Lget_proc_name.lo mi/Lput_dynamic_unwind_info.lo mi/Ldestroy_addr_space.lo mi/Lget_reg.lo mi/Lset_reg.lo mi/Lget_fpreg.lo mi/Lset_fpreg.lo mi/Lset_caching_policy.lo unwind/Backtrace.lo unwind/DeleteException.lo unwind/FindEnclosingFunction.lo unwind/ForcedUnwind.lo unwind/GetBSP.lo unwind/GetCFA.lo unwind/GetDataRelBase.lo unwind/GetGR.lo unwind/GetIP.lo unwind/GetLanguageSpecificData.lo unwind/GetRegionStart.lo unwind/GetTextRelBase.lo unwind/RaiseException.lo unwind/Resume.lo unwind/Resume_or_Rethrow.lo unwind/SetGR.lo unwind/SetIP.lo unwind/GetIPInfo.lo x86_64/setcontext.lo x86_64/Lcreate_addr_space.lo x86_64/Lget_save_loc.lo x86_64/Lglobal.lo x86_64/Linit.lo x86_64/Linit_local.lo x86_64/Linit_remote.lo x86_64/Lget_proc_info.lo x86_64/Lregs.lo x86_64/Lresume.lo x86_64/Lstash_frame.lo x86_64/Lstep.lo x86_64/Ltrace.lo x86_64/getcontext.lo libunwind-dwarf-local.la libunwind-elf64.la -lc -lgcc_s  
libtool: link: x86_64-pc-linux-gnu-gcc -shared  .libs/os-linux.o mi/.libs/init.o mi/.libs/flush_cache.o mi/.libs/mempool.o mi/.libs/strerror.o x86_64/.libs/is_fpreg.o x86_64/.libs/regname.o x86_64/.libs/Los-linux.o mi/.libs/_ReadULEB.o mi/.libs/_ReadSLEB.o mi/.libs/backtrace.o mi/.libs/dyn-cancel.o mi/.libs/dyn-info-list.o mi/.libs/dyn-register.o mi/.libs/Ldyn-extract.o mi/.libs/Lfind_dynamic_proc_info.o mi/.libs/Lget_accessors.o mi/.libs/Lget_proc_info_by_ip.o mi/.libs/Lget_proc_name.o mi/.libs/Lput_dynamic_unwind_info.o mi/.libs/Ldestroy_addr_space.o mi/.libs/Lget_reg.o mi/.libs/Lset_reg.o mi/.libs/Lget_fpreg.o mi/.libs/Lset_fpreg.o mi/.libs/Lset_caching_policy.o unwind/.libs/Backtrace.o unwind/.libs/DeleteException.o unwind/.libs/FindEnclosingFunction.o unwind/.libs/ForcedUnwind.o unwind/.libs/GetBSP.o unwind/.libs/GetCFA.o unwind/.libs/GetDataRelBase.o unwind/.libs/GetGR.o unwind/.libs/GetIP.o unwind/.libs/GetLanguageSpecificData.o unwind/.libs/GetRegionStart.o unwind/.libs/GetTextRelBase.o unwind/.libs/RaiseException.o unwind/.libs/Resume.o unwind/.libs/Resume_or_Rethrow.o unwind/.libs/SetGR.o unwind/.libs/SetIP.o unwind/.libs/GetIPInfo.o x86_64/.libs/setcontext.o x86_64/.libs/Lcreate_addr_space.o x86_64/.libs/Lget_save_loc.o x86_64/.libs/Lglobal.o x86_64/.libs/Linit.o x86_64/.libs/Linit_local.o x86_64/.libs/Linit_remote.o x86_64/.libs/Lget_proc_info.o x86_64/.libs/Lregs.o x86_64/.libs/Lresume.o x86_64/.libs/Lstash_frame.o x86_64/.libs/Lstep.o x86_64/.libs/Ltrace.o x86_64/.libs/getcontext.o  -Wl,--whole-archive ./.libs/libunwind-dwarf-local.a ./.libs/libunwind-elf64.a -Wl,--no-whole-archive  -Wl,--as-needed -lc -lgcc_s  -nostartfiles -nostdlib -Wl,-O1   -Wl,-soname -Wl,libunwind.so.8 -o .libs/libunwind.so.8.0.1
libtool: link: (cd ".libs" && rm -f "libunwind.so.8" && ln -s "libunwind.so.8.0.1" "libunwind.so.8")
libtool: link: (cd ".libs" && rm -f "libunwind.so" && ln -s "libunwind.so.8.0.1" "libunwind.so")
libtool: link: ( cd ".libs" && rm -f "libunwind.la" && ln -s "../libunwind.la" "libunwind.la" )
/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -pipe -fexceptions -Wall -Wsign-compare -XCClinker -nostartfiles -version-info 8:1:0		 -Wl,-O1 -Wl,--as-needed -o libunwind-x86_64.la -rpath /usr/lib64 os-linux.lo mi/init.lo mi/flush_cache.lo mi/mempool.lo mi/strerror.lo x86_64/is_fpreg.lo x86_64/regname.lo x86_64/Gos-linux.lo mi/Gdyn-extract.lo mi/Gdyn-remote.lo mi/Gfind_dynamic_proc_info.lo mi/Gget_accessors.lo mi/Gget_proc_info_by_ip.lo mi/Gget_proc_name.lo mi/Gput_dynamic_unwind_info.lo mi/Gdestroy_addr_space.lo mi/Gget_reg.lo mi/Gset_reg.lo mi/Gget_fpreg.lo mi/Gset_fpreg.lo mi/Gset_caching_policy.lo x86_64/Gcreate_addr_space.lo x86_64/Gget_save_loc.lo x86_64/Gglobal.lo x86_64/Ginit.lo x86_64/Ginit_local.lo x86_64/Ginit_remote.lo x86_64/Gget_proc_info.lo x86_64/Gregs.lo x86_64/Gresume.lo x86_64/Gstash_frame.lo x86_64/Gstep.lo x86_64/Gtrace.lo libunwind-dwarf-generic.la libunwind-elf64.la libunwind.la -lc 
libtool: link: x86_64-pc-linux-gnu-gcc -shared  .libs/os-linux.o mi/.libs/init.o mi/.libs/flush_cache.o mi/.libs/mempool.o mi/.libs/strerror.o x86_64/.libs/is_fpreg.o x86_64/.libs/regname.o x86_64/.libs/Gos-linux.o mi/.libs/Gdyn-extract.o mi/.libs/Gdyn-remote.o mi/.libs/Gfind_dynamic_proc_info.o mi/.libs/Gget_accessors.o mi/.libs/Gget_proc_info_by_ip.o mi/.libs/Gget_proc_name.o mi/.libs/Gput_dynamic_unwind_info.o mi/.libs/Gdestroy_addr_space.o mi/.libs/Gget_reg.o mi/.libs/Gset_reg.o mi/.libs/Gget_fpreg.o mi/.libs/Gset_fpreg.o mi/.libs/Gset_caching_policy.o x86_64/.libs/Gcreate_addr_space.o x86_64/.libs/Gget_save_loc.o x86_64/.libs/Gglobal.o x86_64/.libs/Ginit.o x86_64/.libs/Ginit_local.o x86_64/.libs/Ginit_remote.o x86_64/.libs/Gget_proc_info.o x86_64/.libs/Gregs.o x86_64/.libs/Gresume.o x86_64/.libs/Gstash_frame.o x86_64/.libs/Gstep.o x86_64/.libs/Gtrace.o  -Wl,--whole-archive ./.libs/libunwind-dwarf-generic.a ./.libs/libunwind-elf64.a -Wl,--no-whole-archive  -Wl,-rpath -Wl,/var/tmp/portage/sys-libs/libunwind-1.2/work/libunwind-1.2-abi_x86_64.amd64/src/.libs -Wl,--as-needed ./.libs/libunwind.so /usr/bin /usr/sbin /bin /sbin -lgcc_s -lc  -nostartfiles -Wl,-O1   -Wl,-soname -Wl,libunwind-x86_64.so.8 -o .libs/libunwind-x86_64.so.8.0.1
/usr/bin: file not recognized: Is a directory
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:2128: libunwind-x86_64.la] Error 1
make[2]: Leaving directory '/var/tmp/portage/sys-libs/libunwind-1.2/work/libunwind-1.2-abi_x86_64.amd64/src'
make[1]: *** [Makefile:1514: all] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-libs/libunwind-1.2/work/libunwind-1.2-abi_x86_64.amd64/src'
Comment 1 fuse809 2017-04-26 09:09:39 UTC
Created attachment 470930 [details]
emerge --info output
Comment 2 fuse809 2017-04-26 09:17:30 UTC
emerge -pqv returns:

[ebuild  N    ] sys-libs/libunwind-1.2  USE="-debug -debug-frame -doc -libatomic -lzma -static-libs" ABI_X86="(64) -32 (-x32)"
Comment 3 fuse809 2017-04-26 09:38:49 UTC
never mind his
Comment 4 fuse809 2017-04-26 09:39:39 UTC
Never mind this error was due to me using a chroot from a live sysrescuecd session. When I rebooted into the OS the merge went fine.