Bug#804561: GCC can't compile a program using RDSEED intrinsics

2021-08-16 Thread Dennis Filder
Control: tag - bullseye bookworm

This can be closed as the bug no longer manifests.  The first version
of gcc-9 with the fix[0] that reached testing was 9.1.0-10 on
2019-07-26.  In 8.* it has never been fixed.

Regards,
Dennis Filder.

0: 
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=6c0d746f66cd349be052ca207e2397570f8aa314



Bug#804561: GCC can't compile a program using RDSEED intrinsics

2015-11-09 Thread Jeffrey Walton
Package: g++
Version: 4:5.2.1-4
Severity: normal
Control: tags jessie sid
Tags: jessie sid

**

Another Debian specific bug... GCC can't compile a program using
RDSEED intrinsics. It results in an error "error: ‘_rdseed64_step’ was
not declared in this scope".

According the Intel (which the GCC told me to follow), RDSEED
intrinsics are available in . Confer,
http://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=rdseed.

The same program, using RDRAND, compiles fine.

**

$ cat rdseed.cxx
#include 
#include 

int main()
{
  unsigned long long val = 0;
  _rdseed64_step();
  _rdseed32_step();
  _rdseed16_step();

  std::cout << val << std::endl;

  return !val;
}

$ g++ -mrdseed rdseed.cxx -o rdseed.exe
rdseed.cxx: In function ‘int main()’:
rdseed.cxx:7:22: error: ‘_rdseed64_step’ was not declared in this scope
   _rdseed64_step();
  ^
rdseed.cxx:8:22: error: ‘_rdseed32_step’ was not declared in this scope
   _rdseed32_step();
  ^
rdseed.cxx:9:22: error: ‘_rdseed16_step’ was not declared in this scope
   _rdseed16_step();
  ^

**

$ g++ --version
g++ (Debian 5.2.1-20) 5.2.1 20151002

$ uname -a
Linux debian-8-x64 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u5
(2015-10-09) x86_64 GNU/Linux


**

$ apt-cache show g++
Package: g++
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 17
Maintainer: Debian GCC Maintainers 
Architecture: amd64
Source: gcc-defaults (1.145)
Version: 4:5.2.1-4
Provides: c++-compiler
Depends: cpp (>= 4:5.2.1-4), gcc (>= 4:5.2.1-4), g++-5 (>= 5.2.1-13~),
gcc-5 (>= 5.2.1-13~)
Suggests: g++-multilib
Description-en: GNU C++ compiler
 This is the GNU C++ compiler, a fairly portable optimizing compiler for C++.
 .
 This is a dependency package providing the default GNU C++ compiler.
Description-md5: 4d44b18774ae5123b7c3f70d940cf655

Package: g++
Source: gcc-defaults (1.136)
Version: 4:4.9.2-2
Installed-Size: 34
Maintainer: Debian GCC Maintainers 
Architecture: amd64
Provides: c++-compiler
Depends: cpp (>= 4:4.9.2-2), gcc (>= 4:4.9.2-2), g++-4.9 (>=
4.6.4-1~), gcc-4.9 (>= 4.6.4-1~)
Suggests: g++-multilib
Description-en: GNU C++ compiler
 This is the GNU C++ compiler, a fairly portable optimizing compiler for C++.
 .
 This is a dependency package providing the default GNU C++ compiler.
Description-md5: 4d44b18774ae5123b7c3f70d940cf655
Build-Essential: yes
Tag: devel::compiler, devel::lang:c++, implemented-in::c,
 interface::commandline, role::dummy, role::metapackage, suite::gnu,
 works-with::software:source
Section: devel
Priority: optional
Filename: pool/main/g/gcc-defaults/g++_4.9.2-2_amd64.deb
Size: 1530
MD5sum: cd4aa68ba8cf582df806c324988e6a00
SHA1: 82a50c84e1105e1f0c767da82c09f2398ac2d4b2
SHA256: 6fb9842c6a0ad0cd5445b9f2f2cb3f738abcc83a6b8e0900aad441574f5cecee