Successfully built and installed GCC 8.2.0 on Mandriva Linux 2008.0 for i586. The binutils-2.30 were successfully built using this version of GCC.
1. config.guess i686-pc-linux-gnu 2. gcc -v Using built-in specs. COLLECT_GCC=/home/user/usr/bin/gcc COLLECT_LTO_WRAPPER=/home/user/usr/bin/../libexec/gcc/i686-pc-linux-gnu/8.2.0/lto-wrapper Target: i686-pc-linux-gnu Configured with: ../../gcc-8.2.0/configure --prefix=/home/user/work/usr Thread model: posix gcc version 8.2.0 (GCC) 3. /etc/issue Mandriva Linux release 2008.0 (Official) for i586 Kernel 2.6.22.9-desktop-2mdv on an i686 / \l 4. uname -a Linux localhost 2.6.22.9-desktop-2mdv #1 SMP Fri Nov 16 14:31:33 EST 2007 i686 AMD A8-5500 APU with Radeon(tm) HD Graphics GNU/Linux 5. rpm -q glibc glibc-2.6.1-4mdv2008.0 6. rpm -q binutils binutils-2.17.50.0.12-1mdv2008.0 7. Note. The installed header file '/usr/include/scsi/scsi.h' must be patched: diff scsi.h scsi.h-old [DIFF OUTPUT BEGIN] 426,427d425 < #define SCSI_IOCTL_TAGGED_ENABLE 0x5383 < #define SCSI_IOCTL_TAGGED_DISABLE 0x5384 [DIFF OUTPUT END] to avoid errors "'IDENTIFIER ' was not declared in this scope (...)": ./../../../../gcc-8.2.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:902:46: error: ‘SCSI_IOCTL_TAGGED_DISABLE’ was not declared in this scope unsigned IOCTL_SCSI_IOCTL_TAGGED_DISABLE = SCSI_IOCTL_TAGGED_DISABLE; ^~~~~~~~~~~~~~~~~~~~~~~~~ ../../../../../gcc-8.2.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:902:46: note: suggested alternative: ‘IOCTL_SCSI_IOCTL_TAGGED_DISABLE’ unsigned IOCTL_SCSI_IOCTL_TAGGED_DISABLE = SCSI_IOCTL_TAGGED_DISABLE; ^~~~~~~~~~~~~~~~~~~~~~~~~ IOCTL_SCSI_IOCTL_TAGGED_DISABLE ../../../../../gcc-8.2.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:903:45: error: ‘SCSI_IOCTL_TAGGED_ENABLE’ was not declared in this scope unsigned IOCTL_SCSI_IOCTL_TAGGED_ENABLE = SCSI_IOCTL_TAGGED_ENABLE; ^~~~~~~~~~~~~~~~~~~~~~~~ ../../../../../gcc-8.2.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:903:45: note: suggested alternative: ‘IOCTL_SCSI_IOCTL_TAGGED_ENABLE’ unsigned IOCTL_SCSI_IOCTL_TAGGED_ENABLE = SCSI_IOCTL_TAGGED_ENABLE; ^~~~~~~~~~~~~~~~~~~~~~~~ IOCTL_SCSI_IOCTL_TAGGED_ENABLE