Bug 440502 - building valgrind 3.17 on RHEL 6.x: rdseed is not supported by GNU as
Summary: building valgrind 3.17 on RHEL 6.x: rdseed is not supported by GNU as
Status: REPORTED
Alias: None
Product: valgrind
Classification: Developer tools
Component: vex (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-01 14:50 UTC by pesec.il+kde
Modified: 2021-08-17 09:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pesec.il+kde 2021-08-01 14:50:42 UTC
SUMMARY

While compiling valgrind 3.17 on RHEL6/OracleLinux6, the GNU Assembly does not recognize 'rdseed' mnemonics:
priv/guest_amd64_helpers.c:3799: Error: no such instruction: `rdseed %r11d'


STEPS TO REPRODUCE

1. Use RHEL6/OracleLinux6 (gcc 4.4.7, binutils 2.20.51)
2. ./configure && make


OBSERVED RESULT

"make" fails:
priv/guest_amd64_helpers.c:3799: Error: no such instruction: `rdseed %r11d'


EXPECTED RESULT

"make" was expected to succeed


SOFTWARE/OS VERSIONS

RHEL 6.10 or Oracle Linux 6.10

$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.10 (Santiago)

$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23.0.1)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ as --version
GNU assembler version 2.20.51.0.2-5.48.0.3.el6_10.1 20100205
Copyright 2009 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-redhat-linux'. 


ADDITIONAL INFORMATION

The Red Hat Enterprise Linux 6.x has an End of Extended Lifecycle Support on  	30 June 2024. Oracle Linux 6.x also has its Extended Support ending on June 2024. These OS versions are being used now.
Comment 1 pesec.il+kde 2021-08-01 14:56:14 UTC
$ uname -a
Linux <skipped_hostname> 2.6.32-754.35.1.el6.x86_64 #1 SMP Wed Oct 7 14:48:30 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux
Comment 2 Paul Floyd 2021-08-17 09:16:19 UTC
It would be great if you could produce a patch to add rdseed detection to the configure script and to conditionally enable the feature.

Otherwise you can build build your own binutils and GCC or stick to an older version of Valgrind.