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

Bug 468114

Summary: dev-util/valgrind : does not respect AR
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Anthony Basile <blueness>
Status: RESOLVED FIXED    
Severity: QA CC: mmk
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    
Attachments: valgrind-3.8.1.patch

Description Agostino Sarubbo gentoo-dev 2013-05-01 10:26:35 UTC
You receive this bug because this package does not respect my system's AR (x86_64-pc-linux-gnu-ar) and calls directly /usr/bin/ar
The possible solutions to fix this issue are:
1)Fix the buildsystem, if you can;
2)inherit toolchain-funcs and use tc-export AR
3)inherit toolchain-funcs and use emake AR="$(tc-getAR)"


From the build log:

/usr/bin/ar cru libvex-amd64-linux.a libvex_amd64_linux_a-main_globals.o libvex_amd64_linux_a-main_main.o libvex_amd64_linux_a-main_util.o libvex_amd64_linux_a-ir_defs.o 
libvex_amd64_linux_a-ir_match.o libvex_amd64_linux_a-ir_opt.o libvex_amd64_linux_a-guest_generic_bb_to_IR.o libvex_amd64_linux_a-guest_generic_x87.o 
libvex_amd64_linux_a-guest_x86_helpers.o libvex_amd64_linux_a-guest_x86_toIR.o libvex_amd64_linux_a-guest_amd64_helpers.o libvex_amd64_linux_a-guest_amd64_toIR.o 
libvex_amd64_linux_a-guest_ppc_helpers.o libvex_amd64_linux_a-guest_ppc_toIR.o libvex_amd64_linux_a-guest_arm_helpers.o libvex_amd64_linux_a-guest_arm_toIR.o 
libvex_amd64_linux_a-guest_s390_helpers.o libvex_amd64_linux_a-guest_s390_toIR.o libvex_amd64_linux_a-guest_mips_helpers.o libvex_amd64_linux_a-guest_mips_toIR.o 
libvex_amd64_linux_a-host_generic_regs.o libvex_amd64_linux_a-host_generic_simd64.o libvex_amd64_linux_a-host_generic_simd128.o 
libvex_amd64_linux_a-host_generic_reg_alloc2.o libvex_amd64_linux_a-host_x86_defs.o libvex_amd64_linux_a-host_x86_isel.o libvex_amd64_linux_a-host_amd64_defs.o 
libvex_amd64_linux_a-host_amd64_isel.o libvex_amd64_linux_a-host_ppc_defs.o libvex_amd64_linux_a-host_ppc_isel.o libvex_amd64_linux_a-host_arm_defs.o 
libvex_amd64_linux_a-host_arm_isel.o libvex_amd64_linux_a-host_s390_defs.o libvex_amd64_linux_a-host_s390_isel.o libvex_amd64_linux_a-host_s390_disasm.o 
libvex_amd64_linux_a-host_mips_defs.o libvex_amd64_linux_a-host_mips_isel.o
Comment 1 Michael Mair-Keimberger (iamnr3) 2013-05-26 12:06:33 UTC
Created attachment 349232 [details, diff]
valgrind-3.8.1.patch

I've add tc-export AR to src_confiugre(). This fixes the issue for me.
Comment 2 Anthony Basile gentoo-dev 2013-05-26 12:18:20 UTC
(In reply to Michael Mair-Keimberger (iamnr3) from comment #1)
> Created attachment 349232 [details, diff] [details, diff]
> valgrind-3.8.1.patch
> 
> I've add tc-export AR to src_confiugre(). This fixes the issue for me.

Thanks Michael.  This is a safe change so I added it directly to 3.8.1.