Bug 431254

Summary: Install valgind failed
Product: [Developer tools] valgrind Reporter: wow452 <490463025>
Component: memcheckAssignee: Julian Seward <jseward>
Status: RESOLVED WAITINGFORINFO    
Severity: normal CC: mark, tom
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description wow452 2021-01-07 09:11:29 UTC
Install valgind failed!
when executing "make", some errors were prompted.

STEPS TO REPRODUCE
1. platform is CentOS release 4.3, version of valgrind is 3.15 && 3.16.1
2. execute "make" after "./autogen.sh" and "./configure"

OBSERVED RESULT
Below is the error message: 
/tmp/cczePtO6.s: Assembler messages:
/tmp/cczePtO6.s:16354: Error: no such instruction: `rdtscp'
/tmp/cczePtO6.s:16550: Error: no such instruction: `rdrand %r11d'
make[3]: *** [Makefile:1445: priv/libvex_amd64_linux_a-guest_amd64_helpers.o] Error 1
make[3]: Leaving directory '/home/disk1/xuexiaodong/tools/valgrind/valgrind-3.15.0/VEX'
make[2]: *** [Makefile:892: all] Error 2
make[2]: Leaving directory '/home/disk1/xuexiaodong/tools/valgrind/valgrind-3.15.0/VEX'
make[1]: *** [Makefile:841: all-recursive] Error 1
make[1]: Leaving directory '/home/disk1/xuexiaodong/tools/valgrind/valgrind-3.15.0'
make: *** [Makefile:710: all] Error 2


EXPECTED RESULT
make successfully

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Tom Hughes 2021-01-07 09:32:34 UTC
Your assembler is too old, which is not really surprising when you're using a 15 year old operating system, for which vendor support ended four years ago...
Comment 2 wow452 2021-01-07 09:48:49 UTC
(In reply to Tom Hughes from comment #1)
> Your assembler is too old, which is not really surprising when you're using
> a 15 year old operating system, for which vendor support ended four years
> ago...
I can install valgrind(3.14) successfully...
But after running 3.14  for a while, an error message of "Segmentation fault" appears, even if I use the normal program.
The program is compiled with gcc10, does the 3.14 not support gcc10 programs???
Comment 3 Tom Hughes 2021-01-07 09:51:58 UTC
The issue you're having with 3.15 is with the assembler not with the compiler so the fact you've upgraded gcc is not relevant unless you've also upgraded binutils to get a newer assembler.

I can't comment on 3.14 without more information about exactly what valgrind says when it fails.